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)
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
||||||
|
|||||||
@ -1,3 +1,12 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
||||||
|
|||||||
@ -1,3 +1,12 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
||||||
|
|||||||
@ -1,3 +1,12 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
||||||
|
|||||||
@ -1,3 +1,12 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
||||||
|
|||||||
@ -1,3 +1,12 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
||||||
|
|||||||
@ -1,3 +1,12 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
* gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
|
||||||
|
|||||||
@ -602,10 +602,10 @@ gtk_viewport_size_request (GtkWidget *widget,
|
|||||||
bin = GTK_BIN (widget);
|
bin = GTK_BIN (widget);
|
||||||
|
|
||||||
requisition->width = (GTK_CONTAINER (widget)->border_width +
|
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 +
|
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))
|
if (bin->child && GTK_WIDGET_VISIBLE (bin->child))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user