[gtk/matthiasc/for-master] placesview: Don't do the same thing twice
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] placesview: Don't do the same thing twice
- Date: Sat, 9 May 2020 23:43:35 +0000 (UTC)
commit 78343ef61ac76dcb41130ee38d7a0e2cdccf82cd
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 9 19:41:30 2020 -0400
placesview: Don't do the same thing twice
When the schema is supported, we want to remove
the error style class, not add it again. Pointed
out by RafaĆ Mikrut.
Fixes: #2724
gtk/gtkplacesview.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 290ac976ac..8522372a43 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1890,7 +1890,7 @@ out:
if (scheme && !supported)
gtk_widget_add_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
else
- gtk_widget_add_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
+ gtk_widget_remove_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
g_free (address);
g_free (scheme);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]