[gnote] Refactor some constants
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Refactor some constants
- Date: Sat, 12 Dec 2020 19:16:33 +0000 (UTC)
commit cd434921cbd9dcb4d99177cba5de28e0723c56c6
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 12 21:16:11 2020 +0200
Refactor some constants
src/preferences.cpp | 7 +++----
src/preferences.hpp | 6 ++----
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 6fbc317b..021afc82 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -23,6 +23,7 @@
#include "preferences.hpp"
+const char *SCHEMA_DESKTOP_GNOME_INTERFACE = "org.gnome.desktop.interface";
namespace gnote {
@@ -32,7 +33,6 @@ namespace gnote {
const char * Preferences::SCHEMA_SYNC = "org.gnome.gnote.sync";
const char * Preferences::SCHEMA_SYNC_GVFS = "org.gnome.gnote.sync.gvfs";
const char * Preferences::SCHEMA_SYNC_WDFS = "org.gnome.gnote.sync.wdfs";
- const char * Preferences::SCHEMA_DESKTOP_GNOME_INTERFACE = "org.gnome.desktop.interface";
const char * Preferences::ENABLE_SPELLCHECKING = "enable-spellchecking";
const char * Preferences::ENABLE_AUTO_LINKS = "enable-auto-links";
@@ -80,9 +80,8 @@ namespace gnote {
const char * Preferences::SYNC_FUSE_WDFS_URL = "url";
const char * Preferences::SYNC_FUSE_WDFS_USERNAME = "username";
- const char * Preferences::DESKTOP_GNOME_CLOCK_FORMAT = "clock-format";
- const char * Preferences::DESKTOP_GNOME_FONT = "document-font-name";
- const char * Preferences::DESKTOP_GNOME_KEY_THEME = "gtk-key-theme";
+ 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 16c62e6b..5a9c1778 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -38,7 +38,6 @@ namespace gnote {
static const char *SCHEMA_SYNC;
static const char *SCHEMA_SYNC_GVFS;
static const char *SCHEMA_SYNC_WDFS;
- static const char *SCHEMA_DESKTOP_GNOME_INTERFACE;
static const char *ENABLE_SPELLCHECKING;
static const char *ENABLE_AUTO_LINKS;
@@ -86,9 +85,8 @@ namespace gnote {
static const char *SYNC_FUSE_WDFS_URL;
static const char *SYNC_FUSE_WDFS_USERNAME;
- static const char *DESKTOP_GNOME_CLOCK_FORMAT;
- static const char *DESKTOP_GNOME_FONT;
- static const char *DESKTOP_GNOME_KEY_THEME;
+ static const Glib::ustring DESKTOP_GNOME_CLOCK_FORMAT;
+ static const Glib::ustring DESKTOP_GNOME_FONT;
Preferences() {}
void init();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]