Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1.6k
    • Issues 1.6k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 241
    • Merge requests 241
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Merge requests
  • !874

GtkFileChooser: add a sortable "Type" column

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Nelson Ben requested to merge 362-gtk-fileopen-dialog-need-filetype-mime-sort-option-2_GTK4 into master May 23, 2019
  • Overview 13
  • Commits 1
  • Pipelines 5
  • Changes 4

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 (closed)

Closes #362 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 362-gtk-fileopen-dialog-need-filetype-mime-sort-option-2_GTK4