[gnote] Add methods for main window placement
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add methods for main window placement
- Date: Sun, 20 Dec 2020 10:58:50 +0000 (UTC)
commit fa872ab4b6d39194da607f427e67bfc181a3d4fc
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 19 18:11:08 2020 +0200
Add methods for main window placement
src/preferences.cpp | 4 ++++
src/preferences.hpp | 4 ++++
2 files changed, 8 insertions(+)
---
diff --git a/src/preferences.cpp b/src/preferences.cpp
index f2724952..e2262082 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -169,6 +169,10 @@ namespace gnote {
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_SETTER_STRING(m_schema_gnote, menu_pinned_notes, MENU_PINNED_NOTES)
+ DEFINE_GETTER_SETTER_BOOL(m_schema_gnote, main_window_maximized, MAIN_WINDOW_MAXIMIZED)
+ DEFINE_GETTER_SETTER_INT(m_schema_gnote, search_window_width, SEARCH_WINDOW_WIDTH)
+ DEFINE_GETTER_SETTER_INT(m_schema_gnote, search_window_height, SEARCH_WINDOW_HEIGHT)
+ DEFINE_GETTER_SETTER_INT(m_schema_gnote, search_window_splitter_pos, SEARCH_WINDOW_SPLITTER_POS)
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 24d2361d..f42e1002 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -82,6 +82,10 @@ namespace gnote {
GNOTE_PREFERENCES_SETTING_STRING(start_note_uri)
GNOTE_PREFERENCES_CACHING_SETTING(custom_font_face, const Glib::ustring &)
GNOTE_PREFERENCES_SETTING_STRING(menu_pinned_notes)
+ GNOTE_PREFERENCES_SETTING_BOOL(main_window_maximized)
+ GNOTE_PREFERENCES_SETTING_INT(search_window_width)
+ GNOTE_PREFERENCES_SETTING_INT(search_window_height)
+ GNOTE_PREFERENCES_SETTING_INT(search_window_splitter_pos)
GNOTE_PREFERENCES_CACHING_SETTING_RO(desktop_gnome_clock_format, const Glib::ustring &)
GNOTE_PREFERENCES_CACHING_SETTING_RO(desktop_gnome_font, const Glib::ustring &)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]