in reply to Perl Gtk2 AboutDialog's "set_url_hook()" is Not Working as Expected.
When you say this:
$about_window->set_url_hook(open_browser($url));
You're calling set_url_hook with as parameter the result of open_browser($url). I'm not familiar with Gtk2, but you probably want something like
$about_window->set_url_hook("open_browser",$url);
i.e. you tell set_url_hook the name of the function to call; it's possible that you have to pass the argument to open_browser in a different way; you'll have to experiment or read the docs to find out.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl Gtk2 AboutDialog's "set_url_hook()" is Not Working as Expected.
by mmartin (Monk) on Aug 22, 2013 at 21:31 UTC | |
Re^2: Perl Gtk2 AboutDialog's "set_url_hook()" is Not Working as Expected.
by mmartin (Monk) on Aug 23, 2013 at 14:40 UTC |
In Section
Seekers of Perl Wisdom