summaryrefslogtreecommitdiff
path: root/panels
diff options
context:
space:
mode:
authorThomas Wood <thos@gnome.org>2010-12-21 14:25:15 +0000
committerThomas Wood <thos@gnome.org>2010-12-21 14:25:15 +0000
commit2c2b9d9fde78d721a59798ff8c55db78f02beef9 (patch)
treea2177aa552516f04286e7c9a18ad32a850ef28f5 /panels
parentd1bac479ef744d224e42c137d83a8243017e0d75 (diff)
downloadgnome-control-center-2c2b9d9fde78d721a59798ff8c55db78f02beef9.tar.gz
display: don't use -1 as the minimum width
A valid minimum width must be more than or equal to zero.
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);