summaryrefslogtreecommitdiff
path: root/gtk/gtkvscale.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/gtkvscale.c
parent3f98a849c70ae570b78095cef0152a33ec07c64e (diff)
downloadgtk+-10ba4fd066042b4335ae45e7560565872f71ba9b.tar.gz
Merges from gtk-1-2
Diffstat (limited to 'gtk/gtkvscale.c')
-rw-r--r--gtk/gtkvscale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkvscale.c b/gtk/gtkvscale.c
index c7c532aefe..a27e0ae4b5 100644
--- a/gtk/gtkvscale.c
+++ b/gtk/gtkvscale.c
@@ -478,6 +478,8 @@ gtk_vscale_pos_background (GtkVScale *vscale,
*h -= theight;
break;
}
+ *w = MAX (*w, 0);
+ *h = MAX (*h, 0);
}
static void