[gnome-control-center] shell: Check for small screen before showing window



commit 22ed5a9fd565872eb3acd404b798739ac45455a8
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 8 19:15:19 2012 +0100

    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.

 shell/gnome-control-center.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index f2cb8ca..45bb1cc 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -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)));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]