aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/delete-comp.c17
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;
}