From 336b92c4bf051838c610d68df6348816d01eb118 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 25 Sep 2020 01:19:44 +0200 Subject: idoswitchmenuitem.c: Fix setting the initial state for the switch --- src/idoswitchmenuitem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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)); } -- cgit v1.2.3