[gnote] Utilities for start uri and custom font settings
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Utilities for start uri and custom font settings
- Date: Fri, 18 Dec 2020 21:29:21 +0000 (UTC)
commit ab98ccbce185b083e3cd78261a49a7fc019fc429
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Dec 18 23:26:33 2020 +0200
Utilities for start uri and custom font settings
src/preferences.cpp | 6 +++++-
src/preferences.hpp | 7 ++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index a5c77592..cc89e040 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -133,6 +133,8 @@ namespace gnote {
SETUP_CACHED_KEY(m_schema_gnote, enable_auto_links, ENABLE_AUTO_LINKS, boolean);
SETUP_CACHED_KEY(m_schema_gnote, enable_url_links, ENABLE_URL_LINKS, boolean);
SETUP_CACHED_KEY(m_schema_gnote, enable_wikiwords, ENABLE_WIKIWORDS, boolean);
+ SETUP_CACHED_KEY(m_schema_gnote, enable_custom_font, ENABLE_CUSTOM_FONT, boolean);
+ SETUP_CACHED_KEY(m_schema_gnote, custom_font_face, CUSTOM_FONT_FACE, string);
SETUP_CACHED_KEY(m_schema_gnome_interface, desktop_gnome_clock_format, DESKTOP_GNOME_CLOCK_FORMAT,
string);
SETUP_CACHED_KEY(m_schema_gnome_interface, desktop_gnome_font, DESKTOP_GNOME_FONT, string);
@@ -160,9 +162,11 @@ namespace gnote {
DEFINE_CACHING_SETTER_BOOL(m_schema_gnote, enable_auto_links, ENABLE_AUTO_LINKS)
DEFINE_CACHING_SETTER_BOOL(m_schema_gnote, enable_url_links, ENABLE_URL_LINKS)
DEFINE_CACHING_SETTER_BOOL(m_schema_gnote, enable_wikiwords, ENABLE_WIKIWORDS)
- DEFINE_GETTER_SETTER_BOOL(m_schema_gnote, enable_custom_font, ENABLE_CUSTOM_FONT)
+ DEFINE_CACHING_SETTER_BOOL(m_schema_gnote, enable_custom_font, ENABLE_CUSTOM_FONT)
DEFINE_GETTER_SETTER_BOOL(m_schema_gnote, enable_auto_bulleted_lists, ENABLE_AUTO_BULLETED_LISTS)
DEFINE_GETTER_SETTER_BOOL(m_schema_gnote, open_notes_in_new_window, OPEN_NOTES_IN_NEW_WINDOW)
+ DEFINE_GETTER_SETTER_STRING(m_schema_gnote, start_note_uri, START_NOTE_URI)
+ DEFINE_CACHING_SETTER_STRING(m_schema_gnote, custom_font_face, CUSTOM_FONT_FACE)
DEFINE_GETTER_STRING(m_schema_sync, sync_client_id, SYNC_CLIENT_ID)
DEFINE_GETTER_SETTER_STRING(m_schema_sync, sync_local_path, SYNC_LOCAL_PATH)
diff --git a/src/preferences.hpp b/src/preferences.hpp
index 7cd9935f..f94f1743 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -88,9 +88,11 @@ namespace gnote {
GNOTE_PREFERENCES_CACHING_SETTING(enable_auto_links, bool)
GNOTE_PREFERENCES_CACHING_SETTING(enable_url_links, bool)
GNOTE_PREFERENCES_CACHING_SETTING(enable_wikiwords, bool)
- GNOTE_PREFERENCES_SETTING_BOOL(enable_custom_font)
+ GNOTE_PREFERENCES_CACHING_SETTING(enable_custom_font, bool)
GNOTE_PREFERENCES_SETTING_BOOL(enable_auto_bulleted_lists)
GNOTE_PREFERENCES_SETTING_BOOL(open_notes_in_new_window)
+ GNOTE_PREFERENCES_SETTING_STRING(start_note_uri)
+ GNOTE_PREFERENCES_CACHING_SETTING(custom_font_face, const Glib::ustring &)
GNOTE_PREFERENCES_CACHING_SETTING_RO(desktop_gnome_clock_format, const Glib::ustring &)
GNOTE_PREFERENCES_CACHING_SETTING_RO(desktop_gnome_font, const Glib::ustring &)
@@ -114,6 +116,8 @@ namespace gnote {
Glib::RefPtr<Gio::Settings> m_schema_sync;
Glib::RefPtr<Gio::Settings> m_schema_sync_wdfs;
+ Glib::ustring m_custom_font_face;
+
Glib::ustring m_desktop_gnome_clock_format;
Glib::ustring m_desktop_gnome_font;
@@ -125,6 +129,7 @@ namespace gnote {
bool m_enable_auto_links;
bool m_enable_url_links;
bool m_enable_wikiwords;
+ bool m_enable_custom_font;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]