diff options
Diffstat (limited to 'calendar/gui/dialogs/cancel-comp.c')
-rw-r--r-- | calendar/gui/dialogs/cancel-comp.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/cancel-comp.c b/calendar/gui/dialogs/cancel-comp.c index 0e48dd3763..19d593182c 100644 --- a/calendar/gui/dialogs/cancel-comp.c +++ b/calendar/gui/dialogs/cancel-comp.c @@ -23,8 +23,10 @@ #endif #include <glib.h> -#include <gtk/gtkmessagedialog.h> +#include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> +#include <libgnomeui/gnome-dialog.h> +#include <libgnomeui/gnome-dialog-util.h> #include <libgnomeui/gnome-uidefs.h> #include <gal/widgets/e-unicode.h> #include "cancel-comp.h" @@ -45,7 +47,6 @@ cancel_component_dialog (CalClient *client, CalComponent *comp, gboolean deletin GtkWidget *dialog; CalComponentVType vtype; char *str; - gint response; if (deleting && cal_client_get_save_schedules (client)) return TRUE; @@ -86,14 +87,9 @@ cancel_component_dialog (CalClient *client, CalComponent *comp, gboolean deletin return FALSE; } - dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, - GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, str); + dialog = gnome_question_dialog_modal (str, NULL, NULL); - response = gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); - - if (response == GTK_RESPONSE_YES) + if (gnome_dialog_run (GNOME_DIALOG (dialog)) == GNOME_YES) return TRUE; else return FALSE; |