[gitg] Align ref label on the pixel



commit ea93597b9cb070bb90b6f2be3ca0c589fc191d57
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue Oct 16 20:26:23 2012 +0200

    Align ref label on the pixel

 libgitg-gtk/gitg-gtk-label-renderer.vala |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-label-renderer.vala b/libgitg-gtk/gitg-gtk-label-renderer.vala
index 0880a6f..9e15f95 100644
--- a/libgitg-gtk/gitg-gtk-label-renderer.vala
+++ b/libgitg-gtk/gitg-gtk-label-renderer.vala
@@ -115,20 +115,21 @@ namespace GitgGtk
 			context.save();
 
 			var style_class = class_from_ref(r.parsed_name.rtype);
+
 			if (style_class != null)
 			{
 				context.add_class(style_class);
 			}
 
 			context.render_background(cr,
-			                          x + 0.5,
-			                          y + margin + 0.5,
+			                          x,
+			                          y + margin,
 			                          w + padding * 2,
 			                          height - margin * 2);
 
 			context.render_frame(cr,
-			                     x + 0.5,
-			                     y + margin + 0.5,
+			                     x,
+			                     y + margin,
 			                     w + padding * 2,
 			                     height - margin * 2);
 



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