Include radio buttons when setting relief for button items.

* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
	buttons when setting relief for button items.
	(gtk_toolbar_set_button_relief): Same.
This commit is contained in:
Andrew T. Veliath 1998-11-24 06:27:02 +00:00
parent 91d99f8903
commit b0fd18c7bf
8 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,9 @@
1998-11-24 Andrew T. Veliath <andrewtv@usa.net>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.
1998-11-23 Jeff Garzik <jgarzik@pobox.com> 1998-11-23 Jeff Garzik <jgarzik@pobox.com>
* gdk/Makefile.am, gtk/Makefile.am: * gdk/Makefile.am, gtk/Makefile.am:

View File

@ -1,3 +1,9 @@
1998-11-24 Andrew T. Veliath <andrewtv@usa.net>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.
1998-11-23 Jeff Garzik <jgarzik@pobox.com> 1998-11-23 Jeff Garzik <jgarzik@pobox.com>
* gdk/Makefile.am, gtk/Makefile.am: * gdk/Makefile.am, gtk/Makefile.am:

View File

@ -1,3 +1,9 @@
1998-11-24 Andrew T. Veliath <andrewtv@usa.net>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.
1998-11-23 Jeff Garzik <jgarzik@pobox.com> 1998-11-23 Jeff Garzik <jgarzik@pobox.com>
* gdk/Makefile.am, gtk/Makefile.am: * gdk/Makefile.am, gtk/Makefile.am:

View File

@ -1,3 +1,9 @@
1998-11-24 Andrew T. Veliath <andrewtv@usa.net>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.
1998-11-23 Jeff Garzik <jgarzik@pobox.com> 1998-11-23 Jeff Garzik <jgarzik@pobox.com>
* gdk/Makefile.am, gtk/Makefile.am: * gdk/Makefile.am, gtk/Makefile.am:

View File

@ -1,3 +1,9 @@
1998-11-24 Andrew T. Veliath <andrewtv@usa.net>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.
1998-11-23 Jeff Garzik <jgarzik@pobox.com> 1998-11-23 Jeff Garzik <jgarzik@pobox.com>
* gdk/Makefile.am, gtk/Makefile.am: * gdk/Makefile.am, gtk/Makefile.am:

View File

@ -1,3 +1,9 @@
1998-11-24 Andrew T. Veliath <andrewtv@usa.net>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.
1998-11-23 Jeff Garzik <jgarzik@pobox.com> 1998-11-23 Jeff Garzik <jgarzik@pobox.com>
* gdk/Makefile.am, gtk/Makefile.am: * gdk/Makefile.am, gtk/Makefile.am:

View File

@ -1,3 +1,9 @@
1998-11-24 Andrew T. Veliath <andrewtv@usa.net>
* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.
1998-11-23 Jeff Garzik <jgarzik@pobox.com> 1998-11-23 Jeff Garzik <jgarzik@pobox.com>
* gdk/Makefile.am, gtk/Makefile.am: * gdk/Makefile.am, gtk/Makefile.am:

View File

@ -781,6 +781,7 @@ gtk_toolbar_insert_element (GtkToolbar *toolbar,
child->widget = gtk_radio_button_new (widget child->widget = gtk_radio_button_new (widget
? gtk_radio_button_group (GTK_RADIO_BUTTON (widget)) ? gtk_radio_button_group (GTK_RADIO_BUTTON (widget))
: NULL); : NULL);
gtk_button_set_relief (GTK_BUTTON (child->widget), toolbar->relief);
gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (child->widget), FALSE); gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (child->widget), FALSE);
} }
@ -911,6 +912,7 @@ gtk_toolbar_set_button_relief (GtkToolbar *toolbar,
{ {
child = children->data; child = children->data;
if (child->type == GTK_TOOLBAR_CHILD_BUTTON || if (child->type == GTK_TOOLBAR_CHILD_BUTTON ||
child->type == GTK_TOOLBAR_CHILD_RADIOBUTTON ||
child->type == GTK_TOOLBAR_CHILD_TOGGLEBUTTON) child->type == GTK_TOOLBAR_CHILD_TOGGLEBUTTON)
gtk_button_set_relief (GTK_BUTTON (child->widget), relief); gtk_button_set_relief (GTK_BUTTON (child->widget), relief);
} }