[gtk+/gtk-style-context: 203/260] GtkStyle: Allow GTK_ARROW_NONE.



commit a95606af1bab97f0ce838f25547a48b1e1481132
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Aug 23 18:00:31 2010 +0200

    GtkStyle: Allow GTK_ARROW_NONE.

 gtk/gtkstyle.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 82d05dd..c405670 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -2220,6 +2220,9 @@ gtk_default_draw_arrow (GtkStyle      *style,
   GtkStateFlags flags = 0;
   gdouble angle, size;
 
+  if (arrow_type == GTK_ARROW_NONE)
+    return;
+
   if (widget)
     context = gtk_widget_get_style_context (widget);
   else



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