From 12e3c47e472eb2c2f34cb5778514de9d22df529b Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Mon, 19 Mar 2018 22:33:55 +0000 Subject: misc/langdrill: Added (language drill tests). Signed-off-by: David Spencer --- misc/langdrill/010_vdk_updates.diff | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 misc/langdrill/010_vdk_updates.diff (limited to 'misc/langdrill/010_vdk_updates.diff') 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" +- " \n" +- " \n" +- " \n" +- " Nothing would have been possible without\n" +- " Mario Motta's VDK\n" +- " " +- "\n", +- MB_OK | MB_ICONINFORMATION ) ; ++ VDKMessageBox( " Let's talk about Language Drills", ++ " Brought to you by\n" ++ " Ionutz Borcoman\n" ++ " \n" ++ " \n" ++ " \n" ++ " Nothing would have been possible without\n" ++ " Mario Motta's VDK\n" ++ " " ++ "\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; + } + + -- cgit v1.2.3