[Xfce4-commits] <xfce4-panel:master> Another try to fix the border positions.

Nick Schermer noreply at xfce.org
Thu Apr 15 18:10:01 CEST 2010


Updating branch refs/heads/master
         to ae14d9374189bb73dc05e9623877de4cfb757744 (commit)
       from ee2e2534ac0f9948a4b4d6bbcc1f579c9904a688 (commit)

commit ae14d9374189bb73dc05e9623877de4cfb757744
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Apr 15 18:09:17 2010 +0200

    Another try to fix the border positions.

 panel/panel-base-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index de40abd..77eb5fe 100644
--- a/panel/panel-base-window.c
+++ b/panel/panel-base-window.c
@@ -372,7 +372,7 @@ panel_base_window_expose_event (GtkWidget      *widget,
                       (timeval.tv_sec % 4) * 2);
 
       /* draw rectangle */
-      cairo_rectangle (cr, 0.5, 0.5, width - 0.50, height - 0.50);
+      cairo_rectangle (cr, 0.5, 0.5, width - 1, height - 1);
       cairo_stroke (cr);
     }
   else
@@ -385,13 +385,13 @@ panel_base_window_expose_event (GtkWidget      *widget,
 
           if (PANEL_HAS_FLAG (priv->borders, PANEL_BORDER_BOTTOM))
             {
-              cairo_move_to (cr, 0.50, height - 0.50);
+              cairo_move_to (cr, 0.50, height - 1);
               cairo_rel_line_to (cr, width, 0.50);
             }
 
           if (PANEL_HAS_FLAG (priv->borders, PANEL_BORDER_RIGHT))
             {
-              cairo_move_to (cr, width - 0.50, 0.50);
+              cairo_move_to (cr, width - 1, 0.50);
               cairo_rel_line_to (cr, 0.50, height);
             }
 



More information about the Xfce4-commits mailing list