http://qs1969.pair.com?node_id=1050558


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.