diff options
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 40f197a8e2..c184714f86 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -2237,9 +2237,8 @@ providers_config (BonoboUIComponent *uih, void *user_data, const char *path) if (!accounts_dialog) { accounts_dialog = mail_accounts_dialog_new (fb->shell); - gtk_widget_set_parent (GTK_WIDGET (accounts_dialog), GTK_WIDGET (fb)); - gtk_widget_set_parent_window (GTK_WIDGET (accounts_dialog), - GTK_WIDGET (FB_WINDOW (fb))->window); + gtk_widget_set_parent_window (GTK_WIDGET (accounts_dialog), fb); + gtk_signal_connect (GTK_OBJECT (accounts_dialog), "destroy", accounts_dialog_close, NULL); gnome_dialog_set_close (GNOME_DIALOG (accounts_dialog), TRUE); |