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
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
/* -*- C -*- */ 
not gtk210; 
require gnomeui; 
 
class Gnome2.DruidPageStandard; 
inherit Gnome2.DruidPage; 
 
//! Properties: 
//! string background 
//! GDK2.Color background-gdk 
//! int background-set 
//! string contents-background 
//! GDK2.Color contents-background-gdk 
//! int contents-background-set 
//! GDK2.Pixbuf logo 
//! string logo-background 
//! GDK2.Color logo-background-gdk 
//! int logo-background-set 
//! string title 
//! string title-foreground 
//! GDK2.Color title-foreground-gdk 
//! int title-foreground-set 
//! GDK2.Pixbuf top-watermark 
 
void create(?string title, ?GDK2.Pixbuf logo, ?GDK2.Pixbuf top_watermark) 
//! Construct a new Gnome2.DruidPageStandard. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup(); 
  if (args) { 
    struct pike_string *title; 
    struct object *o1,*o2; 
    GtkWidget *gps; 
    get_all_args(NULL,args,"%t%o%o",&title,&o1,&o2); 
    ref_push_string(title); 
    f_string_to_utf8(1); 
    gps=gnome_druid_page_standard_new_with_vals(GSTR0(Pike_sp[-1].u.string), 
                        GDK_PIXBUF(get_gobject(o1)), 
                        GDK_PIXBUF(get_gobject(o2))); 
    pop_stack(); 
    THIS->obj=G_OBJECT(gps); 
    pgtk2_pop_n_elems(args); 
  } else { 
    GtkWidget *gps; 
    gps=gnome_druid_page_standard_new(); 
    THIS->obj=G_OBJECT(gps); 
  } 
  pgtk2__init_this_object(); 
} 
 
void set_title(string title); 
//! Sets the title. 
 
void set_logo(?GDK2.Pixbuf logo) 
//! Sets a GDK2.Pixbuf as the logo in the top right corner.  If omitted, then 
//! no logo will be displayed. 
{ 
  pgtk2_verify_inited(); 
  if (args) { 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    gnome_druid_page_standard_set_logo(GNOME_DRUID_PAGE_STANDARD(THIS->obj), 
                        GDK_PIXBUF(get_gobject(o1))); 
  } else 
    gnome_druid_page_standard_set_logo( 
                        GNOME_DRUID_PAGE_STANDARD(THIS->obj),NULL); 
  RETURN_THIS(); 
} 
 
void set_top_watermark(?GDK2.Pixbuf watermark) 
//! Sets a GDK2.Pixbuf as the watermark on top of the top strip on the druid. 
//! If watermark is omitted, it is reset to the normal color. 
{ 
  pgtk2_verify_inited(); 
  if (args) { 
    struct object *o1; 
    get_all_args(NULL,args,"%o",&o1); 
    gnome_druid_page_standard_set_top_watermark( 
                        GNOME_DRUID_PAGE_STANDARD(THIS->obj), 
                        GDK_PIXBUF(get_gobject(o1))); 
  } else 
    gnome_druid_page_standard_set_top_watermark( 
                        GNOME_DRUID_PAGE_STANDARD(THIS->obj),NULL); 
  RETURN_THIS(); 
} 
 
void set_title_foreground(GDK2.Color color) 
//! Sets the title text to the specified color. 
{ 
  pgtk2_verify_inited(); 
  { 
    struct object *o1; 
    GdkColor *color; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_standard_set_title_foreground( 
                        GNOME_DRUID_PAGE_STANDARD(THIS->obj),color); 
  } 
  RETURN_THIS(); 
} 
 
void set_background(GDK2.Color color) 
//! Sets the background color of the top section. 
{ 
  pgtk2_verify_inited(); 
  { 
    struct object *o1; 
    GdkColor *color; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_standard_set_background( 
                        GNOME_DRUID_PAGE_STANDARD(THIS->obj),color); 
  } 
  RETURN_THIS(); 
} 
 
void set_logo_background(GDK2.Color color) 
//! Sets the background color of the logo. 
{ 
  pgtk2_verify_inited(); 
  { 
    struct object *o1; 
    GdkColor *color; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_standard_set_logo_background( 
                        GNOME_DRUID_PAGE_STANDARD(THIS->obj),color); 
  } 
  RETURN_THIS(); 
} 
 
void set_contents_background(GDK2.Color color) 
//! Sets the color of the main contents section's background. 
{ 
  pgtk2_verify_inited(); 
  { 
    struct object *o1; 
    GdkColor *color; 
    get_all_args(NULL,args,"%o",&o1); 
    color=(GdkColor *)get_gdkobject(o1,color); 
    gnome_druid_page_standard_set_contents_background( 
                        GNOME_DRUID_PAGE_STANDARD(THIS->obj),color); 
  } 
  RETURN_THIS(); 
} 
 
void append_item(string question, GTK2.Widget item, 
                 string additional_info); 
//! Convenience function to add a GTK2.Widget to the vbox.  This function 
//! creates a new contents section that has the question text followed by the 
//! item widget and then the additional_info text, all stacked vertically from 
//! top to bottom. 
//! <p> 
//! The item widget could be something like a set of radio checkbuttons 
//! requesting a choice from the user. 
 
endrequire; 
endnot;