> [...] 
> Thank you! That pointed me in the right direction.

Happy to help! :)

> Here is the solution for anyone interested.
>
> $view->signal_connect('run-file-chooser' => sub {
>    my ($view, $FileChooserRequest) = @_;
> 
>    print "Inside run-file-chooser handler\n";
> 
>    $FileChooserRequest->select_files(['/home/me/test.txt']);
> 
>    return(1); # Required, or native dialog shows });

Yes. The thing is that you need to return a "true" value to stop further
handlers to be called. That's the usual behaviour.

Cheers,
Mario
 


_______________________________________________
webkit-gtk mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-gtk

Reply via email to