]> Pileus Git - ~andy/gtk/commitdiff
GtkThemingEngine: Render rounded frames with light/shadow connections at 45°
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Nov 2010 00:17:44 +0000 (01:17 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:39 +0000 (15:39 +0100)
gtk/gtkthemingengine.c

index 2fac0baa35cb42012f643b693fa5c4e9c6e424ac..a2301c38e439ec7e80abaa8ef75dadceceb14ed1 100644 (file)
@@ -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)
         {