From 2c3b9a89a97bdf1c5fc5ac010b7e394e33687a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Wilmet?= Date: Thu, 17 Jan 2013 14:43:35 +0100 Subject: [PATCH] iconhelper: small code simplification https://bugzilla.gnome.org/show_bug.cgi?id=687025 --- gtk/gtkiconhelper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 10ce2493de..37ba5811c8 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -413,7 +413,7 @@ _gtk_icon_helper_set_icon_name (GtkIconHelper *self, _gtk_icon_helper_clear (self); if (icon_name != NULL && - g_strcmp0 (icon_name, "") != 0) + icon_name[0] != '\0') { self->priv->storage_type = GTK_IMAGE_ICON_NAME; self->priv->icon_name = g_strdup (icon_name); @@ -470,7 +470,7 @@ _gtk_icon_helper_set_stock_id (GtkIconHelper *self, _gtk_icon_helper_clear (self); if (stock_id != NULL && - g_strcmp0 (stock_id, "") != 0) + stock_id[0] != '\0') { self->priv->storage_type = GTK_IMAGE_STOCK; self->priv->stock_id = g_strdup (stock_id);