aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorBruce Tao <bruce.tao@sun.com>2004-02-12 17:44:47 +0800
committerYuedong Du <york@src.gnome.org>2004-02-12 17:44:47 +0800
commit678779afb87dad7986eb6fd2130ec1a316ee4201 (patch)
tree51e85c25d2a8dddf01915fd3e74240e1f68ee989 /calendar
parenta8714b94b86d50458970fa208b402286325b757f (diff)
downloadgsoc2013-evolution-678779afb87dad7986eb6fd2130ec1a316ee4201.tar.gz
gsoc2013-evolution-678779afb87dad7986eb6fd2130ec1a316ee4201.tar.zst
gsoc2013-evolution-678779afb87dad7986eb6fd2130ec1a316ee4201.zip
See #51567 use "gtk_dialog_add_buttons" to change the response_id of
2004-02-13 Bruce Tao <bruce.tao@sun.com> See #51567 * gui/dialogs/delete-comp.c (delete_component_dialog): use "gtk_dialog_add_buttons" to change the response_id of button "YES" and "NO". svn path=/trunk/; revision=24719
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/dialogs/delete-comp.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 0989012d1b..1e82d7c2ee 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2004-02-13 Bruce Tao <bruce.tao@sun.com>
+
+ See #51567
+ * gui/dialogs/delete-comp.c (delete_component_dialog):
+ use "gtk_dialog_add_buttons" to change the response_id of button
+ "YES" and "NO".
+
2004-02-11 Rodrigo Moya <rodrigo@ximian.com>
Fixes #53886
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c
index c4f9e5dc3d..843f79ad3c 100644
--- a/calendar/gui/dialogs/delete-comp.c
+++ b/calendar/gui/dialogs/delete-comp.c
@@ -150,9 +150,10 @@ delete_component_dialog (ECalComponent *comp,
}
dialog = gtk_message_dialog_new ((GtkWindow *)gtk_widget_get_toplevel (widget),
- 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", str);
+ 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", str);
+ gtk_dialog_add_buttons ((GtkDialog *) dialog, GTK_STOCK_NO, GTK_RESPONSE_CANCEL, GTK_STOCK_YES, GTK_RESPONSE_OK, NULL);
g_free (str);
- ret = gtk_dialog_run ((GtkDialog *)dialog) == GTK_RESPONSE_YES;
+ ret = gtk_dialog_run ((GtkDialog *) dialog) == GTK_RESPONSE_OK;
gtk_widget_destroy (dialog);
return ret;