[gtksourceview] GutterRendererPixbuf: fix LAST alignment
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] GutterRendererPixbuf: fix LAST alignment
- Date: Sun, 22 Jan 2017 09:42:23 +0000 (UTC)
commit b22640343b0d3f260dab45d88e765ba66a3531d3
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jan 22 07:07:50 2017 +1000
GutterRendererPixbuf: fix LAST alignment
Prior to this, FIRST and LAST were equivalent, because the starting y
coordinate was based on the cell, not the line.
https://bugzilla.gnome.org/show_bug.cgi?id=777587
gtksourceview/gtksourcegutterrendererpixbuf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.c b/gtksourceview/gtksourcegutterrendererpixbuf.c
index 8df2f61..6648267 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.c
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.c
@@ -70,7 +70,7 @@ center_on (GtkSourceGutterRenderer *renderer,
gtk_text_view_get_iter_location (view, iter, &location);
*x = cell_area->x + (cell_area->width - width) * xalign;
- *y = cell_area->y + (location.height - height) * yalign;
+ *y = location.y + (location.height - height) * yalign;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]