[gtk+/wip/css-icons: 6/6] spinner: Don't arbitrarily limit sizes anymore



commit dfe83cc04932159ba8da165f7fa7cfb36eea71e9
Author: Benjamin Otte <otte redhat com>
Date:   Mon May 5 15:32:34 2014 +0200

    spinner: Don't arbitrarily limit sizes anymore
    
    This essentially reverts b33877e1737a7799b29f5b3a3d291e55e95e8436
    
    Now that we can theme the spinner as a real icon using -gtk-icontheme()
    this limit is no longer necessary.

 gtk/gtkspinner.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index 86c4e1a..fa6933e 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -200,12 +200,6 @@ gtk_spinner_draw (GtkWidget *widget,
   height = gtk_widget_get_allocated_height (widget);
   size = MIN (width, height);
 
-  /* at most allow a double size spinner */
-  if (size >= 3 * SPINNER_SIZE)
-    size = SPINNER_SIZE * 2;
-  else
-    size = SPINNER_SIZE;
-
   gtk_render_activity (context, cr,
                        (width - size) / 2,
                        (height - size) / 2,


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