rework histogram_bezier, init wm icon set_icon(gg), update de.po+msg/txt
[goodguy/history.git] / cinelerra-5.1 / cinelerra / question.C
index 66ff7b6ae6826808d80eb432a0caaf894d4907c2..43130fca6db6856cc482ad087a6725da41d1cd2e 100644 (file)
@@ -25,6 +25,7 @@
 #include "question.h"
 #include "theme.h"
 
+#include "ctype.h"
 
 #define WIDTH 375
 #define HEIGHT 160
@@ -72,7 +73,10 @@ int QuestionYesButton::handle_event()
 
 int QuestionYesButton::keypress_event()
 {
-       if(get_keypress() == 'y') { handle_event(); return 1; }
+       if( toupper(get_keypress()) == *get_text() ) {
+               handle_event();
+               return 1;
+       }
        return 0;
 }
 
@@ -91,6 +95,9 @@ int QuestionNoButton::handle_event()
 
 int QuestionNoButton::keypress_event()
 {
-       if(get_keypress() == 'n') { handle_event(); return 1; }
+       if( toupper(get_keypress()) == *get_text() ) {
+               handle_event();
+               return 1;
+       }
        return 0;
 }