[gtk+] scalebutton: Fix comparison for empty icon list



commit f50832864ecb144fc3c6804b0b728533bf413cd0
Author: Timm Bäder <mail baedert org>
Date:   Sun Oct 8 20:15:39 2017 +0200

    scalebutton: Fix comparison for empty icon list

 gtk/gtkscalebutton.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 7e78735..8ffd378 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -976,7 +976,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
   const gchar *name;
   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),
                                     "image-missing",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]