]> Pileus Git - ~andy/gtk/commitdiff
Clamp size of child to at least 1x1. (#82431, Boris Shingarov.)
authorOwen Taylor <otaylor@redhat.com>
Wed, 12 Jun 2002 20:23:30 +0000 (20:23 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 12 Jun 2002 20:23:30 +0000 (20:23 +0000)
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.)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcheckbutton.c

index 7e0855c453ac1e70c76e44f5706ac5d27cb95e4d..d639ea54105bb7c9c066d93de91a16748a74a379 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
index 7e0855c453ac1e70c76e44f5706ac5d27cb95e4d..d639ea54105bb7c9c066d93de91a16748a74a379 100644 (file)
@@ -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>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
index 7e0855c453ac1e70c76e44f5706ac5d27cb95e4d..d639ea54105bb7c9c066d93de91a16748a74a379 100644 (file)
@@ -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>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
index 7e0855c453ac1e70c76e44f5706ac5d27cb95e4d..d639ea54105bb7c9c066d93de91a16748a74a379 100644 (file)
@@ -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>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
index 7e0855c453ac1e70c76e44f5706ac5d27cb95e4d..d639ea54105bb7c9c066d93de91a16748a74a379 100644 (file)
@@ -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>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
index 7e0855c453ac1e70c76e44f5706ac5d27cb95e4d..d639ea54105bb7c9c066d93de91a16748a74a379 100644 (file)
@@ -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>
 
        * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
index 6d911530768ce53ba5271afd4c274f34c383676c..5e3ef30d5139be1edb5b949a7a9cfb97269afdf9 100644 (file)
@@ -301,9 +301,12 @@ gtk_check_button_size_allocate (GtkWidget     *widget,
                                        allocation->width -
                                        ((border_width + focus_width + focus_pad) * 2
                                         + indicator_size + indicator_spacing * 3));
+         child_allocation.width = MAX (child_allocation.width, 1);
 
          child_allocation.height = MIN (child_requisition.height,
                                         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 +
                                widget->allocation.x + focus_width + focus_pad);
          child_allocation.y = widget->allocation.y +