[gnote] Add autosize_note_window
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add autosize_note_window
- Date: Sat, 19 Dec 2020 14:06:22 +0000 (UTC)
commit 451c6bc65edc7a9074318fb58ff318e08d915370
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 19 15:36:40 2020 +0200
Add autosize_note_window
src/preferences.cpp | 1 +
src/preferences.hpp | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 15046b5a..faaa941d 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -169,6 +169,7 @@ namespace gnote {
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_CACHING_SETTER_BOOL(m_schema_gnote, open_notes_in_new_window, OPEN_NOTES_IN_NEW_WINDOW)
+ DEFINE_GETTER_SETTER_BOOL(m_schema_gnote, autosize_note_window, AUTOSIZE_NOTE_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 cb44c18d..803e7695 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -92,6 +92,7 @@ namespace gnote {
GNOTE_PREFERENCES_SETTING_BOOL(enable_close_note_on_escape)
GNOTE_PREFERENCES_CACHING_SETTING(note_rename_behavior, int)
GNOTE_PREFERENCES_CACHING_SETTING(open_notes_in_new_window, bool)
+ GNOTE_PREFERENCES_SETTING_BOOL(autosize_note_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]