From 72ab1fb4c1bf363f46470816d8b914a78ac493c4 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 24 May 2025 11:58:39 +0200 Subject: gui: restructure file layout and apply licenses --- gui/settings.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 gui/settings.cpp (limited to 'gui/settings.cpp') diff --git a/gui/settings.cpp b/gui/settings.cpp deleted file mode 100644 index 13cf665..0000000 --- a/gui/settings.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include "turns/core/settings.hpp" - -#include -#include - -#include -#include - -#include - -namespace turns::core -{ - - auto get_settings() -> Glib::RefPtr - { - 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); - auto schema = source->lookup(schema_id, true); - auto settings = g_settings_new_full(Glib::unwrap(schema), nullptr, nullptr); - return Glib::wrap(settings); -#else - return Gio::Settings::create(schema_id); -#endif - } - -} // namespace turns::core -- cgit v1.2.3