diff options
author | Robert Tari <robert@tari.in> | 2020-09-25 00:09:24 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-09-27 15:44:54 +0200 |
commit | d318463089e889f2e0abfd41812648449dd7a268 (patch) | |
tree | 37c6226de4f405980c4420accb347077713aa689 | |
parent | 6a4bf3d40364bcac5b8a5b4a5bd701544f5b2863 (diff) | |
download | ayatana-ido-d318463089e889f2e0abfd41812648449dd7a268.tar.gz ayatana-ido-d318463089e889f2e0abfd41812648449dd7a268.tar.bz2 ayatana-ido-d318463089e889f2e0abfd41812648449dd7a268.zip |
Add sanity-check in ido_switch_menu_item_activate
-rw-r--r-- | src/idoswitchmenuitem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idoswitchmenuitem.c b/src/idoswitchmenuitem.c index c33e6ee..1f898e1 100644 --- a/src/idoswitchmenuitem.c +++ b/src/idoswitchmenuitem.c @@ -226,6 +226,8 @@ ido_source_menu_item_state_changed (IdoActionHelper *helper, static void ido_switch_menu_item_activate(IdoSwitchMenuItem *self, gpointer user_data) { + g_return_if_fail(IDO_IS_SWITCH_MENU_ITEM(self)); + IdoActionHelper *helper = user_data; IdoSwitchMenuItemPrivate *priv = ido_switch_menu_item_get_instance_private(self); gboolean active = gtk_switch_get_active(GTK_SWITCH(priv->switch_w)); |