Bug 344241

Summary: Colorize[interactive] filter options : filemanager button to browse for palette doesn't allow to pick *.gpl palettes
Product: [Applications] krita Reporter: David REVOY <info>
Component: G'Mic for KritaAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: 2.9 Beta   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David REVOY 2015-02-16 14:19:54 UTC
Hi, The filter Colorize[interactive] propose in the option two slot ( path ) for picking palette ( *.gpl color palette ). A little button next to the path propose to open a filemanager ( a folder icon on the button ). But this filemanager is limited to open only Krita images documents. So, it's impossible right now to use the filemanager to pick a palette files, the only way is to copy/paste the path manually inside the path field.
Result expected : having the filemanager dialog to filter *.gpl palette, or list everything and allow any files.
Comment 1 Halla Rempt 2015-02-16 14:28:04 UTC
Confirmed, we need to expand the KisUrlRequester class with an option to set the filter list on the KoFileDialog.
Comment 2 Aleksander Demko 2015-02-17 06:19:31 UTC
Git commit f5722b720122b0ad9861920ac92b29b8b39845b3 by Aleksander Demko.
Committed on 17/02/2015 at 06:19.
Pushed by ademko into branch 'calligra/2.9'.

The general G'MIC file widget now lets you select any file.

Added KisUrlRequest::setMimeTypeFilters()

M  +1    -0    krita/plugins/extensions/gmic/kis_gmic_settings_widget.cpp
M  +18   -10   krita/ui/widgets/kis_url_requester.cpp
M  +19   -1    krita/ui/widgets/kis_url_requester.h
M  +9    -18   libs/widgets/KoFileDialog.cpp

http://commits.kde.org/calligra/f5722b720122b0ad9861920ac92b29b8b39845b3
Comment 3 David REVOY 2015-02-17 08:05:10 UTC
Many thanks for the fix, I'll try it now :)