aboutsummaryrefslogtreecommitdiff
path: root/src/idoscalemenuitem.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars@uebernic.de>2015-03-10 12:38:25 +0100
committerLars Uebernickel <lars@uebernic.de>2015-03-10 12:38:25 +0100
commit3bef6a1972f8c09b954b9733d79dde42dd86650b (patch)
tree6ba6b5130c71db0ef48090711f18535704a4ae53 /src/idoscalemenuitem.c
parent07a302702226efe27e7e69fbe9643ed31f839f66 (diff)
downloadayatana-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/idoscalemenuitem.c')
-rw-r--r--src/idoscalemenuitem.c2
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);
}