Commit af58a0db authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix prelighting. (#157392, Vincent Noel, patch by Christian Persch)

	* gtk/gtkmenutoolbutton.c (button_state_changed_cb):
	Fix prelighting.  (#157392, Vincent Noel, patch by
	Christian Persch)
parent 86db9233
2005-03-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenutoolbutton.c (button_state_changed_cb):
Fix prelighting. (#157392, Vincent Noel, patch by
Christian Persch)
* gtk/gtkicontheme.c (theme_lookup_icon): Make
icon data caching work again. (#168851, Alexander Larsson)
......
2005-03-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenutoolbutton.c (button_state_changed_cb):
Fix prelighting. (#157392, Vincent Noel, patch by
Christian Persch)
* gtk/gtkicontheme.c (theme_lookup_icon): Make
icon data caching work again. (#168851, Alexander Larsson)
......
2005-03-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenutoolbutton.c (button_state_changed_cb):
Fix prelighting. (#157392, Vincent Noel, patch by
Christian Persch)
* gtk/gtkicontheme.c (theme_lookup_icon): Make
icon data caching work again. (#168851, Alexander Larsson)
......
......@@ -277,11 +277,17 @@ button_state_changed_cb (GtkWidget *widget,
{
gtk_widget_set_state (other, state);
}
else if (state == GTK_STATE_ACTIVE)
else if (state == GTK_STATE_ACTIVE ||
(state == GTK_STATE_INSENSITIVE && other == priv->arrow_button))
{
gtk_widget_set_state (other, GTK_STATE_NORMAL);
}
if (state == GTK_STATE_INSENSITIVE && other == priv->arrow_button && button->priv->menu)
{
gtk_menu_shell_deactivate (GTK_MENU_SHELL (button->priv->menu));
}
g_signal_handlers_unblock_by_func (other,
G_CALLBACK (button_state_changed_cb),
button);
......
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