forked from AuroraMiddleware/gtk
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:
parent
7c357423a3
commit
14f26d2345
@ -732,14 +732,14 @@ static void
|
|||||||
widget_mapped (GtkWidget *widget,
|
widget_mapped (GtkWidget *widget,
|
||||||
GtkWidget *label)
|
GtkWidget *label)
|
||||||
{
|
{
|
||||||
gtk_widget_remove_css_class (widget, "dim-label");
|
gtk_widget_remove_css_class (label, "dim-label");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
widget_unmapped (GtkWidget *widget,
|
widget_unmapped (GtkWidget *widget,
|
||||||
GtkWidget *label)
|
GtkWidget *label)
|
||||||
{
|
{
|
||||||
gtk_widget_add_css_class (widget, "dim-label");
|
gtk_widget_add_css_class (label, "dim-label");
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user