[gnote] Cleanup gnome desktop scheme



commit e587eefe9ddf3276e21a3045437b966e21379589
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Dec 13 13:13:10 2020 +0200

    Cleanup gnome desktop scheme

 src/preferences.cpp | 6 +++---
 src/preferences.hpp | 7 -------
 2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index a9a0e621..44cea4e8 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -27,6 +27,9 @@ namespace {
 const char *SCHEMA_DESKTOP_GNOME_INTERFACE = "org.gnome.desktop.interface";
 const char *SCHEMA_SYNC = "org.gnome.gnote.sync";
 
+const Glib::ustring DESKTOP_GNOME_CLOCK_FORMAT = "clock-format";
+const Glib::ustring DESKTOP_GNOME_FONT = "document-font-name";
+
 const Glib::ustring SYNC_CLIENT_ID = "sync-guid";
 const Glib::ustring SYNC_LOCAL_PATH = "sync-local-path";
 const Glib::ustring SYNC_CONFIGURED_CONFLICT_BEHAVIOR = "sync-conflict-behavior";
@@ -76,9 +79,6 @@ namespace gnote {
   const char * Preferences::SYNC_FUSE_WDFS_URL = "url";
   const char * Preferences::SYNC_FUSE_WDFS_USERNAME = "username";
 
-  const Glib::ustring Preferences::DESKTOP_GNOME_CLOCK_FORMAT = "clock-format";
-  const Glib::ustring Preferences::DESKTOP_GNOME_FONT = "document-font-name";
-
 
   void Preferences::init()
   {
diff --git a/src/preferences.hpp b/src/preferences.hpp
index 6a652bc2..d87abc8b 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -72,17 +72,10 @@ namespace gnote {
     static const char *SYNC_FUSE_WDFS_URL;
     static const char *SYNC_FUSE_WDFS_USERNAME;
 
-    static const Glib::ustring DESKTOP_GNOME_CLOCK_FORMAT;
-    static const Glib::ustring DESKTOP_GNOME_FONT;
-
     Preferences() {}
     void init();
 
     Glib::RefPtr<Gio::Settings> get_schema_settings(const Glib::ustring & schema);
-    const Glib::RefPtr<Gio::Settings> & schema_gnome_interface() const
-      {
-        return m_schema_gnome_interface;
-      }
     const Glib::RefPtr<Gio::Settings> & schema_sync() const
       {
         return m_schema_sync;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]