[gtk+] GtkStyle: Allow GTK_ARROW_NONE.



commit 846f67d805316c8af0b8ce16a268b8a8868c3467
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]