diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-06-29 02:41:06 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-06-29 02:41:06 +0800 |
commit | 3188bb8c2f961885c6bf89fa8ff7edbed75dfd40 (patch) | |
tree | 86d035ef4d27465eb29e63e816424010374e9688 /mail/mail-accounts.c | |
parent | c2c672c537eef298146903f562d896ba89fb2f27 (diff) | |
download | gsoc2013-evolution-3188bb8c2f961885c6bf89fa8ff7edbed75dfd40.tar.gz gsoc2013-evolution-3188bb8c2f961885c6bf89fa8ff7edbed75dfd40.tar.zst gsoc2013-evolution-3188bb8c2f961885c6bf89fa8ff7edbed75dfd40.zip |
Fixes bug #27055.
2002-06-28 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #27055.
* mail-accounts.c (account_add_finished): Unref the main accounts widget.
(account_add_clicked): Ref the main accounts widget.
(account_edit_finished): Unref the main accounts widget.
(account_edit_clicked): Ref the main accounts widget.
svn path=/trunk/; revision=17323
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r-- | mail/mail-accounts.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 7805e47715..18b9e6e925 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -131,7 +131,11 @@ account_add_finished (GtkWidget *widget, gpointer user_data) MailAccountsTab *prefs = user_data; prefs->druid = NULL; - mail_accounts_load (prefs); + + if (!GTK_OBJECT_DESTROYED (prefs)) + mail_accounts_load (prefs); + + gtk_object_unref ((GtkObject *) prefs); } static void @@ -145,6 +149,7 @@ account_add_clicked (GtkButton *button, gpointer user_data) GTK_SIGNAL_FUNC (account_add_finished), prefs); gtk_widget_show (prefs->druid); + gtk_object_ref ((GtkObject *) prefs); } else { gdk_window_raise (prefs->druid->window); } @@ -156,7 +161,11 @@ account_edit_finished (GtkWidget *widget, gpointer user_data) MailAccountsTab *prefs = user_data; prefs->editor = NULL; - mail_accounts_load (prefs); + + if (!GTK_OBJECT_DESTROYED (prefs)) + mail_accounts_load (prefs); + + gtk_object_unref ((GtkObject *) prefs); } static void @@ -187,6 +196,7 @@ account_edit_clicked (GtkButton *button, gpointer user_data) GTK_SIGNAL_FUNC (account_edit_finished), prefs); gtk_widget_show (prefs->editor); + gtk_object_ref ((GtkObject *) prefs); } } else { gdk_window_raise (prefs->editor->window); |