[gnote] Add utilities for note_rename_behavior



commit bf2e51a8e6c36b8c8ee9396670cddac82b4f0790
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Dec 19 13:58:55 2020 +0200

    Add utilities for note_rename_behavior

 src/preferences.cpp | 2 ++
 src/preferences.hpp | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 07fe5591..661ececb 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -134,6 +134,7 @@ namespace gnote {
     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, note_rename_behavior, NOTE_RENAME_BEHAVIOR, int);
     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);
@@ -165,6 +166,7 @@ namespace gnote {
   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, enable_close_note_on_escape, ENABLE_CLOSE_NOTE_ON_ESCAPE)
+  DEFINE_CACHING_SETTER_INT(m_schema_gnote, note_rename_behavior, NOTE_RENAME_BEHAVIOR)
   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)
diff --git a/src/preferences.hpp b/src/preferences.hpp
index 19c6b613..c99fc23a 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -90,6 +90,7 @@ namespace gnote {
     GNOTE_PREFERENCES_CACHING_SETTING(enable_custom_font, bool)
     GNOTE_PREFERENCES_SETTING_BOOL(enable_auto_bulleted_lists)
     GNOTE_PREFERENCES_SETTING_BOOL(enable_close_note_on_escape)
+    GNOTE_PREFERENCES_CACHING_SETTING(note_rename_behavior, int)
     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 &)
@@ -123,6 +124,7 @@ namespace gnote {
 
     Glib::ustring m_sync_selected_service_addin;
 
+    int m_note_rename_behavior;
     int m_sync_autosync_timeout;
 
     bool m_enable_spellchecking;


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