[gtk+/gtk-style-context: 473/490] GtkThemingEngine: Render rounded frames with light/shadow connections at 45°



commit c860e77e36305ff5426b61e31ac1d092b49d8d76
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Nov 24 01:17:44 2010 +0100

    GtkThemingEngine: Render rounded frames with light/shadow connections at 45°

 gtk/gtkthemingengine.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 2fac0ba..a2301c3 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1615,7 +1615,11 @@ render_frame_internal (GtkThemingEngine *engine,
     case GTK_BORDER_STYLE_INSET:
     case GTK_BORDER_STYLE_OUTSET:
       cairo_set_line_width (cr, border_width);
-      cairo_set_line_cap (cr, CAIRO_LINE_CAP_SQUARE);
+
+      if (radius == 0)
+        cairo_set_line_cap (cr, CAIRO_LINE_CAP_SQUARE);
+      else
+        cairo_set_line_cap (cr, CAIRO_LINE_CAP_BUTT);
 
       if (border_width > 1)
         {



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