From 180ab330e6f1d5d1a80361f531754001d3cb584f Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 22 Oct 2013 15:34:23 -0400 Subject: Don't call gtk_image_clear() on a NULL widget --- src/idoswitchmenuitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- cgit v1.2.3