forked from AuroraMiddleware/gtk
Clamp size of child to at least 1x1. (#82431, Boris Shingarov.)
Wed Jun 12 16:21:38 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Clamp size of child to at least 1x1. (#82431, Boris Shingarov.)
This commit is contained in:
parent
f51ef574b5
commit
e9ed9a7fa1
@ -1,3 +1,9 @@
|
|||||||
|
Wed Jun 12 16:21:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
|
||||||
|
Clamp size of child to at least 1x1. (#82431,
|
||||||
|
Boris Shingarov.)
|
||||||
|
|
||||||
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Jun 12 16:21:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
|
||||||
|
Clamp size of child to at least 1x1. (#82431,
|
||||||
|
Boris Shingarov.)
|
||||||
|
|
||||||
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Jun 12 16:21:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
|
||||||
|
Clamp size of child to at least 1x1. (#82431,
|
||||||
|
Boris Shingarov.)
|
||||||
|
|
||||||
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Jun 12 16:21:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
|
||||||
|
Clamp size of child to at least 1x1. (#82431,
|
||||||
|
Boris Shingarov.)
|
||||||
|
|
||||||
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Jun 12 16:21:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
|
||||||
|
Clamp size of child to at least 1x1. (#82431,
|
||||||
|
Boris Shingarov.)
|
||||||
|
|
||||||
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Jun 12 16:21:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
|
||||||
|
Clamp size of child to at least 1x1. (#82431,
|
||||||
|
Boris Shingarov.)
|
||||||
|
|
||||||
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
Wed Jun 12 15:43:38 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
* gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
|
||||||
|
@ -301,9 +301,12 @@ gtk_check_button_size_allocate (GtkWidget *widget,
|
|||||||
allocation->width -
|
allocation->width -
|
||||||
((border_width + focus_width + focus_pad) * 2
|
((border_width + focus_width + focus_pad) * 2
|
||||||
+ indicator_size + indicator_spacing * 3));
|
+ indicator_size + indicator_spacing * 3));
|
||||||
|
child_allocation.width = MAX (child_allocation.width, 1);
|
||||||
|
|
||||||
child_allocation.height = MIN (child_requisition.height,
|
child_allocation.height = MIN (child_requisition.height,
|
||||||
allocation->height - (border_width + focus_width + focus_pad) * 2);
|
allocation->height - (border_width + focus_width + focus_pad) * 2);
|
||||||
|
child_allocation.height = MAX (child_allocation.height, 1);
|
||||||
|
|
||||||
child_allocation.x = (border_width + indicator_size + indicator_spacing * 3 +
|
child_allocation.x = (border_width + indicator_size + indicator_spacing * 3 +
|
||||||
widget->allocation.x + focus_width + focus_pad);
|
widget->allocation.x + focus_width + focus_pad);
|
||||||
child_allocation.y = widget->allocation.y +
|
child_allocation.y = widget->allocation.y +
|
||||||
|
Loading…
Reference in New Issue
Block a user