1. 10 Sep, 2020 1 commit
  2. 05 Sep, 2020 1 commit
  3. 31 Aug, 2020 2 commits
  4. 30 Aug, 2020 1 commit
  5. 07 Aug, 2020 2 commits
    • Harald Sitter's avatar
      port appchooserdialog's app list to load kservices · c83f7c8b
      Harald Sitter authored
      it's faster, less code, and correctly honors visibility rules such as
      NoDisplay, OnlyShowIn etc.
      still loading x-gnome-fullname manually as it is a nonstandard key.
    • Harald Sitter's avatar
      use kirigami icon instead of plasma icon in appchooser · cfd625a4
      Harald Sitter authored
      plasma icons (apparently) try to follow the plasma theme and so (e.g.)
      the VLC icon is the monochrome icon used in the systray rather than the
      actual application icon as seen in the menu.
      kirigami icon doesn't behave this way and uses the correct orange and
      white application icon
  6. 04 Aug, 2020 1 commit
  7. 03 Aug, 2020 1 commit
  8. 31 Jul, 2020 1 commit
  9. 30 Jul, 2020 2 commits
  10. 29 Jul, 2020 1 commit
  11. 28 Jul, 2020 1 commit
  12. 25 Jul, 2020 3 commits
  13. 23 Jul, 2020 2 commits
  14. 14 Jul, 2020 1 commit
    • Michael Weghorn's avatar
      FileChooser: Return selected filter · 8922d260
      Michael Weghorn authored
      This implements handling the 'current_filter' return
      value which returns the filter that was selected in the
      file chooser and was added to 'xdg-desktop-portal'
      and thus the FileChooser API in commit [1].
      Keep a mapping between the user-visible names
      (for name filters) or MIME types (for MIME type
      filters) to the actual filters in order to retrieve
      the actual filter to return after running the file dialog.
      Since multiple name filters can use the same filter string,
      those aren't necessarily unique, so use the user-visible
      names rather than just the filter string to avoid
      potential name clashes and be able to retrieve the correct
      filter again in the end.
      Mapping back to an actual filter does not necessarily
      work in all cases, e.g. if a manual filter string was
      entered in the file widget. No 'current_filter' is
      returned in that case.
      This commit moves the extraction of the filters to a
      separate method to avoid code duplication.
      Handling 'current_filter' is e.g. needed to make gtk's
      'gtk_file_chooser_get_filter' function work for the portal
      use case. The filter returned by 'gtk_file_chooser_get_filter'
      (not just the file extension) is used e.g. by Firefox and
      Thunderbird to determine what file format to save a file in,
      s. Mozilla bug [2] and gtk issue [3] for more details.
      This way, this commit makes that scenario work for the
      KF5 native file chooser as well (with 'GTK_USE_PORTAL=1'
      set and 'xdg-desktop-portal-kde' in use).
      Note: For the case of a gtk program, like the Firefox use case,
      this depends on the gtk commits [4] and and [5] in addition
      to xdg-desktop-portal commit [1] to actually work as expected.
      [1] https://github.com/flatpak/xdg-desktop-portal/commit/35fca7fae881bdaba1bebccf7775eba84407a488
      [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1517074
      [3] https://gitlab.gnome.org/GNOME/gtk/-/issues/1820
      [4] https://gitlab.gnome.org/GNOME/gtk/-/commit/baddc90c26f65a0867aa6b4073e1a6b689d87136
      [5] https://gitlab.gnome.org/GNOME/gtk/-/commit/d59b28d5f4e2c4ff4cb51df0a39d94c7df7fee96
  15. 18 Jun, 2020 1 commit
  16. 17 Jun, 2020 1 commit
  17. 13 Jun, 2020 1 commit
  18. 09 Jun, 2020 1 commit
  19. 04 Jun, 2020 1 commit
    • Michael Weghorn's avatar
      FileChooser: Handle 'options' - 'choices' · 67344e9f
      Michael Weghorn authored
      This impelements handling for the 'choices' in the 'options'
      vardict of the FileChooser portal, which is described in the
      spec [1] as:
      > choices a(ssa(ss)s)
      >     List of serialized combo boxes to add to the file chooser.
      >     For each element, the first string is an ID that will be returned
      >     with the response, te second string is a user-visible label. The
      >     a(ss) is the list of choices, each being a is an ID and a
      >     user-visible label. The final string is the initial selection, or
      >     "", to let the portal decide which choice will be initially
      >     selected. None of the strings, except for the initial selection,
      >     should be empty.
      >     As a special case, passing an empty array for the list of choices
      >     indicates a boolean choice that is typically displayed as a check
      >     button, using "true" and "false" as the choices.
      >     Example: [('encoding', 'Encoding', [('utf8', 'Unicode (UTF-8)'),
      >             ('latin15', 'Western')], 'latin15'), ('reencode',
      >                 'Reencode', [], 'false')]
      The corresponding types are added for marshalling/unmarshalling to/from
      the QDBusArgument.
      Note that the implementation uses the term "Option" for a top-level
      element in the list passed by the 'choices' key while "Choice" refers
      to an element in the "list of choices" for a single element/option.
      For every option, a checkbox (for boolean options) or combobox is
      created and all of them are inserted into the layout of a widget that
      is then set as the custom widget of the a custom widget that is then
      added to the file dialog using 'KFileWidget::KFilesetCustomWidget'.
      [1] https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.portal.FileChooser
  20. 02 Jun, 2020 2 commits
    • Michael Weghorn's avatar
      FileChooser portal: Handle 'current_filter' · 5b9b8f19
      Michael Weghorn authored
      From FileChooser portal documentation [1]:
      > current_filter (sa(us))
      >     Request that this filter be set by default at dialog creation. If
      >     the filters list is nonempty, it should match a filter in the list
      >     to set the default filter from the list. Alternatively, it may be
      >     specified when the list is empty to apply the filter
      >     unconditionally.
      The implemented approach adds the filter specified by current_filter
      regardless of whether the passed filters list is empty or not.
      Since KFileWidget always seems to select the first filter in the
      list it was passed and there seems to be no way to explicitly select
      a different one, this makes sure the the filter specified by
      'current_filter' is the first one in the corresponding list.
      [1] https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.impl.portal.FileChooser
    • Script Kiddy's avatar
      SVN_SILENT made messages (.desktop file) - always resolve ours · cf1c33a9
      Script Kiddy authored
      In case of conflict in i18n, keep the version of the branch "ours"
      To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
  21. 31 May, 2020 2 commits
  22. 17 May, 2020 1 commit
  23. 15 May, 2020 1 commit
  24. 14 May, 2020 3 commits
  25. 11 May, 2020 1 commit
  26. 10 May, 2020 1 commit
  27. 09 May, 2020 1 commit
  28. 07 May, 2020 1 commit
  29. 29 Apr, 2020 1 commit
  30. 28 Apr, 2020 1 commit