[gtk+] iconhelper: small code simplification
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconhelper: small code simplification
- Date: Thu, 17 Jan 2013 15:21:32 +0000 (UTC)
commit 2c3b9a89a97bdf1c5fc5ac010b7e394e33687a00
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Thu Jan 17 14:43:35 2013 +0100
iconhelper: small code simplification
https://bugzilla.gnome.org/show_bug.cgi?id=687025
gtk/gtkiconhelper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 10ce249..37ba581 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]