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.
This commit is contained in:
Havoc Pennington 1998-11-23 06:53:07 +00:00 committed by Havoc Pennington
parent 6c0458c428
commit 3e90b96b08
8 changed files with 45 additions and 1 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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);
}