inspector: Don't set style classes on app widgets

Due to a mixup, the inspector was setting .dim-label on
widgets that get unmapped, instead of the labels representing
them in the object tree.
This commit is contained in:
Matthias Clasen 2020-06-15 11:21:20 -04:00
parent 7c357423a3
commit 14f26d2345

View File

@ -732,14 +732,14 @@ static void
widget_mapped (GtkWidget *widget,
GtkWidget *label)
{
gtk_widget_remove_css_class (widget, "dim-label");
gtk_widget_remove_css_class (label, "dim-label");
}
static void
widget_unmapped (GtkWidget *widget,
GtkWidget *label)
{
gtk_widget_add_css_class (widget, "dim-label");
gtk_widget_add_css_class (label, "dim-label");
}
static gboolean