aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-03-21 01:47:54 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-03-21 01:47:54 +0800
commitaa30af489775562d385eab6200961b8b5d653c87 (patch)
tree3358011a3aa519f233e1ba5dd83339bddabc9f85
parentce0fb06f3eb807d53bacf697302eab291418deb7 (diff)
downloadgsoc2013-evolution-aa30af489775562d385eab6200961b8b5d653c87.tar
gsoc2013-evolution-aa30af489775562d385eab6200961b8b5d653c87.tar.gz
gsoc2013-evolution-aa30af489775562d385eab6200961b8b5d653c87.tar.bz2
gsoc2013-evolution-aa30af489775562d385eab6200961b8b5d653c87.tar.lz
gsoc2013-evolution-aa30af489775562d385eab6200961b8b5d653c87.tar.xz
gsoc2013-evolution-aa30af489775562d385eab6200961b8b5d653c87.tar.zst
gsoc2013-evolution-aa30af489775562d385eab6200961b8b5d653c87.zip
use a GtkMessageDialog and deal correctly with the dialog's reponses.
2003-03-20 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/cancel-comp.c (cancel_component_dialog): use a GtkMessageDialog and deal correctly with the dialog's reponses. svn path=/trunk/; revision=20434
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/cancel-comp.c13
2 files changed, 14 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index a059becf08..7cbce3bf51 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,10 @@
2003-03-20 Rodrigo Moya <rodrigo@ximian.com>
+ * gui/dialogs/cancel-comp.c (cancel_component_dialog): use a
+ GtkMessageDialog and deal correctly with the dialog's reponses.
+
+2003-03-20 Rodrigo Moya <rodrigo@ximian.com>
+
Fixes #39770
* gui/itip-utils.c (itip_Send_comp): check the CORBA exception instead
diff --git a/calendar/gui/dialogs/cancel-comp.c b/calendar/gui/dialogs/cancel-comp.c
index 442426fa5d..0e48dd3763 100644
--- a/calendar/gui/dialogs/cancel-comp.c
+++ b/calendar/gui/dialogs/cancel-comp.c
@@ -23,9 +23,8 @@
#endif
#include <glib.h>
+#include <gtk/gtkmessagedialog.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"
@@ -46,6 +45,7 @@ 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,9 +86,14 @@ cancel_component_dialog (CalClient *client, CalComponent *comp, gboolean deletin
return FALSE;
}
- dialog = gnome_question_dialog_modal (str, NULL, NULL);
+ dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
+ GTK_MESSAGE_QUESTION,
+ GTK_BUTTONS_YES_NO, str);
- if (gnome_dialog_run (GNOME_DIALOG (dialog)) == GNOME_YES)
+ response = gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+
+ if (response == GTK_RESPONSE_YES)
return TRUE;
else
return FALSE;