[gnome-control-center/display-capplet-ui-cleanup: 4/4] Remove hack to shrink the FooScrollArea if the screen is too small



commit b06684e157e1a8da97476c2c1b8c308d503edd4a
Author: Federico Mena Quintero <federico novell com>
Date:   Fri Feb 12 13:55:19 2010 -0600

    Remove hack to shrink the FooScrollArea if the screen is too small
    
    The new window fits in 640x480 without any adjustments to the size of the
    FooScrollArea, so we don't need to adjust that size anymore.
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 capplets/display/xrandr-capplet.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index b1d6bea..2756e52 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -2383,10 +2383,7 @@ run_application (App *app)
     g_object_set_data (G_OBJECT (app->area), "app", app);
 
     /* FIXME: this should be computed dynamically */
-    if (gdk_screen_get_height (gdk_screen_get_default ()) <= 600)
-	foo_scroll_area_set_min_size (FOO_SCROLL_AREA (app->area), -1, 150);
-    else
-	foo_scroll_area_set_min_size (FOO_SCROLL_AREA (app->area), -1, 200);
+    foo_scroll_area_set_min_size (FOO_SCROLL_AREA (app->area), -1, 200);
     gtk_widget_show (app->area);
     g_signal_connect (app->area, "paint",
 		      G_CALLBACK (on_area_paint), app);



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