shell: Check for small screen before showing window

Map the window before displaying it, so we can maximise it straight
away and avoid visible resizing.
This commit is contained in:
Bastien Nocera 2012-05-08 19:15:19 +01:00
parent ecda0ad5c0
commit 22ed5a9fd5

View file

@ -1260,6 +1260,10 @@ gnome_control_center_init (GnomeControlCenter *self)
setup_lock (self);
/* update small screen settings now */
gtk_widget_realize (priv->window);
update_small_screen_settings (self);
/* store default window title and name */
priv->default_window_title = g_strdup (gtk_window_get_title (GTK_WINDOW (priv->window)));
priv->default_window_icon = g_strdup (gtk_window_get_icon_name (GTK_WINDOW (priv->window)));