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/ChangeLog | 5 +++++ calendar/gui/dialogs/delete-comp.c | 17 ++++++----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 120e792919..579c405c49 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2002-11-22 Not Zed + + * gui/dialogs/delete-comp.c (delete_component_dialog): Changed + e_messagebox -> gtk_messagedialog. + 2002-11-21 Not Zed * gui/component-factory.c (create_view): pass type to 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 v1.2.3