summaryrefslogtreecommitdiff
path: root/gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml
diff options
context:
space:
mode:
authorNelson Benítez León <nbenitezl@gmail.com>2019-06-06 19:02:11 -0400
committerNelson Benítez León <nbenitezl@gmail.com>2019-06-22 13:22:59 -0400
commitc789a396607a3e2cef84c6dd55f45c566a2a19c7 (patch)
tree6d455bb8106033d6a9f59e0df0ec948f49cf22f2 /gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml
parent3c6045e300f9d4ead188c4490f8ef29340a2083c (diff)
downloadgtk+-c789a396607a3e2cef84c6dd55f45c566a2a19c7.tar.gz
GtkFileChooser: add a sortable "Type" column
along with a new 'type-format' setting that allows to choose the output format for the "Type" column. The options implemented for this setting are: 'mime' : Output from g_content_type_get_mime_type(). 'description' : Output from g_content_type_get_description(). 'category' : It uses the corresponding generic icon of the mime type to group by categories (aka basic types). This produces a more compact output than previous options, and allows for type families to be grouped together, so eg. after sorting by "Type" column, jpeg and png images will be placed together, or the various types of archiver files will also be grouped together. This format was copied from and currently used by Nautilus list view, so we also improve consistency with Nautilus. Bugzilla entry for Nautilus implementation is: https://bugzilla.gnome.org/show_bug.cgi?id=683722 The list of type families or categories can be checked on: https://developer.gnome.org/icon-naming-spec/#mimetypes This 'category' format is set as default. Issue #362
Diffstat (limited to 'gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml')
-rw-r--r--gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml27
1 files changed, 26 insertions, 1 deletions
diff --git a/gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml b/gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml
index 2db786b236..985b9dda80 100644
--- a/gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml
+++ b/gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml
@@ -25,7 +25,8 @@
<enum id='org.gtk.gtk4.Settings.FileChooser.SortColumn'>
<value nick='name' value='0'/>
<value nick='size' value='1'/>
- <value nick='modified' value='2'/>
+ <value nick='type' value='2'/>
+ <value nick='modified' value='3'/>
</enum>
<enum id='org.gtk.gtk4.Settings.FileChooser.SortOrder'>
@@ -48,6 +49,12 @@
<value nick='with-time' value='1'/>
</enum>
+ <enum id='org.gtk.gtk4.Settings.FileChooser.TypeFormat'>
+ <value nick='mime' value='0'/>
+ <value nick='description' value='1'/>
+ <value nick='category' value='2'/>
+ </enum>
+
<schema id='org.gtk.gtk4.Settings.FileChooser' path='/org/gtk/gtk4/settings/file-chooser/'>
<key name='last-folder-uri' type='s'>
<default>""</default>
@@ -87,6 +94,13 @@
Controls whether the file chooser shows a column with file sizes.
</description>
</key>
+ <key name='show-type-column' type='b'>
+ <default>true</default>
+ <summary>Show file types</summary>
+ <description>
+ Controls whether the file chooser shows a column with file types.
+ </description>
+ </key>
<key name='sort-column' enum='org.gtk.gtk4.Settings.FileChooser.SortColumn'>
<default>'name'</default>
<summary>Sort column</summary>
@@ -148,6 +162,17 @@
The amount of detail to show in the Modified column.
</description>
</key>
+ <key name="type-format" enum="org.gtk.gtk4.Settings.FileChooser.TypeFormat">
+ <default>'category'</default>
+ <summary>Type format</summary>
+ <description>
+ Different ways to show the 'Type' column information.
+ Example outputs for a video mp4 file:
+ 'mime' -> 'video/mp4'
+ 'description' -> 'MPEG-4 video'
+ 'category' -> 'Video'
+ </description>
+ </key>
</schema>
</schemalist>