Handle TOGGLE/RADIOBUTTON as well. (#68201, Damon Chaplin.)

Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
	Handle TOGGLE/RADIOBUTTON as well. (#68201,
	Damon Chaplin.)

	* gtk/gtktoolbar.c (get_first_child): Fix stupid
	bug, just introduced.
This commit is contained in:
Owen Taylor 2002-01-08 23:05:46 +00:00 committed by Owen Taylor
parent cc605cf5f4
commit 5c71539c26
8 changed files with 67 additions and 2 deletions

View File

@ -1,3 +1,12 @@
Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)
* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.
Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate

View File

@ -1,3 +1,12 @@
Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)
* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.
Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate

View File

@ -1,3 +1,12 @@
Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)
* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.
Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate

View File

@ -1,3 +1,12 @@
Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)
* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.
Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate

View File

@ -1,3 +1,12 @@
Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)
* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.
Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate

View File

@ -1,3 +1,12 @@
Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)
* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.
Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate

View File

@ -1,3 +1,12 @@
Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
Handle TOGGLE/RADIOBUTTON as well. (#68201,
Damon Chaplin.)
* gtk/gtktoolbar.c (get_first_child): Fix stupid
bug, just introduced.
Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate

View File

@ -981,7 +981,9 @@ gtk_toolbar_set_icon_size (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 ||
child->type == GTK_TOOLBAR_CHILD_RADIOBUTTON) &&
GTK_IS_IMAGE (child->icon))
{
image = GTK_IMAGE (child->icon);
@ -1605,7 +1607,7 @@ gtk_real_toolbar_orientation_changed (GtkToolbar *toolbar,
static GtkWidget *
get_first_child (GtkContainer *container)
{
GList *children = gtk_container_get_children (children);
GList *children = gtk_container_get_children (container);
GtkWidget *result = children ? children->data : NULL;
g_list_free (children);