diff options
author | Not Zed <NotZed@Ximian.com> | 2002-11-25 07:19:21 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-11-25 07:19:21 +0800 |
commit | bc01d3ac62f6f65f4d04ec439fc1ade0a355f879 (patch) | |
tree | d99374db7b4cc8d872d093ac2cebc2f0af871d6b | |
parent | 2e37a8a2bf849f721fcdbcd947bdfcc829382111 (diff) | |
download | gsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.tar gsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.tar.gz gsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.tar.bz2 gsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.tar.lz gsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.tar.xz gsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.tar.zst gsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.zip |
Changed e_messagebox -> gtk_messagedialog.
2002-11-22 Not Zed <NotZed@Ximian.com>
* gui/dialogs/delete-comp.c (delete_component_dialog): Changed
e_messagebox -> gtk_messagedialog.
svn path=/trunk/; revision=18903
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <NotZed@Ximian.com> + + * gui/dialogs/delete-comp.c (delete_component_dialog): Changed + e_messagebox -> gtk_messagedialog. + 2002-11-21 Not Zed <NotZed@Ximian.com> * 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 <glib.h> #include <gtk/gtkstock.h> +#include <gtk/gtkmessagedialog.h> #include <libgnome/gnome-i18n.h> #include <gal/widgets/e-unicode.h> -#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; } |