summaryrefslogtreecommitdiff
path: root/panels
diff options
context:
space:
mode:
Diffstat (limited to 'panels')
-rw-r--r--panels/display/scrollarea.c4
-rw-r--r--panels/display/xrandr-capplet.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/panels/display/scrollarea.c b/panels/display/scrollarea.c
index dc3078e0b..14ab7a9b9 100644
--- a/panels/display/scrollarea.c
+++ b/panels/display/scrollarea.c
@@ -293,8 +293,8 @@ foo_scroll_area_init (FooScrollArea *scroll_area)
scroll_area->priv->vadj = g_object_ref_sink (new_adjustment());
scroll_area->priv->x_offset = 0.0;
scroll_area->priv->y_offset = 0.0;
- scroll_area->priv->min_width = -1;
- scroll_area->priv->min_height = -1;
+ scroll_area->priv->min_width = 0;
+ scroll_area->priv->min_height = 0;
scroll_area->priv->auto_scroll_info = NULL;
scroll_area->priv->input_regions = g_ptr_array_new ();
scroll_area->priv->surface = NULL;
diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c
index 45146611b..ab1d80fa4 100644
--- a/panels/display/xrandr-capplet.c
+++ b/panels/display/xrandr-capplet.c
@@ -2553,7 +2553,7 @@ run_application (void)
set_monitors_tooltip (app, FALSE);
/* FIXME: this should be computed dynamically */
- foo_scroll_area_set_min_size (FOO_SCROLL_AREA (app->area), -1, 200);
+ foo_scroll_area_set_min_size (FOO_SCROLL_AREA (app->area), 0, 200);
gtk_widget_show (app->area);
g_signal_connect (app->area, "paint",
G_CALLBACK (on_area_paint), app);