[file-roller/wip/gtk4: 48/54] window: use the devel style only for development versions




commit 4ae2489a22ae24d884958792bf69b045268578a4
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Oct 2 11:05:15 2022 +0200

    window: use the devel style only for development versions

 meson.build     | 1 +
 src/fr-window.c | 2 ++
 2 files changed, 3 insertions(+)
---
diff --git a/meson.build b/meson.build
index 3bc7fbd5..f6aa1c5c 100644
--- a/meson.build
+++ b/meson.build
@@ -76,6 +76,7 @@ config_data.set_quoted('GETTEXT_PACKAGE', gettext_package)
 config_data.set_quoted('LOCALEDIR', join_paths(prefix, get_option('localedir')))
 config_data.set_quoted('PACKAGE_NAME', meson.project_name())
 config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
+config_data.set('DEVELOPMENT_VERSION', meson.project_version().contains('.alpha') or 
meson.project_version().contains('.beta'))
 config_data.set_quoted('FILE_ROLLER_RESOURCE_UI_PATH', '/org/gnome/FileRoller/ui/')
 if get_option('run-in-place')
   config_data.set_quoted('PRIVDATADIR', join_paths(meson.project_source_root(), 'data'))
diff --git a/src/fr-window.c b/src/fr-window.c
index 4ef949e9..95abd77d 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4829,7 +4829,9 @@ fr_window_construct (FrWindow *window)
        GtkTreeSelection   *selection;
        GtkSizeGroup       *header_bar_size_group;
 
+#ifdef DEVELOPMENT_VERSION
        gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (window)), "devel");
+#endif
 
        /* Create the settings objects */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]