[gedit] gschema: rename sub-schema state.file-filter -> state.file-chooser
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] gschema: rename sub-schema state.file-filter -> state.file-chooser
- Date: Sat, 6 Jun 2020 16:57:08 +0000 (UTC)
commit 5ad01002dd0d41ec9086033f68b682c54c6dc573
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jun 6 18:46:37 2020 +0200
gschema: rename sub-schema state.file-filter -> state.file-chooser
It is planned to add more keys to that sub-schema for the FileChooser's.
Since it is a 'state', not a preference, it is not super important that
users will lose the setting when upgrading gedit.
data/org.gnome.gedit.gschema.xml.in | 4 ++--
gedit/gedit-file-chooser-dialog-gtk.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/org.gnome.gedit.gschema.xml.in b/data/org.gnome.gedit.gschema.xml.in
index 9272217c2..83c44779f 100644
--- a/data/org.gnome.gedit.gschema.xml.in
+++ b/data/org.gnome.gedit.gschema.xml.in
@@ -259,7 +259,7 @@
</schema>
<schema id="org.gnome.gedit.state" path="/org/gnome/gedit/state/">
<child name="window" schema="org.gnome.gedit.state.window"/>
- <child name="file-filter" schema="org.gnome.gedit.state.file-filter"/>
+ <child name="file-chooser" schema="org.gnome.gedit.state.file-chooser"/>
<child name="history-entry" schema="org.gnome.gedit.state.history-entry"/>
</schema>
<schema id="org.gnome.gedit.state.window" path="/org/gnome/gedit/state/window/">
@@ -282,7 +282,7 @@
<default>''</default>
</key>
</schema>
- <schema id="org.gnome.gedit.state.file-filter" path="/org/gnome/gedit/state/file-filter/">
+ <schema id="org.gnome.gedit.state.file-chooser" path="/org/gnome/gedit/state/file-chooser/">
<key name="filter-id" type="i">
<default>0</default>
</key>
diff --git a/gedit/gedit-file-chooser-dialog-gtk.c b/gedit/gedit-file-chooser-dialog-gtk.c
index 45038d45d..92eac5a0d 100644
--- a/gedit/gedit-file-chooser-dialog-gtk.c
+++ b/gedit/gedit-file-chooser-dialog-gtk.c
@@ -543,7 +543,7 @@ all_text_files_filter (const GtkFileFilterInfo *filter_info,
static void
gedit_file_chooser_dialog_gtk_init (GeditFileChooserDialogGtk *dialog)
{
- dialog->filter_settings = g_settings_new ("org.gnome.gedit.state.file-filter");
+ dialog->filter_settings = g_settings_new ("org.gnome.gedit.state.file-chooser");
}
GeditFileChooserDialog *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]