From bc01d3ac62f6f65f4d04ec439fc1ade0a355f879 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Sun, 24 Nov 2002 23:19:21 +0000 Subject: Changed e_messagebox -> gtk_messagedialog. 2002-11-22 Not Zed * gui/dialogs/delete-comp.c (delete_component_dialog): Changed e_messagebox -> gtk_messagedialog. svn path=/trunk/; revision=18903 --- calendar/gui/dialogs/delete-comp.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'calendar/gui/dialogs/delete-comp.c') diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c index f4606041f7..9b2621043a 100644 --- a/calendar/gui/dialogs/delete-comp.c +++ b/calendar/gui/dialogs/delete-comp.c @@ -24,9 +24,9 @@ #include #include +#include #include #include -#include "widgets/misc/e-messagebox.h" #include "../calendar-config.h" #include "delete-comp.h" @@ -62,6 +62,7 @@ delete_component_dialog (CalComponent *comp, { char *str; GtkWidget *dialog; + int ret; if (comp) { g_return_val_if_fail (IS_CAL_COMPONENT (comp), FALSE); @@ -149,16 +150,10 @@ delete_component_dialog (CalComponent *comp, } } - dialog = e_message_box_new (str, E_MESSAGE_BOX_QUESTION, - GTK_STOCK_YES, - GTK_STOCK_NO, - NULL); + dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", str); g_free (str); + ret = gtk_dialog_run((GtkDialog *)dialog) == GTK_RESPONSE_YES; + gtk_widget_destroy(dialog); - gtk_widget_hide (e_message_box_get_checkbox (E_MESSAGE_BOX (dialog))); - - if (gnome_dialog_run_and_close (GNOME_DIALOG (dialog)) == 0) - return TRUE; - else - return FALSE; + return ret; } -- cgit