[eog/wip/gitlab-ci-v2] EogWindow: Use devel style if using the development build profile
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/wip/gitlab-ci-v2] EogWindow: Use devel style if using the development build profile
- Date: Sun, 1 Dec 2019 17:00:07 +0000 (UTC)
commit 950d6a4d79a3c5f4bb9fb6218e035274e0074913
Author: Felix Riemann <friemann gnome org>
Date: Sun Dec 1 17:26:38 2019 +0100
EogWindow: Use devel style if using the development build profile
src/eog-window.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index d1db695b..3a23f777 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4590,6 +4590,13 @@ eog_window_init (EogWindow *window)
"current-image");
if (G_LIKELY (action != NULL))
g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
+
+ if (g_strcmp0 (PROFILE, "") != 0) {
+ GtkStyleContext *style_context;
+
+ style_context = gtk_widget_get_style_context (GTK_WIDGET (window));
+ gtk_style_context_add_class (style_context, "devel");
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]