diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 74eae6901d..10ce2493de 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -469,7 +469,8 @@ _gtk_icon_helper_set_stock_id (GtkIconHelper *self, { _gtk_icon_helper_clear (self); - if (stock_id != NULL) + if (stock_id != NULL && + g_strcmp0 (stock_id, "") != 0) { self->priv->storage_type = GTK_IMAGE_STOCK; self->priv->stock_id = g_strdup (stock_id);