diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-28 20:30:10 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-28 20:30:10 +0200 |
| commit | a92eaa4c1bffc97db037328249b52a0740651a07 (patch) | |
| tree | 251867584a9a6607fcf3bd0597fc8641d964e689 /gui/src/settings.cpp | |
| parent | 62f67faaed7577e5bfab2148ffcdda529dfe19a6 (diff) | |
| download | turns-a92eaa4c1bffc97db037328249b52a0740651a07.tar.xz turns-a92eaa4c1bffc97db037328249b52a0740651a07.zip | |
gui: reintroduce settings schemas
Diffstat (limited to 'gui/src/settings.cpp')
| -rw-r--r-- | gui/src/settings.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/src/settings.cpp b/gui/src/settings.cpp index 161a709..fed7452 100644 --- a/gui/src/settings.cpp +++ b/gui/src/settings.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: LGPL-2.1-only */ -#include "turns/core/settings.hpp" +#include "settings.hpp" #include <glibmm/refptr.h> #include <glibmm/wrap.h> @@ -13,15 +13,15 @@ #include <gio/gsettings.h> -namespace turns::core +namespace Turns::gui { auto get_settings() -> Glib::RefPtr<Gio::Settings> { auto constexpr schema_id = "ch.arknet.Turns"; -#ifdef TURNS_SETTINGS_SCHEMA_DIR - auto source = Gio::SettingsSchemaSource::create(TURNS_SETTINGS_SCHEMA_DIR "/glib-2.0/schemas", true); +#ifdef SCHEMADIR + auto source = Gio::SettingsSchemaSource::create(SCHEMADIR "/glib-2.0/schemas", true); auto schema = source->lookup(schema_id, true); auto settings = g_settings_new_full(Glib::unwrap(schema), nullptr, nullptr); return Glib::wrap(settings); @@ -30,4 +30,4 @@ namespace turns::core #endif } -} // namespace turns::core +} // namespace Turns::gui |
