summaryrefslogtreecommitdiff
path: root/gtk/gtkhscale.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2000-03-14 19:57:25 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-03-14 19:57:25 +0000
commit10ba4fd066042b4335ae45e7560565872f71ba9b (patch)
tree17f68ffb0d402b6e66bb891d4a7d9a02a9b6108b /gtk/gtkhscale.c
parent3f98a849c70ae570b78095cef0152a33ec07c64e (diff)
downloadgtk+-10ba4fd066042b4335ae45e7560565872f71ba9b.tar.gz
Merges from gtk-1-2
Diffstat (limited to 'gtk/gtkhscale.c')
-rw-r--r--gtk/gtkhscale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkhscale.c b/gtk/gtkhscale.c
index e138ef1f12..51037cb579 100644
--- a/gtk/gtkhscale.c
+++ b/gtk/gtkhscale.c
@@ -476,6 +476,8 @@ gtk_hscale_pos_background (GtkHScale *hscale,
*h -= theight;
break;
}
+ *w = MAX (*w, 0);
+ *h = MAX (*h, 0);
}
static void