[gnome-control-center] shell: Update scrolled window height on smallness change



commit 85dbb1d8c55d505f4759a6239fa1348e5975b987
Author: Bastien Nocera <hadess hadess net>
Date:   Mon May 21 16:08:52 2012 +0100

    shell: Update scrolled window height on smallness change
    
    When the small mode changes, make sure to update the scrolled
    window's natural height.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673869#c47

 shell/gnome-control-center.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 849fe11..1b76bcc 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -1206,7 +1206,6 @@ update_small_screen_settings (GnomeControlCenter *self)
   if (small == SMALL_SCREEN_TRUE)
     {
       gtk_window_set_resizable (GTK_WINDOW (self->priv->window), TRUE);
-      gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (self->priv->scrolled_window), SMALL_SCREEN_FIXED_HEIGHT);
 
       if (self->priv->small_screen != small)
         gtk_window_maximize (GTK_WINDOW (self->priv->window));
@@ -1220,6 +1219,9 @@ update_small_screen_settings (GnomeControlCenter *self)
     }
 
   self->priv->small_screen = small;
+
+  /* And update the minimum sizes */
+  notebook_page_notify_cb (CC_NOTEBOOK (self->priv->notebook), NULL, self->priv);
 }
 
 static gboolean



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