From a7c97f5d6b1b5397bde29490209c9c9c5d1992dd Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 18 Mar 2003 19:43:46 +0000 Subject: use GtkMessageDialog instead of gnome_question_dialog, and deal correctly 2003-03-18 Rodrigo Moya * gui/dialogs/send-comp.c (send_component_dialog): use GtkMessageDialog instead of gnome_question_dialog, and deal correctly with the dialog's response. svn path=/trunk/; revision=20342 --- calendar/ChangeLog | 6 ++++++ calendar/gui/dialogs/send-comp.c | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 20c9e90df2..8fa8e676dd 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2003-03-18 Rodrigo Moya + + * gui/dialogs/send-comp.c (send_component_dialog): use GtkMessageDialog + instead of gnome_question_dialog, and deal correctly with the dialog's + response. + 2003-03-18 Rodrigo Moya Fixes #34505 diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c index 65fc6bab96..de89d607c2 100644 --- a/calendar/gui/dialogs/send-comp.c +++ b/calendar/gui/dialogs/send-comp.c @@ -23,9 +23,8 @@ #endif #include +#include #include -#include -#include #include #include #include "send-comp.h" @@ -46,6 +45,7 @@ send_component_dialog (CalClient *client, CalComponent *comp, gboolean new) GtkWidget *dialog; CalComponentVType vtype; char *str; + gint response; if (cal_client_get_save_schedules (client)) return FALSE; @@ -80,9 +80,14 @@ send_component_dialog (CalClient *client, CalComponent *comp, gboolean new) return FALSE; } - dialog = gnome_question_dialog_modal (str, NULL, NULL); + dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, str); - if (gnome_dialog_run (GNOME_DIALOG (dialog)) == GNOME_YES) + response = gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); + + if (response == GTK_RESPONSE_YES) return TRUE; else return FALSE; -- cgit