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



commit 2f8d72f57541d1aaa47a470a0f820db0e512a7b1
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]