aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-22 15:34:23 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-10-22 15:34:23 -0400
commit180ab330e6f1d5d1a80361f531754001d3cb584f (patch)
treef98d12b0d7dc8d7fa863f9dab6f62a303e0f754c /src
parentf5c03fb965ed852fdeab1d661193f1ef42373894 (diff)
downloadayatana-ido-180ab330e6f1d5d1a80361f531754001d3cb584f.tar.gz
ayatana-ido-180ab330e6f1d5d1a80361f531754001d3cb584f.tar.bz2
ayatana-ido-180ab330e6f1d5d1a80361f531754001d3cb584f.zip
Don't call gtk_image_clear() on a NULL widget
Diffstat (limited to 'src')
-rw-r--r--src/idoswitchmenuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idoswitchmenuitem.c b/src/idoswitchmenuitem.c
index 16122f3..cfbd542 100644
--- a/src/idoswitchmenuitem.c
+++ b/src/idoswitchmenuitem.c
@@ -202,7 +202,7 @@ ido_switch_menu_item_set_icon (IdoSwitchMenuItem *item,
gtk_image_set_from_gicon (GTK_IMAGE (priv->image), icon, GTK_ICON_SIZE_MENU);
}
- else
+ else if (priv->image)
{
gtk_image_clear (GTK_IMAGE (priv->image));
}