[gnome-control-center] display: don't use -1 as the minimum width
- From: Thomas Wood <thos src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display: don't use -1 as the minimum width
- Date: Tue, 21 Dec 2010 15:01:50 +0000 (UTC)
commit 2c2b9d9fde78d721a59798ff8c55db78f02beef9
Author: Thomas Wood <thos gnome org>
Date: Tue Dec 21 14:25:15 2010 +0000
display: don't use -1 as the minimum width
A valid minimum width must be more than or equal to zero.
panels/display/scrollarea.c | 4 ++--
panels/display/xrandr-capplet.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/display/scrollarea.c b/panels/display/scrollarea.c
index dc3078e..14ab7a9 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 4514661..ab1d80f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]