aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-09-25 00:09:24 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-21 13:14:50 +0200
commit13e3334d19bf6b43b7bb50d09e160228ba4c61e4 (patch)
tree5ba4e11a1e38d15af678fac66b7926cd584da185 /src
parenteaa7ce5d2b3d567901c102a3d706a641928e3a59 (diff)
downloadayatana-ido-13e3334d19bf6b43b7bb50d09e160228ba4c61e4.tar.gz
ayatana-ido-13e3334d19bf6b43b7bb50d09e160228ba4c61e4.tar.bz2
ayatana-ido-13e3334d19bf6b43b7bb50d09e160228ba4c61e4.zip
Add sanity-check in ido_switch_menu_item_activate
Diffstat (limited to 'src')
-rw-r--r--src/idoswitchmenuitem.c2
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));