diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-11-02 21:16:54 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-11-02 21:16:54 +0000 |
commit | 44934dca38dfe7ded70881237c3bc73f71fac566 (patch) | |
tree | 210e29e5a617d33fb3fd93c8449ec21d197de8e6 /gtk/gtkviewport.c | |
parent | 92d5e4b2c73eb3469133da0ff9689d62ff8c4ff8 (diff) | |
download | gtk+-44934dca38dfe7ded70881237c3bc73f71fac566.tar.gz |
Remove random + 5 for width and height. If people want padding, they
Fri Nov 2 16:14:15 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkviewport.c (gtk_viewport_size_request): Remove
random + 5 for width and height. If people want padding,
they should add padding. (Note the +5 isn't padding
that will always appear - it just appears in the case
where the widget is allocated it's requisition.)
(#51018, Janet Davis)
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 9ac5b47d30..8446beee4e 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -602,10 +602,10 @@ gtk_viewport_size_request (GtkWidget *widget, bin = GTK_BIN (widget); requisition->width = (GTK_CONTAINER (widget)->border_width + - GTK_WIDGET (widget)->style->xthickness) * 2 + 5; + GTK_WIDGET (widget)->style->xthickness) * 2; requisition->height = (GTK_CONTAINER (widget)->border_width * 2 + - GTK_WIDGET (widget)->style->ythickness) * 2 + 5; + GTK_WIDGET (widget)->style->ythickness) * 2; if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) { |