diff options
author | Lars Uebernickel <lars@uebernic.de> | 2015-03-10 12:38:25 +0100 |
---|---|---|
committer | Lars Uebernickel <lars@uebernic.de> | 2015-03-10 12:38:25 +0100 |
commit | 3bef6a1972f8c09b954b9733d79dde42dd86650b (patch) | |
tree | 6ba6b5130c71db0ef48090711f18535704a4ae53 /src | |
parent | 07a302702226efe27e7e69fbe9643ed31f839f66 (diff) | |
download | ayatana-ido-3bef6a1972f8c09b954b9733d79dde42dd86650b.tar.gz ayatana-ido-3bef6a1972f8c09b954b9733d79dde42dd86650b.tar.bz2 ayatana-ido-3bef6a1972f8c09b954b9733d79dde42dd86650b.zip |
idoscalemenuitem: set focus flag on scale
So that it gets themed correctly when the menu item is selected.
Diffstat (limited to 'src')
-rw-r--r-- | src/idoscalemenuitem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c index 3b34ea4..de9884f 100644 --- a/src/idoscalemenuitem.c +++ b/src/idoscalemenuitem.c @@ -472,6 +472,7 @@ ido_scale_menu_item_select (GtkMenuItem *item) IdoScaleMenuItemPrivate *priv = GET_PRIVATE (item); priv->has_focus = TRUE; + gtk_widget_set_state_flags (priv->scale, GTK_STATE_FLAG_FOCUSED, FALSE); GTK_MENU_ITEM_CLASS (ido_scale_menu_item_parent_class)->select (item); } @@ -482,6 +483,7 @@ ido_scale_menu_item_deselect (GtkMenuItem *item) IdoScaleMenuItemPrivate *priv = GET_PRIVATE (item); priv->has_focus = FALSE; + gtk_widget_unset_state_flags (priv->scale, GTK_STATE_FLAG_FOCUSED); GTK_MENU_ITEM_CLASS (ido_scale_menu_item_parent_class)->deselect (item); } |