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
  
/* -*- C -*- */ 
class GTK2.AccelLabel; 
inherit GTK2.Label; 
 
//! A label for accelerators. 
 
//! Properties: 
//! GTK2.Widget accel-widget 
 
 
void create(string|mapping(string:mixed) text_or_props) 
//! Creates a new W(AccelLabel). 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  { 
    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) { 
      struct pike_string *t; 
      GtkWidget *ga; 
      get_all_args(NULL,args,"%T",&t); 
      ga=gtk_accel_label_new((char *)STR0(t)); 
      THIS->obj=G_OBJECT(ga); 
    } else { 
      INIT_WITH_PROPS(GTK_TYPE_ACCEL_LABEL); 
    } 
    pgtk2_pop_n_elems(args); 
  } 
  pgtk2__init_this_object(); 
} 
 
+GTK2.Widget get_accel_widget(); 
//! Fetches the widget monitored by this accelerator label. 
 
void set_accel_widget(GTK2.Widget accel_widget); 
//! Sets the widget to be monitored. 
 
int get_accel_width(); 
//! Returns the width needed to display the accelerator key(s).  This is used 
//! by menus to align all of the W(MenuItem). 
 
int refetch(); 
//! Recreates the string representing the accelerator keys.  This should not 
//! be needed since the string is automatically updated whenever accelerators 
//! are added or removed from the associated widget.