Saturday, December 10, 2011

**NEW COMMAND** gnocl::showURI

A simple wrapper around the gtk_show_uri utility function. This will launch the GNOME default applications for mailing and browsing.

Rather than explicitly calling a browser with:

$m4 configure -onClicked "
        exec firefox http://www.buddhism-dict.net/cgi-bin/xpr-ddb.pl?q=[$w get selectionStart selectionEnd] &
        "


The same effect can be achieved with

$m4 configure -onClicked "
        gnocl::showURI "http://www.buddhism-dict.net/cgi-bin/xpr-ddb.pl?q=[$w get selectionStart selectionEnd]
        "


No comments: