[geary/mjog/data-location-migration: 8/9] Application.Client: Introduce and use consts for build profiles
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/data-location-migration: 8/9] Application.Client: Introduce and use consts for build profiles
- Date: Tue, 13 Oct 2020 14:02:46 +0000 (UTC)
commit 3f30b5c960b6e9257b0a1e5a056cf55e0ec1e4f9
Author: Michael Gratton <mike vee net>
Date: Wed Oct 14 00:53:35 2020 +1100
Application.Client: Introduce and use consts for build profiles
src/client/application/application-client.vala | 5 +++++
src/client/application/application-main-window.vala | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/client/application/application-client.vala b/src/client/application/application-client.vala
index 7e8d9fbdc..6b3e71137 100644
--- a/src/client/application/application-client.vala
+++ b/src/client/application/application-client.vala
@@ -43,6 +43,11 @@ public class Application.Client : Gtk.Application {
public const string SOURCE_ROOT_DIR = _SOURCE_ROOT_DIR;
public const string BUILD_ROOT_DIR = _BUILD_ROOT_DIR;
+ // keep these in sync with meson_options.txt
+ public const string PROFILE_RELEASE = "release";
+ public const string PROFILE_BETA = "beta";
+ public const string PROFILE_DEVEL = "development";
+
public const string[] AUTHORS = {
"Jim Nelson <jim yorba org>",
"Eric Gregory <eric yorba org>",
diff --git a/src/client/application/application-main-window.vala
b/src/client/application/application-main-window.vala
index 2b77a6d74..90d5b249e 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -507,7 +507,7 @@ public class Application.MainWindow :
load_config(application.config);
restore_saved_window_state();
- if (_PROFILE != "release") {
+ if (_PROFILE != Client.PROFILE_RELEASE) {
this.get_style_context().add_class("devel");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]