[gnote] Add getter/setter for enable_close_note_on_escape



commit 0e2c4063141d18f27623acb1684b8245cfbe8a47
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Dec 19 13:28:26 2020 +0200

    Add getter/setter for enable_close_note_on_escape

 src/preferences.cpp | 1 +
 src/preferences.hpp | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 631760b9..07fe5591 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -164,6 +164,7 @@ namespace gnote {
   DEFINE_CACHING_SETTER_BOOL(m_schema_gnote, enable_wikiwords, ENABLE_WIKIWORDS)
   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_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 392c0a37..19c6b613 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -89,6 +89,7 @@ namespace gnote {
     GNOTE_PREFERENCES_CACHING_SETTING(enable_wikiwords, bool)
     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_SETTING_BOOL(open_notes_in_new_window)
     GNOTE_PREFERENCES_SETTING_STRING(start_note_uri)
     GNOTE_PREFERENCES_CACHING_SETTING(custom_font_face, const Glib::ustring &)


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