aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-06-04 11:37:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-04 11:37:54 +0800
commitea7ed64281ae50761f1e4b84a467d52ad4a022d4 (patch)
treec4fb128e544f934052a83b4d71c4c9f06d9cb047 /mail
parent9773d74ec175f335918279c65f36294cc9bfc9f0 (diff)
downloadgsoc2013-evolution-ea7ed64281ae50761f1e4b84a467d52ad4a022d4.tar
gsoc2013-evolution-ea7ed64281ae50761f1e4b84a467d52ad4a022d4.tar.gz
gsoc2013-evolution-ea7ed64281ae50761f1e4b84a467d52ad4a022d4.tar.bz2
gsoc2013-evolution-ea7ed64281ae50761f1e4b84a467d52ad4a022d4.tar.lz
gsoc2013-evolution-ea7ed64281ae50761f1e4b84a467d52ad4a022d4.tar.xz
gsoc2013-evolution-ea7ed64281ae50761f1e4b84a467d52ad4a022d4.tar.zst
gsoc2013-evolution-ea7ed64281ae50761f1e4b84a467d52ad4a022d4.zip
Correctly get the GtkWindow ancestor of the prefs widget.
2002-06-03 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (account_delete_clicked): Correctly get the GtkWindow ancestor of the prefs widget. svn path=/trunk/; revision=17095
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-accounts.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 46caa2cb9b..98fa38a442 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-03 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-accounts.c (account_delete_clicked): Correctly get the
+ GtkWindow ancestor of the prefs widget.
+
2002-06-03 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (composer_get_message): Changed to check
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index 9d2d78d4c5..0868e5a883 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -61,6 +61,9 @@ static GdkPixbuf *enabled_pixbuf = NULL;
static GtkVBoxClass *parent_class = NULL;
+#define PREFS_WINDOW(prefs) GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (prefs), GTK_TYPE_WINDOW))
+
+
GtkType
mail_accounts_tab_get_type (void)
{
@@ -217,7 +220,7 @@ account_delete_clicked (GtkButton *button, gpointer user_data)
gtk_window_set_policy (GTK_WINDOW (confirm), TRUE, TRUE, TRUE);
gtk_window_set_modal (GTK_WINDOW (confirm), TRUE);
gtk_window_set_title (GTK_WINDOW (confirm), _("Really delete account?"));
- gnome_dialog_set_parent (confirm, GTK_WINDOW (prefs));
+ gnome_dialog_set_parent (confirm, PREFS_WINDOW (prefs));
ans = gnome_dialog_run_and_close (confirm);
if (ans == 0) {