[gtksourceview] scheme: fix get_background_color() helper



commit 47c4903ae89a51a7f3bb679aef7ba01edbd948c0
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 21 21:45:17 2022 -0800

    scheme: fix get_background_color() helper
    
    This should be text rather than "background".

 gtksourceview/gtksourcestylescheme.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index a0fbe065..2c842ec7 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -63,7 +63,6 @@
 #define STYLE_RIGHT_MARGIN             "right-margin"
 #define STYLE_DRAW_SPACES              "draw-spaces"
 #define STYLE_SNIPPET_FOCUS            "snippet-focus"
-#define STYLE_BACKGROUND               "background"
 #define STYLE_BACKGROUND_PATTERN       "background-pattern"
 
 #define STYLE_SCHEME_VERSION           "1.0"
@@ -728,7 +727,7 @@ _gtk_source_style_scheme_get_background_color (GtkSourceStyleScheme *scheme,
        g_return_val_if_fail (GTK_SOURCE_IS_STYLE_SCHEME (scheme), FALSE);
        g_return_val_if_fail (color != NULL, FALSE);
 
-       style = gtk_source_style_scheme_get_style (scheme, STYLE_BACKGROUND);
+       style = gtk_source_style_scheme_get_style (scheme, STYLE_TEXT);
 
        return get_color (style, FALSE, color);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]