]> Pileus Git - ~andy/gtk/commitdiff
When setting relief, also affect toggle buttons.
authorHavoc Pennington <hp@pobox.com>
Mon, 23 Nov 1998 06:53:07 +0000 (06:53 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Mon, 23 Nov 1998 06:53:07 +0000 (06:53 +0000)
1998-11-23  Havoc Pennington  <hp@pobox.com>

* gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
(gtk_toolbar_insert_element): When setting relief, also affect
toggle buttons.

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

index f197a6566c4555b9fdd21095a1d45d15bd68e6b3..b2fb6c420d1fb1c8c4b97e5a7f5814b7d6a5917a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-11-23  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
+       (gtk_toolbar_insert_element): When setting relief, also affect
+       toggle buttons.
+
 Sun Nov 22 20:37:06 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gtk/gtkobject.h: remove extraneous comma
index f197a6566c4555b9fdd21095a1d45d15bd68e6b3..b2fb6c420d1fb1c8c4b97e5a7f5814b7d6a5917a 100644 (file)
@@ -1,3 +1,9 @@
+1998-11-23  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
+       (gtk_toolbar_insert_element): When setting relief, also affect
+       toggle buttons.
+
 Sun Nov 22 20:37:06 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gtk/gtkobject.h: remove extraneous comma
index f197a6566c4555b9fdd21095a1d45d15bd68e6b3..b2fb6c420d1fb1c8c4b97e5a7f5814b7d6a5917a 100644 (file)
@@ -1,3 +1,9 @@
+1998-11-23  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
+       (gtk_toolbar_insert_element): When setting relief, also affect
+       toggle buttons.
+
 Sun Nov 22 20:37:06 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gtk/gtkobject.h: remove extraneous comma
index f197a6566c4555b9fdd21095a1d45d15bd68e6b3..b2fb6c420d1fb1c8c4b97e5a7f5814b7d6a5917a 100644 (file)
@@ -1,3 +1,9 @@
+1998-11-23  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
+       (gtk_toolbar_insert_element): When setting relief, also affect
+       toggle buttons.
+
 Sun Nov 22 20:37:06 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gtk/gtkobject.h: remove extraneous comma
index f197a6566c4555b9fdd21095a1d45d15bd68e6b3..b2fb6c420d1fb1c8c4b97e5a7f5814b7d6a5917a 100644 (file)
@@ -1,3 +1,9 @@
+1998-11-23  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
+       (gtk_toolbar_insert_element): When setting relief, also affect
+       toggle buttons.
+
 Sun Nov 22 20:37:06 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gtk/gtkobject.h: remove extraneous comma
index f197a6566c4555b9fdd21095a1d45d15bd68e6b3..b2fb6c420d1fb1c8c4b97e5a7f5814b7d6a5917a 100644 (file)
@@ -1,3 +1,9 @@
+1998-11-23  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
+       (gtk_toolbar_insert_element): When setting relief, also affect
+       toggle buttons.
+
 Sun Nov 22 20:37:06 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gtk/gtkobject.h: remove extraneous comma
index f197a6566c4555b9fdd21095a1d45d15bd68e6b3..b2fb6c420d1fb1c8c4b97e5a7f5814b7d6a5917a 100644 (file)
@@ -1,3 +1,9 @@
+1998-11-23  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktoolbar.c: (gtk_toolbar_set_relief):
+       (gtk_toolbar_insert_element): When setting relief, also affect
+       toggle buttons.
+
 Sun Nov 22 20:37:06 PST 1998 Manish Singh <yosh@gimp.org>
 
        * gtk/gtkobject.h: remove extraneous comma
index 4970cbabd7a0534eff3dff1d0eade245f166b5fb..a35e73c1006fb885de267c4d9cbd5a5bdfcd74d8 100644 (file)
@@ -772,6 +772,7 @@ gtk_toolbar_insert_element (GtkToolbar          *toolbar,
       else if (type == GTK_TOOLBAR_CHILD_TOGGLEBUTTON)
        {
          child->widget = gtk_toggle_button_new ();
+         gtk_button_set_relief (GTK_BUTTON (child->widget), toolbar->relief);
          gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (child->widget),
                                      FALSE);
        }
@@ -909,7 +910,8 @@ gtk_toolbar_set_button_relief (GtkToolbar *toolbar,
       for (children = toolbar->children; children; children = children->next)
        {
          child = children->data;
-         if (child->type == GTK_TOOLBAR_CHILD_BUTTON)
+         if (child->type == GTK_TOOLBAR_CHILD_BUTTON ||
+             child->type == GTK_TOOLBAR_CHILD_TOGGLEBUTTON)
            gtk_button_set_relief (GTK_BUTTON (child->widget), relief);
        }