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>
This commit is contained in:
parent
49e441ce7c
commit
b06684e157
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue