aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-03-28 08:23:42 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-03-28 08:23:42 +0800
commit96049eac2a6cfb2047fe13b0431212376e863789 (patch)
tree4135c0a2ac09553d3c60f83fdd8025cff32315b2 /mail/mail-accounts.c
parent87739f91445379a09dd9c53e24a1af63da874622 (diff)
downloadgsoc2013-evolution-96049eac2a6cfb2047fe13b0431212376e863789.tar
gsoc2013-evolution-96049eac2a6cfb2047fe13b0431212376e863789.tar.gz
gsoc2013-evolution-96049eac2a6cfb2047fe13b0431212376e863789.tar.bz2
gsoc2013-evolution-96049eac2a6cfb2047fe13b0431212376e863789.tar.lz
gsoc2013-evolution-96049eac2a6cfb2047fe13b0431212376e863789.tar.xz
gsoc2013-evolution-96049eac2a6cfb2047fe13b0431212376e863789.tar.zst
gsoc2013-evolution-96049eac2a6cfb2047fe13b0431212376e863789.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=16270
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r--mail/mail-accounts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index 9667be98b6..ccba207dfa 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -364,6 +364,8 @@ mail_accounts_etable_new (char *widget_name, char *string1, char *string2, int i
E_TABLE_MEMORY_STORE_STRING,
E_TABLE_MEMORY_STORE_TERMINATOR,
};
+
+ return NULL;
extras = e_table_extras_new ();
@@ -392,8 +394,8 @@ mail_accounts_tab_construct (MailAccountsTab *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);
prefs->table = E_TABLE (glade_xml_get_widget (gui, "etableMailAccounts"));