[gedit] gschema: add open-recent key to org.gnome.gedit.state.file-chooser
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] gschema: add open-recent key to org.gnome.gedit.state.file-chooser
- Date: Sun, 7 Jun 2020 02:07:18 +0000 (UTC)
commit 82b769908e9ff6b75ea662542499adf3ff4a1319
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jun 7 00:41:01 2020 +0200
gschema: add open-recent key to org.gnome.gedit.state.file-chooser
It will be used in _gedit_window_get/set_file_chooser_folder_uri().
data/org.gnome.gedit.gschema.xml.in | 3 +++
gedit/gedit-settings.h | 3 +++
2 files changed, 6 insertions(+)
---
diff --git a/data/org.gnome.gedit.gschema.xml.in b/data/org.gnome.gedit.gschema.xml.in
index 83c44779f..b797d843c 100644
--- a/data/org.gnome.gedit.gschema.xml.in
+++ b/data/org.gnome.gedit.gschema.xml.in
@@ -286,6 +286,9 @@
<key name="filter-id" type="i">
<default>0</default>
</key>
+ <key name="open-recent" type="b">
+ <default>true</default>
+ </key>
</schema>
<schema id="org.gnome.gedit.state.history-entry" path="/org/gnome/gedit/state/history-entry/">
<key name="search-for-entry" type="as">
diff --git a/gedit/gedit-settings.h b/gedit/gedit-settings.h
index 0088d6d31..204b54103 100644
--- a/gedit/gedit-settings.h
+++ b/gedit/gedit-settings.h
@@ -93,7 +93,10 @@ GSList * gedit_settings_get_candidate_encodings (gboolean
*default_candidates);
#define GEDIT_SETTINGS_SIDE_PANEL_ACTIVE_PAGE "side-panel-active-page"
#define GEDIT_SETTINGS_BOTTOM_PANEL_SIZE "bottom-panel-size"
#define GEDIT_SETTINGS_BOTTOM_PANEL_ACTIVE_PAGE "bottom-panel-active-page"
+
+/* file chooser state keys */
#define GEDIT_SETTINGS_ACTIVE_FILE_FILTER "filter-id"
+#define GEDIT_SETTINGS_FILE_CHOOSER_OPEN_RECENT "open-recent"
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]