[gnome-control-center/wip/animated-notebook] shell: Fix shell overview width



commit b7fa06b1f33755f4c106bb846c61f13a019dd9ea
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 3 19:18:04 2012 +0100

    shell: Fix shell overview width
    
    Using minimum size hints

 shell/gnome-control-center.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 5c251b2..31ff235 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -1117,6 +1117,7 @@ gnome_control_center_init (GnomeControlCenter *self)
 {
   GError *err = NULL;
   GnomeControlCenterPrivate *priv;
+  GdkGeometry hints;
 
   priv = self->priv = CONTROL_CENTER_PRIVATE (self);
 
@@ -1145,6 +1146,13 @@ gnome_control_center_init (GnomeControlCenter *self)
 
   priv->notebook = W (priv->builder, "notebook");
 
+  hints.min_width = FIXED_WIDTH;
+  hints.min_height = FIXED_HEIGHT;
+  gtk_window_set_geometry_hints (GTK_WINDOW (priv->window),
+				 priv->notebook,
+				 &hints,
+				 GDK_HINT_MIN_SIZE);
+
   /* Main scrolled window */
   priv->scrolled_window = W (priv->builder, "scrolledwindow1");
   g_object_ref (priv->scrolled_window);



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