Sun, 28 Aug 2022 23:59:20 -0500
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"); } }