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




commit fca5bfd4a60c32f177ae81c8d82fc113b425102f
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]