pidgin/pidgindebug.c

changeset 40552
eb0f386cea6b
parent 40523
9bcf96663cb9
child 40576
9616360d5943
--- a/pidgin/pidgindebug.c	Mon Oct 12 20:57:09 2020 -0500
+++ b/pidgin/pidgindebug.c	Mon Oct 12 21:03:57 2020 -0500
@@ -585,19 +585,7 @@
 	GtkTextIter end;
 	GtkStyleContext *context;
 	GtkCssProvider *filter_css;
-	const gchar filter_style[] =
-		".bad-filter {"
-			"color: @error_fg_color;"
-			"text-shadow: 0 1px @error_text_shadow;"
-			"background-image: none;"
-			"background-color: @error_bg_color;"
-		"}"
-		".good-filter {"
-			"color: @question_fg_color;"
-			"text-shadow: 0 1px @question_text_shadow;"
-			"background-image: none;"
-			"background-color: @success_color;"
-		"}";
+	const gchar *res = "/im/pidgin/Pidgin/Debug/filter.css";
 
 	gtk_widget_init_template(GTK_WIDGET(win));
 
@@ -636,7 +624,8 @@
 
 		/* regex entry */
 		filter_css = gtk_css_provider_new();
-		gtk_css_provider_load_from_data(filter_css, filter_style, -1, NULL);
+		gtk_css_provider_load_from_resource(filter_css, res);
+
 		context = gtk_widget_get_style_context(win->expression);
 		gtk_style_context_add_provider(context,
 		                               GTK_STYLE_PROVIDER(filter_css),

mercurial