scalebutton: Fix comparison for empty icon list

This commit is contained in:
Timm Bäder 2017-10-08 20:15:39 +02:00
parent c1af127c28
commit f50832864e

View File

@ -976,7 +976,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
const gchar *name; const gchar *name;
guint num_icons; guint num_icons;
if (!priv->icon_list || ((char*)priv->icon_list)[0] == '\0') if (!priv->icon_list || priv->icon_list[0][0] == '\0')
{ {
gtk_image_set_from_icon_name (GTK_IMAGE (priv->image), gtk_image_set_from_icon_name (GTK_IMAGE (priv->image),
"image-missing", "image-missing",