aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-preferences.c')
-rw-r--r--mail/mail-preferences.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-preferences.c b/mail/mail-preferences.c
index 51c6bbb500..02096798a4 100644
--- a/mail/mail-preferences.c
+++ b/mail/mail-preferences.c
@@ -171,8 +171,8 @@ mail_preferences_construct (MailPreferences *prefs)
/* reparent */
gtk_widget_ref (toplevel);
- gtk_widget_unparent (toplevel);
- gtk_widget_set_parent (toplevel, GTK_WIDGET (prefs));
+ gtk_container_remove (GTK_CONTAINER (toplevel->parent), toplevel);
+ gtk_container_add (GTK_CONTAINER (prefs), toplevel);
gtk_widget_unref (toplevel);
/* General tab */