aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;