Re: [gtk-list] Running Netscape within a GTK App



Jason McAfee wrote:
> In my program I have a list of url's and when the user clicks on them I
> would like to open the page in netscape.  What would be a easy way of
> doing this in my GTK application or can this be done at all?

Get the fork() example (question 5.2) from the GTK+ FAQ (available
at http://www.gtk.org/faq/). Instead of exec()-uting "ls /", you should
exec() "netscape -remote 'OpenUrl(http://www.gtk.org/)'". Oh, and don't
forget to encode spaces in URLs as %20.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]