[gtksourceview/wip/chergert/gsv-gtk4: 144/197] style: fix css selector for carets
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 144/197] style: fix css selector for carets
- Date: Tue, 2 Jun 2020 18:49:08 +0000 (UTC)
commit 1a91f0cbb3668d01e842a81e1a91b4d24408ffa0
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 30 07:18:04 2020 -0800
style: fix css selector for carets
You no longer need "textview text" for caret styling, as it can be done
with just "textview" now. Fixes the caret color for style schemes which
were not getting the proper coloring.
gtksourceview/gtksourcestylescheme.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index 94a14c9e..da1a826b 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -713,7 +713,7 @@ get_cursors_css_style (GtkSourceStyleScheme *scheme,
return NULL;
}
- css = g_string_new ("textview text {\n");
+ css = g_string_new ("textview {\n");
if (primary_color_set)
{
@@ -830,7 +830,7 @@ _gtk_source_style_scheme_apply (GtkSourceStyleScheme *scheme,
if (scheme->css_provider_cursors == NULL)
{
scheme->css_provider_cursors = get_css_provider_cursors (scheme,
- GTK_WIDGET (view));
+ GTK_WIDGET (view));
}
if (scheme->css_provider_cursors != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]