mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
iconhelper: small code simplification
https://bugzilla.gnome.org/show_bug.cgi?id=687025
This commit is contained in:
parent
1d410ec960
commit
2c3b9a89a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user