1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
/* -*- 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.