[gtksourceview/wip/chergert/gsv-gtk4: 131/192] style: fix css selector for carets




commit cb94107b8a5ef703338e8ca62b347f307f25d08b
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 94a14c9ea..da1a826b2 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]