Use success CSS on debug window filter

Sun, 28 Aug 2022 23:59:20 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Sun, 28 Aug 2022 23:59:20 -0500
changeset 41617
4f6d32dd90e8
parent 41616
08ea1d13edaa
child 41618
7e9ad20d503a

Use success CSS on debug window filter

I missed that this CSS class existed, so ignore my previous justification for removing it.

Testing Done:
Entered some valid regex into the Debug Window regex.

Reviewed at https://reviews.imfreedom.org/r/1672/

pidgin/pidgindebug.c file | annotate | diff | comparison | revisions
--- a/pidgin/pidgindebug.c	Sun Aug 28 23:03:37 2022 -0500
+++ b/pidgin/pidgindebug.c	Sun Aug 28 23:59:20 2022 -0500
@@ -213,6 +213,7 @@
 regex_clear_color(GtkWidget *w) {
 	GtkStyleContext *context = gtk_widget_get_style_context(w);
 	gtk_style_context_remove_class(context, "error");
+	gtk_style_context_remove_class(context, "success");
 }
 
 static void
@@ -221,7 +222,9 @@
 
 	if (success) {
 		gtk_style_context_remove_class(context, "error");
+		gtk_style_context_add_class(context, "success");
 	} else {
+		gtk_style_context_remove_class(context, "success");
 		gtk_style_context_add_class(context, "error");
 	}
 }

mercurial