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
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
/* -*- C -*- */ 
require gtk210; 
class GTK2.LinkButton; 
inherit GTK2.Button; 
 
//! Properties: 
//! <p> 
//! string uri 
 
//! A GTK2.LinkButton is a GTK2.Button with a hyperlink, similar to the one 
//! used by web browsers, which triggers an action when clicked. It is useful 
//! to show quick links to resources. 
 
void create(string|mapping(string:mixed) uri_or_props, ?string label) 
//! Creates a new LinkButton. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  { 
    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) { 
      struct pike_string *t,*t1=NULL; 
      GtkWidget *gl; 
 
      get_all_args(NULL,args,"%T.$T",&t,&t1); 
      if (t) { 
        ref_push_string(t); 
        f_string_to_utf8(1); 
        if (t1) { 
          ref_push_string(t1); 
          f_string_to_utf8(1); 
          gl=gtk_link_button_new_with_label(CGSTR0(Pike_sp[-1].u.string), 
                        CGSTR0(Pike_sp[-2].u.string)); 
        } else 
          gl=gtk_link_button_new(CGSTR0(Pike_sp[-1].u.string)); 
        pop_stack(); 
      } else 
        gl=gtk_link_button_new(NULL); 
      THIS->obj=G_OBJECT(gl); 
    } else { 
      INIT_WITH_PROPS(GTK_TYPE_LINK_BUTTON); 
    } 
    pgtk2_pop_n_elems(args); 
  } 
  pgtk2__init_this_object(); 
} 
 
string get_uri(); 
//! Retrieves the URI set using set_uri(). 
 
void set_uri(string uri); 
//! Sets uri as the URI. 
endrequire;