[gtksourceview/wip/chergert/gsv-gtk4] 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] style: fix css selector for carets
- Date: Thu, 30 Jan 2020 15:18:55 +0000 (UTC)
commit 03eda7f06658196a35634070c5086400346aefac
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]