[webkit-gtk] Custom Filechooser dialog
simon at schampijer.de
Thu Jan 19 00:22:02 PST 2012
On 01/16/2012 01:51 PM, Simon Schampijer wrote:
> in Sugar  we have a custom file chooser dialog. When our browser was
> using xulrunner we did override NsIFilePicker  and displayed our
> custom file chooser dialog instead.
> I am looking now around how I would do this in webkitgtk. The API does
> not seem to be prepared for anything like that. Grepping around in the
> code the dialog seems to get created in
> 'gtk/WebCoreSupport/ChromeClientGtk.cpp' in 'runOpenPanel'. But no idea
> how I would intercept here. Any ideas how I could handle that special case?
>  http://sugarlabs.org/
>  https://developer.mozilla.org/En/NsIFilePicker
Thinking about it, would it maybe be a good addition to the API to have
an 'upload-requested' signal similar to the 'download-requested'  one
and then the listener decides whether to handle it or not, and if
'False' is returned the standard dialog is used?
More information about the webkit-gtk