pike.git / src / post_modules / GTK2 / source / gnomehref.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gnomehref.pre:1: + /* -*- C -*- */ + require gnomeui;    -  + 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> + //! IMG: GTK2.Gnome2Href( "http://www.gnome.org", "GNOME Web Site" ) + //! IMG: GTK2.Gnome2Href( "http://www.gnome.org" ) + //! </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 +  + void set_text(sprintf_format text, sprintf_args ... fmt) + //! Sets the internal label widget text (used to display a URL's link + //! text) to the given value. + { +  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); + } +  + string get_text(); + //! Returns the contents of the label widget used to display the link text. +    Newline at end of file added.