aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
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) {