Hiroyuki Ikezoe
ikezo****@users*****
2006年 11月 23日 (木) 20:44:31 JST
Index: libtomoe-gtk/src/tomoe-details.c diff -u libtomoe-gtk/src/tomoe-details.c:1.21 libtomoe-gtk/src/tomoe-details.c:1.22 --- libtomoe-gtk/src/tomoe-details.c:1.21 Thu Nov 23 15:48:38 2006 +++ libtomoe-gtk/src/tomoe-details.c Thu Nov 23 20:44:31 2006 @@ -483,7 +483,7 @@ g_return_if_fail (GTK_IS_DIALOG (dlg)); - gtk_dialog_response (dlg, GTK_RESPONSE_DELETE_EVENT); + gtk_dialog_response (dlg, GTK_RESPONSE_CLOSE); } static void @@ -496,8 +496,14 @@ result = gtk_dialog_run (GTK_DIALOG (wnd)); gtk_widget_destroy (wnd); - if (result) - _show_details (dialog); + switch (result) { + case GTK_RESPONSE_APPLY: + _show_details (dialog); + break; + case GTK_RESPONSE_CANCEL: + default: + break; + } } static void Index: libtomoe-gtk/src/tomoe-edit-char.c diff -u libtomoe-gtk/src/tomoe-edit-char.c:1.8 libtomoe-gtk/src/tomoe-edit-char.c:1.9 --- libtomoe-gtk/src/tomoe-edit-char.c:1.8 Thu Nov 23 20:32:10 2006 +++ libtomoe-gtk/src/tomoe-edit-char.c Thu Nov 23 20:44:31 2006 @@ -253,7 +253,7 @@ tomoe_char_set_code (priv->character, gtk_entry_get_text (GTK_ENTRY (priv->input))); - gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_DELETE_EVENT); + gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_APPLY); } static void @@ -263,7 +263,7 @@ g_return_if_fail (GTK_IS_DIALOG (dialog)); - gtk_dialog_response (dialog, GTK_RESPONSE_DELETE_EVENT); + gtk_dialog_response (dialog, GTK_RESPONSE_CANCEL); } static void Index: libtomoe-gtk/src/tomoe-edit-strokes.c diff -u libtomoe-gtk/src/tomoe-edit-strokes.c:1.10 libtomoe-gtk/src/tomoe-edit-strokes.c:1.11 --- libtomoe-gtk/src/tomoe-edit-strokes.c:1.10 Thu Nov 23 19:05:20 2006 +++ libtomoe-gtk/src/tomoe-edit-strokes.c Thu Nov 23 20:44:31 2006 @@ -263,7 +263,7 @@ writing = tomoe_canvas_get_writing (TOMOE_CANVAS (priv->canvas)); tomoe_char_set_writing (priv->character, writing); - gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_DELETE_EVENT); + gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_APPLY); } static void @@ -273,7 +273,7 @@ g_return_if_fail (GTK_IS_DIALOG (dlg)); - gtk_dialog_response (dlg, GTK_RESPONSE_DELETE_EVENT); + gtk_dialog_response (dlg, GTK_RESPONSE_CANCEL); } static void