aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-composer-prefs.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-03-28 08:24:10 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-03-28 08:24:10 +0800
commit51b3ce892c93035c8add64abcc3bdb2a994bb0c3 (patch)
treebf70667ecb275b1882361fdd8617b40d13291947 /mail/mail-composer-prefs.c
parent96049eac2a6cfb2047fe13b0431212376e863789 (diff)
downloadgsoc2013-evolution-51b3ce892c93035c8add64abcc3bdb2a994bb0c3.tar.gz
gsoc2013-evolution-51b3ce892c93035c8add64abcc3bdb2a994bb0c3.tar.zst
gsoc2013-evolution-51b3ce892c93035c8add64abcc3bdb2a994bb0c3.zip
Use gtk_container_add() to put the toplevel in the parent widget, instead
* mail-accounts.c (mail_accounts_tab_construct): Use gtk_container_add() to put the toplevel in the parent widget, instead of just gtk_widget_set_parent(). * mail-preferences.c (mail_preferences_construct): Likewise. * mail-composer-prefs.c (mail_composer_prefs_construct): Likewise. svn path=/trunk/; revision=16271
Diffstat (limited to 'mail/mail-composer-prefs.c')
-rw-r--r--mail/mail-composer-prefs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c
index ef8afb3d4d..6b1f4e09dc 100644
--- a/mail/mail-composer-prefs.c
+++ b/mail/mail-composer-prefs.c
@@ -158,8 +158,8 @@ mail_composer_prefs_construct (MailComposerPrefs *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 */