[webkit-gtk] Handling the run-file-chooser signal
Mario Sanchez Prada
mario.prada at samsung.com
Tue Nov 5 07:00:08 PST 2013
> [...]
> 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
More information about the webkit-gtk
mailing list