aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-21 13:19:35 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-21 13:19:35 +0200
commit2267a403389826ddc5a513be11bdc78f672b1379 (patch)
tree08d0c0a6a41f691036c21cb47d7e6a78874c28e9
parentb0dfd127eed035f39dc197ef395d6ee9318e2a16 (diff)
parent336b92c4bf051838c610d68df6348816d01eb118 (diff)
downloadayatana-ido-2267a403389826ddc5a513be11bdc78f672b1379.tar.gz
ayatana-ido-2267a403389826ddc5a513be11bdc78f672b1379.tar.bz2
ayatana-ido-2267a403389826ddc5a513be11bdc78f672b1379.zip
Merge branch 'tari01-pr/switch-initial-state'
Attributes GH PR #16: https://github.com/AyatanaIndicators/ayatana-ido/pull/16
-rw-r--r--src/idoswitchmenuitem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/idoswitchmenuitem.c b/src/idoswitchmenuitem.c
index 1f898e1..5a77b88 100644
--- a/src/idoswitchmenuitem.c
+++ b/src/idoswitchmenuitem.c
@@ -217,10 +217,9 @@ ido_source_menu_item_state_changed (IdoActionHelper *helper,
gpointer user_data)
{
IdoSwitchMenuItem *item = IDO_SWITCH_MENU_ITEM (user_data);
- IdoSwitchMenuItemPrivate *priv = ido_switch_menu_item_get_instance_private(item);
if (g_variant_is_of_type (state, G_VARIANT_TYPE_BOOLEAN))
- gtk_switch_set_active (GTK_SWITCH (priv->switch_w),
+ gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item),
g_variant_get_boolean (state));
}