summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelper.c
diff options
context:
space:
mode:
authorSébastien Wilmet <swilmet@gnome.org>2013-01-17 14:43:35 +0100
committerSébastien Wilmet <swilmet@gnome.org>2013-01-17 16:21:18 +0100
commit2c3b9a89a97bdf1c5fc5ac010b7e394e33687a00 (patch)
tree874504ec512d3a33ef6eef5684cb7da3e38bec69 /gtk/gtkiconhelper.c
parent1d410ec960b607b415b327cce3a719e193de4283 (diff)
downloadgtk+-2c3b9a89a97bdf1c5fc5ac010b7e394e33687a00.tar.gz
iconhelper: small code simplification
https://bugzilla.gnome.org/show_bug.cgi?id=687025
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r--gtk/gtkiconhelper.c4
1 files 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);