summaryrefslogtreecommitdiff
path: root/misc/langdrill/010_vdk_updates.diff
blob: 447054e370f124792fd4ebcd3539f9b9f1f85bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- langdrill-0.3.orig/src/main.cc
+++ langdrill-0.3/src/main.cc
@@ -962,17 +962,17 @@
 MyLangForm::AboutClicked( VDKObject*)
 {
   Application()->
-    MessageBox( " Let's talk about Language Drills",
-                " Brought to you by\n"
-                "   Ionutz Borcoman\n"
-                "   <borco@usa.net>\n"
-                "   <borco@borco-ei.eng.hokudai.ac.jp>\n"
-                " \n"
-                " Nothing would have been possible without\n"
-                "   Mario Motta's VDK\n"
-                "   <mmotta@guest.net>"
-                "\n",
-                MB_OK | MB_ICONINFORMATION ) ;
+    VDKMessageBox( " Let's talk about Language Drills",
+                   " Brought to you by\n"
+                   "   Ionutz Borcoman\n"
+                   "   <borco@usa.net>\n"
+                   "   <borco@borco-ei.eng.hokudai.ac.jp>\n"
+                   " \n"
+                   " Nothing would have been possible without\n"
+                   "   Mario Motta's VDK\n"
+                   "   <mmotta@guest.net>"
+                   "\n",
+                   VDK_OK | VDK_ICONINFORMATION ) ;
   return true;
 }
 
@@ -985,12 +985,12 @@
   if( _timerRunning==true
       || _timerCheck->Checked==true ){
     bool answ = ( Application()->
-                  MessageBox("Language Drill Message",
-                             " Are you sure you want to close \n"
-                             " the Language Drills ?\n"
-                             " The Timer seems to be active !",
-                             MB_YESNO)
-                  == IDYES );
+                  VDKMessageBox("Language Drill Message",
+                                " Are you sure you want to close \n"
+                                " the Language Drills ?\n"
+                                " The Timer seems to be active !",
+                                VDK_YESNO)
+                  == VDK_IDYES );
     if( answ == false ){
       return true;
     } else {
@@ -1052,8 +1052,9 @@
     gtk_signal_emit_stop_by_name( GTK_OBJECT(_simpleQuizzText->WrappedWidget()),
                                   "key_press_event");
     QuizzAnswerClicked( obj );
+    return true;
   }
-  return true;
+  return false;
 }