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/gui/dialogs/send-comp.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'calendar/gui/dialogs/send-comp.c') 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 v1.2.3