aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-11-25 07:19:21 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-11-25 07:19:21 +0800
commitbc01d3ac62f6f65f4d04ec439fc1ade0a355f879 (patch)
treed99374db7b4cc8d872d093ac2cebc2f0af871d6b /calendar/gui
parent2e37a8a2bf849f721fcdbcd947bdfcc829382111 (diff)
downloadgsoc2013-evolution-bc01d3ac62f6f65f4d04ec439fc1ade0a355f879.tar.gz
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
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/delete-comp.c17
1 files changed, 6 insertions, 11 deletions
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;
}