diff options
author | Robert Tari <robert@tari.in> | 2020-09-25 01:19:44 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-10-21 13:18:28 +0200 |
commit | 336b92c4bf051838c610d68df6348816d01eb118 (patch) | |
tree | 08d0c0a6a41f691036c21cb47d7e6a78874c28e9 | |
parent | b0dfd127eed035f39dc197ef395d6ee9318e2a16 (diff) | |
download | ayatana-ido-336b92c4bf051838c610d68df6348816d01eb118.tar.gz ayatana-ido-336b92c4bf051838c610d68df6348816d01eb118.tar.bz2 ayatana-ido-336b92c4bf051838c610d68df6348816d01eb118.zip |
idoswitchmenuitem.c: Fix setting the initial state for the switch
-rw-r--r-- | src/idoswitchmenuitem.c | 3 |
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)); } |