aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-03-19 03:43:46 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-03-19 03:43:46 +0800
commita7c97f5d6b1b5397bde29490209c9c9c5d1992dd (patch)
treee09d8ee71f8ed7e8333d2f4e92b50a991c46ffbd /calendar
parentede2b62efc5abfa70e7bf95b8aba1c53817161ec (diff)
downloadgsoc2013-evolution-a7c97f5d6b1b5397bde29490209c9c9c5d1992dd.tar.gz
gsoc2013-evolution-a7c97f5d6b1b5397bde29490209c9c9c5d1992dd.tar.zst
gsoc2013-evolution-a7c97f5d6b1b5397bde29490209c9c9c5d1992dd.zip
use GtkMessageDialog instead of gnome_question_dialog, and deal correctly
2003-03-18 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/send-comp.c (send_component_dialog): use GtkMessageDialog instead of gnome_question_dialog, and deal correctly with the dialog's response. svn path=/trunk/; revision=20342
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/dialogs/send-comp.c13
2 files changed, 15 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 20c9e90df2..8fa8e676dd 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,11 @@
2003-03-18 Rodrigo Moya <rodrigo@ximian.com>
+ * gui/dialogs/send-comp.c (send_component_dialog): use GtkMessageDialog
+ instead of gnome_question_dialog, and deal correctly with the dialog's
+ response.
+
+2003-03-18 Rodrigo Moya <rodrigo@ximian.com>
+
Fixes #34505
* gui/alarm-notify/alarm-queue.c (remove_queued_alarm): added removal
diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c
index 65fc6bab96..de89d607c2 100644
--- a/calendar/gui/dialogs/send-comp.c
+++ b/calendar/gui/dialogs/send-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 "send-comp.h"
@@ -46,6 +45,7 @@ send_component_dialog (CalClient *client, CalComponent *comp, gboolean new)
GtkWidget *dialog;
CalComponentVType vtype;
char *str;
+ gint response;
if (cal_client_get_save_schedules (client))
return FALSE;
@@ -80,9 +80,14 @@ send_component_dialog (CalClient *client, CalComponent *comp, gboolean new)
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;