[gtk+/gtk-3-14] More of the same



commit 48f7faf0dad19be36f1e01ac4bfba614c2326573
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 22 15:14:42 2015 -0400

    More of the same
    
    A similar case in GtkIconHelper. Here we were confusing ourselves,
    and compared a icon_size against -1, although the variable is
    never set to -1.

 gtk/gtkiconhelper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 2fc97d1..0f7e6ed 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -852,7 +852,7 @@ _gtk_icon_helper_get_size (GtkIconHelper *self,
           width = gdk_pixbuf_animation_get_width (self->priv->animation);
           height = gdk_pixbuf_animation_get_height (self->priv->animation);
         }
-      else if (self->priv->icon_size != -1)
+      else if (self->priv->icon_size != GTK_ICON_SIZE_INVALID)
         {
           ensure_icon_size (self, context, &width, &height);
         }


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