From 7114e63ceea8a4b56069e523abdeceb0b52e29b1 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Fri, 26 Oct 2012 16:32:14 +0200 Subject: [PATCH] iconhelper: treat the empty string as a NULL stock-id https://bugzilla.gnome.org/show_bug.cgi?id=687025 --- gtk/gtkiconhelper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 74eae6901..10ce2493d 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); -- 2.43.2