summaryrefslogtreecommitdiff
path: root/misc/langdrill/010_vdk_updates.diff
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-03-19 22:33:55 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2018-03-19 22:33:55 +0000
commit12e3c47e472eb2c2f34cb5778514de9d22df529b (patch)
tree257d805d09127148579ff1e49a40334e8f6da910 /misc/langdrill/010_vdk_updates.diff
parentb95c1cf740ec45c94acb9b8e77a4a2bd51409e0a (diff)
downloadslackbuilds-12e3c47e472eb2c2f34cb5778514de9d22df529b.tar.gz
misc/langdrill: Added (language drill tests).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc/langdrill/010_vdk_updates.diff')
-rw-r--r--misc/langdrill/010_vdk_updates.diff61
1 files changed, 61 insertions, 0 deletions
diff --git a/misc/langdrill/010_vdk_updates.diff b/misc/langdrill/010_vdk_updates.diff
new file mode 100644
index 0000000000..447054e370
--- /dev/null
+++ b/misc/langdrill/010_vdk_updates.diff
@@ -0,0 +1,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;
+ }
+
+