[gnome-builder/wip/gtk4-port: 144/343] libide/sourceview: fix API call to get line yrange
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 144/343] libide/sourceview: fix API call to get line yrange
- Date: Mon, 4 Apr 2022 20:02:13 +0000 (UTC)
commit 1e74a8cb9f8ee6a13db307042a4c6ba5576bf262
Author: Christian Hergert <chergert redhat com>
Date: Tue Mar 29 03:35:27 2022 -0700
libide/sourceview: fix API call to get line yrange
src/libide/sourceview/ide-line-change-gutter-renderer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/sourceview/ide-line-change-gutter-renderer.c
b/src/libide/sourceview/ide-line-change-gutter-renderer.c
index df25f55bc..fc3c1fae6 100644
--- a/src/libide/sourceview/ide-line-change-gutter-renderer.c
+++ b/src/libide/sourceview/ide-line-change-gutter-renderer.c
@@ -243,14 +243,14 @@ ide_line_change_gutter_renderer_snapshot_line (GtkSourceGutterRenderer *renderer
gboolean is_add = gtk_source_gutter_lines_has_qclass (lines, line, added_quark);
gboolean is_change = gtk_source_gutter_lines_has_qclass (lines, line, changed_quark);
gboolean is_delete = gtk_source_gutter_lines_has_qclass (lines, line, deleted_quark);
- guint line_y;
- guint line_height;
+ int line_y;
+ int line_height;
int width;
if (!is_add && !is_change && !is_delete)
return;
- gtk_source_gutter_lines_get_yrange (lines, line, &line_y, &line_height);
+ gtk_source_gutter_lines_get_line_yrange (lines, line, GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL,
&line_y, &line_height);
width = gtk_widget_get_width (GTK_WIDGET (renderer));
if (is_add || is_change)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]