eb05362005-11-05Henrik Grubbström (Grubba) /* -*- C -*- */
a9e4522005-11-08Henrik Grubbström (Grubba) require gnomeui;
1a05542005-07-28Martin Nilsson  class Gnome2.Href; inherit GTK2.Button; //! This widget is a GtkButton button that contains a URL. When clicked //! it invokes the configured browser for the URL you provided. //! <p>
d099462006-01-09Marcus Comstedt //! IMG: GTK2.Gnome2Href( "http://www.gnome.org", "GNOME Web Site" ) //! IMG: GTK2.Gnome2Href( "http://www.gnome.org" )
1a05542005-07-28Martin Nilsson //! </p> //! Properties: //! string text //! string url //! <p> //! Style properties: //! GDK.Color link-color void create(string url, ?string label); //! Created a GNOME href object, a label widget with a clickable action //! and an associated URL. If label is set to 0, url is used as the //! label. void set_url(string url); //! Sets the internal URL string get_url(); //! Return the url
0e75122010-09-19Marcus Comstedt void set_text(string text, mixed ... fmt)
1a05542005-07-28Martin Nilsson //! Sets the internal label widget text (used to display a URL's link //! text) to the given value.
0e75122010-09-19Marcus Comstedt { pgtk2_get_string_arg_with_sprintf(args); pgtk2_verify_inited(); gnome_href_set_text(GNOME_HREF(THIS->obj),Pike_sp[-1].u.string->str); pgtk2_return_this(1); }
1a05542005-07-28Martin Nilsson  string get_text(); //! Returns the contents of the label widget used to display the link text.