mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 13:10:07 +00:00
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)
This commit is contained in:
parent
86db923391
commit
af58a0dbd8
@ -1,5 +1,9 @@
|
||||
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)
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
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)
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user