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
This commit is contained in:
@ -149,7 +149,6 @@
|
||||
* mail-preferences.c: Implements the mailer's Preferences tab in
|
||||
Anna's new config GUI.
|
||||
|
||||
>>>>>>> 1.2089.2.5
|
||||
2002-03-19 Larry Ewing <lewing@ximian.com>
|
||||
|
||||
* mail-display.c: add missing NULL closure data to popup menu
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Reference in New Issue
Block a user