[gtksourceview] GutterRenderer: don't highlight current line if setting disabled
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] GutterRenderer: don't highlight current line if setting disabled
- Date: Wed, 4 Mar 2015 16:25:28 +0000 (UTC)
commit 6c76bc63dc40e4df6c302f1ca2e8f88d46f5cffc
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Mar 4 15:54:35 2015 +0100
GutterRenderer: don't highlight current line if setting disabled
gtksourceview/gtksourcegutterrenderer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutterrenderer.c b/gtksourceview/gtksourcegutterrenderer.c
index f83936c..436f2cb 100644
--- a/gtksourceview/gtksourcegutterrenderer.c
+++ b/gtksourceview/gtksourcegutterrenderer.c
@@ -484,7 +484,8 @@ renderer_draw_impl (GtkSourceGutterRenderer *renderer,
cairo_restore (cr);
}
else if ((state & GTK_SOURCE_GUTTER_RENDERER_STATE_CURSOR) != 0 &&
- GTK_SOURCE_IS_VIEW (renderer->priv->view))
+ GTK_SOURCE_IS_VIEW (renderer->priv->view) &&
+ gtk_source_view_get_highlight_current_line (GTK_SOURCE_VIEW (renderer->priv->view)))
{
GtkStyleContext *context;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]