Commit 3e90b96b authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington

When setting relief, also affect toggle buttons.

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.
parent 6c0458c4
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment