From b06684e157e1a8da97476c2c1b8c308d503edd4a Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 12 Feb 2010 13:55:19 -0600 Subject: [PATCH] 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 --- capplets/display/xrandr-capplet.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index b1d6bea5b..2756e52e0 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);