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
  
/* -*- C -*- */ 
require gtk24; 
 
class GTK2.ToggleAction; 
inherit GTK2.Action; 
 
//! Properties 
require gtk210; 
//! int active 
endrequire; 
//! int draw-as-radio 
 
signal toggled; 
 
void create(string|mapping(string:mixed) name_or_props, ?string label, 
            ?string tooltip, ?string stock_id) 
//! Creates a new GTK2.ToggleAction object. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  if (args==4) { 
    char *name,*label,*tooltip,*stock_id; 
    GtkToggleAction *gt; 
    get_all_args(NULL,args,"%s%s%s%s",&name,&label,&tooltip,&stock_id); 
    gt=gtk_toggle_action_new(name,label,tooltip,stock_id); 
    THIS->obj=G_OBJECT(gt); 
  } else { 
    INIT_WITH_PROPS(GTK_TYPE_TOGGLE_ACTION); 
  } 
  pgtk2_pop_n_elems(args); 
  pgtk2__init_this_object(); 
} 
 
void toggled(); 
//! Emits the "toggled" signal. 
 
void set_active(int setting); 
//! Sets the checked state. 
 
int get_active(); 
//! Returns the checked state. 
 
void set_draw_as_radio(int setting); 
//! Sets whether the action should have proxies like a radio action. 
 
int get_draw_as_radio(); 
//! Returns whether the action should have proxies like a radio action. 
endrequire;