[totem/wip/hadess/devel-app-name: 2/2] main: Add visual hint to development build
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/devel-app-name: 2/2] main: Add visual hint to development build
- Date: Thu, 3 Feb 2022 16:15:25 +0000 (UTC)
commit 2f817209fd35f269ced26e81b9609d0aedeec0a9
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 3 17:13:06 2022 +0100
main: Add visual hint to development build
See
https://gitlab.gnome.org/GNOME/Initiatives/-/wikis/DevOps-with-Flatpak#adding-a-visual-hint-for-development
src/totem-object.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index d1c82e6f2..8ba50a0b4 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -177,6 +177,14 @@ totem_object_app_activate (GApplication *app)
totem_object_exit (NULL);
totem->win = GTK_WIDGET (gtk_builder_get_object (totem->xml, "totem_main_window"));
+#if DEVELOPMENT_VERSION
+ {
+ GtkStyleContext *style_context;
+ style_context = gtk_widget_get_style_context (GTK_WIDGET (totem->win));
+ gtk_style_context_add_class (style_context, "devel");
+ }
+#endif
+
/* Menubar */
totem->stack = GTK_WIDGET (gtk_builder_get_object (totem->xml, "tmw_main_stack"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]