Application.Client: Introduce and use consts for build profiles

This commit is contained in:
Michael Gratton 2020-10-14 00:53:35 +11:00 committed by Michael James Gratton
parent 072156096d
commit 99fc14a4e5
2 changed files with 6 additions and 1 deletions

View file

@ -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>",

View file

@ -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");
}