[gnome-control-center] color: Force the color treeview scrolled window to be at least 6 rows in height



commit d75adefd960df7fcc7b38a99f6557ddc668e7e70
Author: Richard Hughes <richard hughsie com>
Date:   Fri May 20 16:34:35 2011 +0100

    color: Force the color treeview scrolled window to be at least 6 rows in height

 panels/color/cc-color-panel.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 6ab5a4f..dea4dc1 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1826,9 +1826,11 @@ cc_color_panel_init (CcColorPanel *prefs)
   /* add columns to the tree view */
   gcm_prefs_add_devices_columns (prefs, GTK_TREE_VIEW (widget));
 
-  /* force to be at least 3 rows high */
+  /* force to be at least ~6 rows high */
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "scrolledwindow_devices"));
+  gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (widget),
+                                              200);
 
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_device_default"));



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