[uim-commit] r709 - trunk/helper

makeinu at freedesktop.org makeinu at freedesktop.org
Wed Feb 23 17:41:14 PST 2005


Author: makeinu
Date: 2005-02-23 17:41:10 -0800 (Wed, 23 Feb 2005)
New Revision: 709

Modified:
   trunk/helper/pref-gtk.c
Log:
* pref-gtk.c
  - (quit_confirm): Changed buttons to GTK_BUTTONS_YES_NO instead of
    GTK_BUTTONS_OK_CANCEL. Thanks 336 of [Anthy/uim thread 5].
    But saving issue doesn't reproduce on my environment....
  - (quit_confirm_dialog_response_cb): Ditto.
  - (check_dot_uim_file): Set parent window of warning dialog.
    Thanks 471 of [Anthy/uim thread 5].


Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c	2005-02-24 01:26:18 UTC (rev 708)
+++ trunk/helper/pref-gtk.c	2005-02-24 01:41:10 UTC (rev 709)
@@ -163,10 +163,12 @@
 
   switch (arg)
   {
+  case GTK_RESPONSE_YES:
   case GTK_RESPONSE_OK:
     *quit = TRUE;
     break;
   case GTK_RESPONSE_CANCEL:
+  case GTK_RESPONSE_NO:
     *quit = FALSE;
     break;
   default:
@@ -184,7 +186,7 @@
     dialog = gtk_message_dialog_new(NULL,
 				    GTK_DIALOG_MODAL,
 				    GTK_MESSAGE_QUESTION,
-				    GTK_BUTTONS_OK_CANCEL,
+				    GTK_BUTTONS_YES_NO,
 				    _("Some value(s) have been changed.\n"
 				      "Do you realy quit this program?"));
     gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(pref_window));
@@ -494,6 +496,10 @@
 				  GTK_MESSAGE_WARNING,
 				  GTK_BUTTONS_OK,
 				  _(message));
+  if (pref_window) {
+    gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(pref_window));
+    gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER_ON_PARENT);
+  }
 
   /*
    *  2005-02-07 Takuro Ashie <ashie at homa.ne.jp>



More information about the Uim-commit mailing list