[gitg] Better alignment of labels in history



commit 3d3c1d47e125e6b4cc48527a1cfce0caf1030343
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sat Jul 6 10:24:22 2013 +0200

    Better alignment of labels in history

 libgitg/gitg-label-renderer.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgitg/gitg-label-renderer.vala b/libgitg/gitg-label-renderer.vala
index 6dcfc58..b37bb26 100644
--- a/libgitg/gitg-label-renderer.vala
+++ b/libgitg/gitg-label-renderer.vala
@@ -21,7 +21,7 @@ namespace Gitg
 {
        public class LabelRenderer
        {
-               private static const int margin = 3;
+               private static const int margin = 2;
                private static const int padding = 4;
 
                private static string label_text(Ref r)
@@ -97,8 +97,8 @@ namespace Gitg
                                                Cairo.Context cr,
                                                Pango.Layout  layout,
                                                Ref           r,
-                                               int           x,
-                                               int           y,
+                                               double        x,
+                                               double        y,
                                                int           height,
                                                bool          use_state)
                {
@@ -135,7 +135,7 @@ namespace Gitg
 
                        context.render_layout(cr,
                                              x + padding,
-                                             y + (height - h) / 2.0,
+                                             y + (height - h) / 2.0 - 1,
                                              layout);
 
                        context.restore();



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