[d-spy] build: set development highlight when specified
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-spy] build: set development highlight when specified
- Date: Thu, 16 Sep 2021 21:59:30 +0000 (UTC)
commit 9bd5edf0d0ec05583c33d0241fff9b2aeeb3ca56
Author: Christian Hergert <chergert redhat com>
Date: Thu Sep 16 14:59:25 2021 -0700
build: set development highlight when specified
meson.build | 1 +
src/dspy-window.c | 4 ++++
2 files changed, 5 insertions(+)
---
diff --git a/meson.build b/meson.build
index c58238d..c3825ab 100644
--- a/meson.build
+++ b/meson.build
@@ -19,6 +19,7 @@ config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
config_h.set_quoted('GETTEXT_PACKAGE', 'dspy')
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
config_h.set_quoted('APP_ID', app_id)
+config_h.set10('DEVELOPMENT_BUILD', get_option('development'))
glib_req_version = '2.68'
gtk_req_version = '4.2'
diff --git a/src/dspy-window.c b/src/dspy-window.c
index 76c8419..8bad7aa 100644
--- a/src/dspy-window.c
+++ b/src/dspy-window.c
@@ -45,6 +45,10 @@ static void
dspy_window_init (DspyWindow *self)
{
gtk_widget_init_template (GTK_WIDGET (self));
+
+#if DEVELOPMENT_BUILD
+ gtk_widget_add_css_class (GTK_WIDGET (self), "devel");
+#endif
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]