[Glade-users] Re: [Glade-devel] hlink
Stéphane Genaud
genaud@icps.u-strasbg.fr
Fri, 13 Oct 2000 11:37:55 +0200
montse wrote:
>
> Hello every body:
>
> I have a help button, i want it to open a help.html document in netscape
> p.e.
> I have seen in gnome stock a hlink widget, i want the same but with a
> button.
> It is posible???
>
You need a gnome_href to do that : in the following sample code,
i set a new href and add it into the "Gnome about" window.
This results in a href link that shows up under the Authors field.
I guess i could have used "file:" instead of the "http:" protocol.
GtkWidget *my_url=
gnome_href_new ("http://mysite/help.html/",_("Show the web
page"));
gtk_widget_show (my_url);
gtk_box_pack_start (GTK_BOX ((GNOME_DIALOG (about))->vbox),
my_url, FALSE, FALSE, 0);
S.G.
--
/********************************************************/
/* Stéphane Genaud */
/* ICPS, Université Louis Pasteur */
/* Pôle API, Bd. S. Brant, F-67400 Illkirch */
/* tel : (33)(0)388655047, 0619058113 (SFR) */
/********************************************************/