010_vdk_updates.diff 2.2 KB

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