Commit a73f222f authored by Guido Gunther's avatar Guido Gunther
Browse files

system-modal: Add style class

This allow to remove it from 3 ui files
parent 0abe2112
Pipeline #63621 passed with stages
in 42 minutes and 23 seconds
......@@ -116,6 +116,9 @@ phosh_system_modal_constructed (GObject *object)
"namespace", "phosh system-modal",
NULL);
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (self)),
"phosh-system-modal");
G_OBJECT_CLASS (phosh_system_modal_parent_class)->constructed (object);
}
......
......@@ -114,9 +114,6 @@
</object>
</child>
<style>
<class name="phosh-system-modal"/>
</style>
</template>
<!-- Grid to be shown for WEP/WPA passwords -->
......
......@@ -180,8 +180,5 @@
</style>
</object>
</child>
<style>
<class name="phosh-system-modal"/>
</style>
</template>
</interface>
......@@ -211,8 +211,5 @@
</style>
</object>
</child>
<style>
<class name="phosh-system-modal"/>
</style>
</template>
</interface>
......@@ -63,6 +63,9 @@ test_system_modal_new (Fixture *fixture, gconstpointer unused)
GtkWidget *modal = phosh_system_modal_new (get_monitor ());
g_assert_true (PHOSH_IS_SYSTEM_MODAL (modal));
g_assert_true (gtk_style_context_has_class (
gtk_widget_get_style_context (modal),
"phosh-system-modal"));
gtk_widget_destroy (modal);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment