[Xfce4-commits] <gtk-xfce-engine:peter/refresh> More consistent notebook in Gtk2.

Peter de Ridder noreply at xfce.org
Sun Dec 15 22:12:03 CET 2013


Updating branch refs/heads/peter/refresh
         to 5f5e546e368772d64c9855a038026eb81156af98 (commit)
       from 8318ef51418fcf6d5707e6951dc1af7beab5e231 (commit)

commit 5f5e546e368772d64c9855a038026eb81156af98
Author: Peter de Ridder <peter at xfce.org>
Date:   Sun Dec 15 19:46:17 2013 +0100

    More consistent notebook in Gtk2.

 gtk-2.0/xfce_theme_draw.c |   30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/gtk-2.0/xfce_theme_draw.c b/gtk-2.0/xfce_theme_draw.c
index 3b1ea9a..576cb36 100644
--- a/gtk-2.0/xfce_theme_draw.c
+++ b/gtk-2.0/xfce_theme_draw.c
@@ -1259,13 +1259,13 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     gdk_cairo_set_source_color(cr, c3);
                     cairo_move_to(cr, x + 2.5, y + height - 1.5);
                     cairo_line_to(cr, x + width - 1.5, y + height - 1.5);
-                    cairo_line_to(cr, x + width - 1.5, y + 0.5);
+                    cairo_line_to(cr, x + width - 0.5, y + 0.5);
                     cairo_stroke(cr);
 
                     gdk_cairo_set_source_color(cr, c4);
                     cairo_move_to(cr, x + 1.5, y + height - 0.5);
                     cairo_line_to(cr, x + width - 0.5, y + height - 0.5);
-                    cairo_line_to(cr, x + width - 0.5, y + 0.5);
+                    cairo_line_to(cr, x + width - 0.5, y + 1.5);
                     cairo_stroke(cr);
 
                     cairo_set_line_cap(cr, CAIRO_LINE_CAP_BUTT);
@@ -1290,7 +1290,7 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     {
                         gdk_cairo_set_source_color(cr, c1);
                         cairo_move_to(cr, x + gap_x + gap_width, y + 0.5);
-                        cairo_line_to(cr, x + width - 1, y + 0.5);
+                        cairo_line_to(cr, x + width, y + 0.5);
                         cairo_stroke(cr);
 
                         gdk_cairo_set_source_color(cr, c2);
@@ -1316,12 +1316,12 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     cairo_stroke(cr);
 
                     gdk_cairo_set_source_color(cr, c3);
-                    cairo_move_to(cr, x + width - 1.5, y + 1.5);
+                    cairo_move_to(cr, x + width - 1.5, y + 2.5);
                     cairo_line_to(cr, x + width - 1.5, y + height - 0.5);
                     cairo_stroke(cr);
 
                     gdk_cairo_set_source_color(cr, c4);
-                    cairo_move_to(cr, x + width - 0.5, y + 0.5);
+                    cairo_move_to(cr, x + width - 0.5, y + 1.5);
                     cairo_line_to(cr, x + width - 0.5, y + height - 0.5);
                     cairo_stroke(cr);
 
@@ -1329,12 +1329,12 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     if (gap_x > 0)
                     {
                         gdk_cairo_set_source_color(cr, c4);
-                        cairo_move_to(cr, x, y + height - 0.5);
+                        cairo_move_to(cr, x + 1, y + height - 0.5);
                         cairo_line_to(cr, x + gap_x, y + height - 0.5);
                         cairo_stroke(cr);
 
                         gdk_cairo_set_source_color(cr, c3);
-                        cairo_move_to(cr, x + 1, y + height - 1.5);
+                        cairo_move_to(cr, x + 2, y + height - 1.5);
                         cairo_line_to(cr, x + gap_x, y + height - 1.5);
 
                         cairo_move_to(cr, x + gap_x, y + height - 0.5);
@@ -1371,25 +1371,25 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     gdk_cairo_set_source_color(cr, c3);
                     cairo_move_to(cr, x + 0.5, y + height - 1.5);
                     cairo_line_to(cr, x + width - 1.5, y + height - 1.5);
-                    cairo_line_to(cr, x + width - 1.5, y + 1.5);
+                    cairo_line_to(cr, x + width - 1.5, y + 2.5);
                     cairo_stroke(cr);
 
                     gdk_cairo_set_source_color(cr, c4);
                     cairo_move_to(cr, x + 1.5, y + height - 0.5);
                     cairo_line_to(cr, x + width - 0.5, y + height - 0.5);
-                    cairo_line_to(cr, x + width - 0.5, y + 0.5);
+                    cairo_line_to(cr, x + width - 0.5, y + 1.5);
                     cairo_stroke(cr);
 
                     cairo_set_line_cap(cr, CAIRO_LINE_CAP_BUTT);
                     if (gap_x > 0)
                     {
                         gdk_cairo_set_source_color(cr, c1);
-                        cairo_move_to(cr, x + 0.5, y);
+                        cairo_move_to(cr, x + 0.5, y + 1);
                         cairo_line_to(cr, x + 0.5, y + gap_x);
                         cairo_stroke(cr);
 
                         gdk_cairo_set_source_color(cr, c2);
-                        cairo_move_to(cr, x + 1.5, y + 1);
+                        cairo_move_to(cr, x + 1.5, y + 2);
                         cairo_line_to(cr, x + 1.5, y + gap_x);
 
                         cairo_move_to(cr, x + 0.5, y + gap_x);
@@ -1400,7 +1400,7 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     {
                         gdk_cairo_set_source_color(cr, c1);
                         cairo_move_to(cr, x + 0.5, y + gap_x + gap_width);
-                        cairo_line_to(cr, x + 0.5, y + height - 1);
+                        cairo_line_to(cr, x + 0.5, y + height);
                         cairo_stroke(cr);
 
                         gdk_cairo_set_source_color(cr, c2);
@@ -1426,7 +1426,7 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     cairo_stroke(cr);
 
                     gdk_cairo_set_source_color(cr, c3);
-                    cairo_move_to(cr, x + 1.5, y + height - 1.5);
+                    cairo_move_to(cr, x + 2.5, y + height - 1.5);
                     cairo_line_to(cr, x + width - 0.5, y + height - 1.5);
                     cairo_stroke(cr);
 
@@ -1439,12 +1439,12 @@ static void draw_box_gap(GtkStyle * style, GdkWindow * window, GtkStateType stat
                     if (gap_x > 0)
                     {
                         gdk_cairo_set_source_color(cr, c4);
-                        cairo_move_to(cr, x + width - 0.5, y);
+                        cairo_move_to(cr, x + width - 0.5, y + 1);
                         cairo_line_to(cr, x + width - 0.5, y + gap_x);
                         cairo_stroke(cr);
 
                         gdk_cairo_set_source_color(cr, c3);
-                        cairo_move_to(cr, x + width - 1.5, y + 1);
+                        cairo_move_to(cr, x + width - 1.5, y + 2);
                         cairo_line_to(cr, x + width - 1.5, y + gap_x);
 
                         cairo_move_to(cr, x + width - 0.5, y + gap_x);


More information about the Xfce4-commits mailing list