~jezra/vattery/trunk

« back to all changes in this revision

Viewing changes to src/configurationGUI.c

  • Committer: jezra
  • Date: 2011-06-03 20:48:34 UTC
  • Revision ID: jezra@jezra.net-20110603204834-bld5on0u8z0dill8
0.7.3?

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* configurationGUI.c generated by valac, the Vala compiler
 
1
/* configurationGUI.c generated by valac 0.11.7, the Vala compiler
2
2
 * generated from configurationGUI.vala, do not modify */
3
3
 
 
4
/*
 
5
 
 
6
this is a part of vattery
 
7
copyright 2011 jezra lickter http://www.jezra.net
 
8
 
 
9
vattery is free software: you can redistribute it and/or modify
 
10
it under the terms of the GNU General Public License as published by
 
11
the Free Software Foundation, either version 3 of the License, or
 
12
(at your option) any later version.
 
13
 
 
14
vattery is distributed in the hope that it will be useful,
 
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
 
17
GNU General Public License for more details.
 
18
 
 
19
You should have received a copy of the GNU General Public License
 
20
along with vattery.     If not, see <http://www.gnu.org/licenses/>.
 
21
 
 
22
*/
4
23
 
5
24
#include <glib.h>
6
25
#include <glib-object.h>
77
96
enum  {
78
97
        PREFERENCES_DUMMY_PROPERTY
79
98
};
 
99
Preferences* preferences_new (void);
 
100
Preferences* preferences_construct (GType object_type);
80
101
void preferences_update_app (Preferences* self);
81
102
static void _preferences_update_app_gtk_button_clicked (GtkButton* _sender, gpointer self);
82
103
void preferences_do_destroy (Preferences* self);
83
104
static void _preferences_do_destroy_gtk_button_clicked (GtkButton* _sender, gpointer self);
84
105
void preferences_destruct (Preferences* self);
85
106
static void _preferences_destruct_gtk_object_destroy (GtkObject* _sender, gpointer self);
86
 
Preferences* preferences_new (void);
87
 
Preferences* preferences_construct (GType object_type);
88
 
void preferences_set_colors (Preferences* self, const char* charging, const char* charged, const char* draining, const char* border, const char* background);
89
 
void preferences_set_warnings (Preferences* self, const char* wp, const char* wc, const char* cp, const char* cc);
 
107
void preferences_set_colors (Preferences* self, const gchar* charging, const gchar* charged, const gchar* draining, const gchar* border, const gchar* background);
 
108
void preferences_set_warnings (Preferences* self, const gchar* wp, const gchar* wc, const gchar* cp, const gchar* cc);
90
109
void preferences_set_text_mode (Preferences* self, gboolean mode);
91
110
void preferences_display (Preferences* self);
 
111
static void g_cclosure_user_marshal_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
92
112
static GObject * preferences_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
93
113
static void preferences_finalize (GObject* obj);
94
114
GType icon_menu_get_type (void) G_GNUC_CONST;
95
115
enum  {
96
116
        ICON_MENU_DUMMY_PROPERTY
97
117
};
 
118
IconMenu* icon_menu_new (void);
 
119
IconMenu* icon_menu_construct (GType object_type);
98
120
static void _lambda0_ (GtkMenuItem* source, IconMenu* self);
99
121
static void __lambda0__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
100
122
static void _lambda1_ (GtkMenuItem* source, IconMenu* self);
101
123
static void __lambda1__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
102
 
IconMenu* icon_menu_new (void);
103
 
IconMenu* icon_menu_construct (GType object_type);
104
 
 
105
 
 
106
 
static void g_cclosure_user_marshal_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data);
 
124
 
107
125
 
108
126
static void _preferences_update_app_gtk_button_clicked (GtkButton* _sender, gpointer self) {
109
127
        preferences_update_app (self);
121
139
 
122
140
 
123
141
Preferences* preferences_construct (GType object_type) {
124
 
        Preferences * self;
 
142
        Preferences * self = NULL;
125
143
        gint table_l;
126
144
        gint table_t;
127
145
        gint table_r;
128
146
        gint table_b;
129
 
        GtkCheckButton* _tmp0_;
 
147
        const gchar* _tmp0_ = NULL;
 
148
        const gchar* _tmp1_ = NULL;
 
149
        GtkCheckButton* _tmp2_ = NULL;
 
150
        GtkVBox* _tmp3_ = NULL;
130
151
        GtkVBox* topVbox;
 
152
        GtkTable* _tmp4_ = NULL;
131
153
        GtkTable* table;
 
154
        const gchar* _tmp5_ = NULL;
 
155
        GtkFrame* _tmp6_ = NULL;
132
156
        GtkFrame* colorsFrame;
133
 
        GtkColorButton* _tmp1_;
134
 
        GtkColorButton* _tmp2_;
135
 
        GtkColorButton* _tmp3_;
136
 
        GtkColorButton* _tmp4_;
137
 
        GtkColorButton* _tmp5_;
138
 
        GtkAlignment* align;
 
157
        GtkColorButton* _tmp7_ = NULL;
 
158
        GtkColorButton* _tmp8_ = NULL;
 
159
        GtkColorButton* _tmp9_ = NULL;
 
160
        GtkColorButton* _tmp10_ = NULL;
 
161
        GtkColorButton* _tmp11_ = NULL;
 
162
        GtkAlignment* align = NULL;
 
163
        const gchar* _tmp12_ = NULL;
 
164
        GtkLabel* _tmp13_ = NULL;
139
165
        GtkLabel* chargingLabel;
140
 
        GtkAlignment* _tmp6_;
 
166
        GtkAlignment* _tmp14_ = NULL;
 
167
        const gchar* _tmp15_ = NULL;
 
168
        GtkLabel* _tmp16_ = NULL;
141
169
        GtkLabel* chargedLabel;
142
 
        GtkAlignment* _tmp7_;
 
170
        GtkAlignment* _tmp17_ = NULL;
 
171
        const gchar* _tmp18_ = NULL;
 
172
        GtkLabel* _tmp19_ = NULL;
143
173
        GtkLabel* drainingLabel;
144
 
        GtkAlignment* _tmp8_;
 
174
        GtkAlignment* _tmp20_ = NULL;
 
175
        const gchar* _tmp21_ = NULL;
 
176
        GtkLabel* _tmp22_ = NULL;
145
177
        GtkLabel* borderLabel;
146
 
        GtkAlignment* _tmp9_;
 
178
        GtkAlignment* _tmp23_ = NULL;
 
179
        const gchar* _tmp24_ = NULL;
 
180
        GtkLabel* _tmp25_ = NULL;
147
181
        GtkLabel* backgroundLabel;
148
 
        GtkAlignment* _tmp10_;
 
182
        GtkAlignment* _tmp26_ = NULL;
 
183
        const gchar* _tmp27_ = NULL;
 
184
        GtkFrame* _tmp28_ = NULL;
149
185
        GtkFrame* warningFrame;
150
 
        GtkTable* _tmp11_;
 
186
        GtkTable* _tmp29_ = NULL;
 
187
        const gchar* _tmp30_ = NULL;
 
188
        GtkLabel* _tmp31_ = NULL;
151
189
        GtkLabel* percentLabel;
152
 
        GtkSpinButton* _tmp12_;
153
 
        GtkAlignment* _tmp13_;
 
190
        GtkSpinButton* _tmp32_ = NULL;
 
191
        GtkAlignment* _tmp33_ = NULL;
 
192
        const gchar* _tmp34_ = NULL;
 
193
        GtkLabel* _tmp35_ = NULL;
154
194
        GtkLabel* commandLabel;
155
 
        GtkEntry* _tmp14_;
 
195
        GtkEntry* _tmp36_ = NULL;
 
196
        const gchar* _tmp37_ = NULL;
 
197
        GtkFrame* _tmp38_ = NULL;
156
198
        GtkFrame* criticalFrame;
157
 
        GtkTable* _tmp15_;
158
 
        GtkLabel* _tmp16_;
159
 
        GtkSpinButton* _tmp17_;
160
 
        GtkAlignment* _tmp18_;
161
 
        GtkLabel* _tmp19_;
162
 
        GtkEntry* _tmp20_;
 
199
        GtkTable* _tmp39_ = NULL;
 
200
        const gchar* _tmp40_ = NULL;
 
201
        GtkLabel* _tmp41_ = NULL;
 
202
        GtkSpinButton* _tmp42_ = NULL;
 
203
        GtkAlignment* _tmp43_ = NULL;
 
204
        const gchar* _tmp44_ = NULL;
 
205
        GtkLabel* _tmp45_ = NULL;
 
206
        GtkEntry* _tmp46_ = NULL;
 
207
        GtkHButtonBox* _tmp47_ = NULL;
163
208
        GtkHButtonBox* bbox;
 
209
        GtkButton* _tmp48_ = NULL;
164
210
        GtkButton* OKButton;
 
211
        GtkButton* _tmp49_ = NULL;
165
212
        GtkButton* cancelButton;
166
 
        self = g_object_newv (object_type, 0, NULL);
 
213
        self = (Preferences*) g_object_new (object_type, NULL);
167
214
        table_l = 0;
168
215
        table_t = 0;
169
216
        table_r = 1;
170
217
        table_b = 1;
171
218
        gtk_window_set_modal ((GtkWindow*) self, TRUE);
172
219
        gtk_window_set_resizable ((GtkWindow*) self, FALSE);
173
 
        gtk_window_set_title ((GtkWindow*) self, _ ("Preferences"));
 
220
        _tmp0_ = _ ("Preferences");
 
221
        gtk_window_set_title ((GtkWindow*) self, _tmp0_);
174
222
        gtk_window_set_deletable ((GtkWindow*) self, FALSE);
175
 
        self->priv->text_modeButton = (_tmp0_ = g_object_ref_sink ((GtkCheckButton*) gtk_check_button_new_with_label (_ ("Text Mode"))), _g_object_unref0 (self->priv->text_modeButton), _tmp0_);
176
 
        topVbox = g_object_ref_sink ((GtkVBox*) gtk_vbox_new (FALSE, 5));
 
223
        _tmp1_ = _ ("Text Mode");
 
224
        _tmp2_ = (GtkCheckButton*) gtk_check_button_new_with_label (_tmp1_);
 
225
        _g_object_unref0 (self->priv->text_modeButton);
 
226
        self->priv->text_modeButton = g_object_ref_sink (_tmp2_);
 
227
        _tmp3_ = (GtkVBox*) gtk_vbox_new (FALSE, 5);
 
228
        topVbox = g_object_ref_sink (_tmp3_);
177
229
        gtk_container_add ((GtkContainer*) topVbox, (GtkWidget*) self->priv->text_modeButton);
178
230
        gtk_container_set_border_width ((GtkContainer*) topVbox, (guint) 3);
179
231
        gtk_container_add ((GtkContainer*) self, (GtkWidget*) topVbox);
180
 
        table = g_object_ref_sink ((GtkTable*) gtk_table_new ((guint) 4, (guint) 2, FALSE));
 
232
        _tmp4_ = (GtkTable*) gtk_table_new ((guint) 4, (guint) 2, FALSE);
 
233
        table = g_object_ref_sink (_tmp4_);
181
234
        gtk_container_set_border_width ((GtkContainer*) table, (guint) 3);
182
235
        gtk_table_set_col_spacings (table, (guint) 3);
183
236
        gtk_table_set_row_spacings (table, (guint) 3);
184
 
        colorsFrame = g_object_ref_sink ((GtkFrame*) gtk_frame_new (_ ("Colors")));
 
237
        _tmp5_ = _ ("Colors");
 
238
        _tmp6_ = (GtkFrame*) gtk_frame_new (_tmp5_);
 
239
        colorsFrame = g_object_ref_sink (_tmp6_);
185
240
        gtk_container_add ((GtkContainer*) colorsFrame, (GtkWidget*) table);
186
 
        self->priv->borderButton = (_tmp1_ = g_object_ref_sink ((GtkColorButton*) gtk_color_button_new ()), _g_object_unref0 (self->priv->borderButton), _tmp1_);
187
 
        self->priv->chargingButton = (_tmp2_ = g_object_ref_sink ((GtkColorButton*) gtk_color_button_new ()), _g_object_unref0 (self->priv->chargingButton), _tmp2_);
188
 
        self->priv->chargedButton = (_tmp3_ = g_object_ref_sink ((GtkColorButton*) gtk_color_button_new ()), _g_object_unref0 (self->priv->chargedButton), _tmp3_);
189
 
        self->priv->drainingButton = (_tmp4_ = g_object_ref_sink ((GtkColorButton*) gtk_color_button_new ()), _g_object_unref0 (self->priv->drainingButton), _tmp4_);
190
 
        self->priv->backgroundButton = (_tmp5_ = g_object_ref_sink ((GtkColorButton*) gtk_color_button_new ()), _g_object_unref0 (self->priv->backgroundButton), _tmp5_);
191
 
        align = NULL;
192
 
        chargingLabel = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Charging:")));
193
 
        gtk_misc_set_alignment ((GtkMisc*) chargingLabel, (float) 0, (float) 0.5);
 
241
        _tmp7_ = (GtkColorButton*) gtk_color_button_new ();
 
242
        _g_object_unref0 (self->priv->borderButton);
 
243
        self->priv->borderButton = g_object_ref_sink (_tmp7_);
 
244
        _tmp8_ = (GtkColorButton*) gtk_color_button_new ();
 
245
        _g_object_unref0 (self->priv->chargingButton);
 
246
        self->priv->chargingButton = g_object_ref_sink (_tmp8_);
 
247
        _tmp9_ = (GtkColorButton*) gtk_color_button_new ();
 
248
        _g_object_unref0 (self->priv->chargedButton);
 
249
        self->priv->chargedButton = g_object_ref_sink (_tmp9_);
 
250
        _tmp10_ = (GtkColorButton*) gtk_color_button_new ();
 
251
        _g_object_unref0 (self->priv->drainingButton);
 
252
        self->priv->drainingButton = g_object_ref_sink (_tmp10_);
 
253
        _tmp11_ = (GtkColorButton*) gtk_color_button_new ();
 
254
        _g_object_unref0 (self->priv->backgroundButton);
 
255
        self->priv->backgroundButton = g_object_ref_sink (_tmp11_);
 
256
        _tmp12_ = _ ("Charging:");
 
257
        _tmp13_ = (GtkLabel*) gtk_label_new (_tmp12_);
 
258
        chargingLabel = g_object_ref_sink (_tmp13_);
 
259
        gtk_misc_set_alignment ((GtkMisc*) chargingLabel, (gfloat) 0, (gfloat) 0.5);
194
260
        gtk_table_attach (table, (GtkWidget*) chargingLabel, (guint) table_l, (guint) table_r, (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
195
 
        align = (_tmp6_ = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0)), _g_object_unref0 (align), _tmp6_);
 
261
        _tmp14_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
 
262
        _g_object_unref0 (align);
 
263
        align = g_object_ref_sink (_tmp14_);
196
264
        gtk_container_add ((GtkContainer*) align, (GtkWidget*) self->priv->chargingButton);
197
265
        gtk_table_attach (table, (GtkWidget*) align, (guint) (table_l + 1), (guint) (table_r + 1), (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
198
266
        table_t = table_t + 1;
199
267
        table_b = table_b + 1;
200
 
        chargedLabel = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Charged:")));
201
 
        gtk_misc_set_alignment ((GtkMisc*) chargedLabel, (float) 0, (float) 0.5);
 
268
        _tmp15_ = _ ("Charged:");
 
269
        _tmp16_ = (GtkLabel*) gtk_label_new (_tmp15_);
 
270
        chargedLabel = g_object_ref_sink (_tmp16_);
 
271
        gtk_misc_set_alignment ((GtkMisc*) chargedLabel, (gfloat) 0, (gfloat) 0.5);
202
272
        gtk_table_attach (table, (GtkWidget*) chargedLabel, (guint) table_l, (guint) table_r, (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
203
 
        align = (_tmp7_ = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0)), _g_object_unref0 (align), _tmp7_);
 
273
        _tmp17_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
 
274
        _g_object_unref0 (align);
 
275
        align = g_object_ref_sink (_tmp17_);
204
276
        gtk_container_add ((GtkContainer*) align, (GtkWidget*) self->priv->chargedButton);
205
277
        gtk_table_attach (table, (GtkWidget*) align, (guint) (table_l + 1), (guint) (table_r + 1), (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
206
278
        table_t = table_t + 1;
207
279
        table_b = table_b + 1;
208
 
        drainingLabel = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Draining:")));
209
 
        gtk_misc_set_alignment ((GtkMisc*) drainingLabel, (float) 0, (float) 0.5);
 
280
        _tmp18_ = _ ("Draining:");
 
281
        _tmp19_ = (GtkLabel*) gtk_label_new (_tmp18_);
 
282
        drainingLabel = g_object_ref_sink (_tmp19_);
 
283
        gtk_misc_set_alignment ((GtkMisc*) drainingLabel, (gfloat) 0, (gfloat) 0.5);
210
284
        gtk_table_attach (table, (GtkWidget*) drainingLabel, (guint) table_l, (guint) table_r, (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
211
 
        align = (_tmp8_ = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0)), _g_object_unref0 (align), _tmp8_);
 
285
        _tmp20_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
 
286
        _g_object_unref0 (align);
 
287
        align = g_object_ref_sink (_tmp20_);
212
288
        gtk_container_add ((GtkContainer*) align, (GtkWidget*) self->priv->drainingButton);
213
289
        gtk_table_attach (table, (GtkWidget*) align, (guint) (table_l + 1), (guint) (table_r + 1), (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
214
290
        table_t = table_t + 1;
215
291
        table_b = table_b + 1;
216
 
        borderLabel = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Border:")));
217
 
        gtk_misc_set_alignment ((GtkMisc*) borderLabel, (float) 0, (float) 0.5);
 
292
        _tmp21_ = _ ("Border:");
 
293
        _tmp22_ = (GtkLabel*) gtk_label_new (_tmp21_);
 
294
        borderLabel = g_object_ref_sink (_tmp22_);
 
295
        gtk_misc_set_alignment ((GtkMisc*) borderLabel, (gfloat) 0, (gfloat) 0.5);
218
296
        gtk_table_attach (table, (GtkWidget*) borderLabel, (guint) table_l, (guint) table_r, (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
219
 
        align = (_tmp9_ = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0)), _g_object_unref0 (align), _tmp9_);
 
297
        _tmp23_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
 
298
        _g_object_unref0 (align);
 
299
        align = g_object_ref_sink (_tmp23_);
220
300
        gtk_container_add ((GtkContainer*) align, (GtkWidget*) self->priv->borderButton);
221
301
        gtk_table_attach (table, (GtkWidget*) align, (guint) (table_l + 1), (guint) (table_r + 1), (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
222
302
        table_t = table_t + 1;
223
303
        table_b = table_b + 1;
224
 
        backgroundLabel = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Background:")));
225
 
        gtk_misc_set_alignment ((GtkMisc*) backgroundLabel, (float) 0, (float) 0.5);
 
304
        _tmp24_ = _ ("Background:");
 
305
        _tmp25_ = (GtkLabel*) gtk_label_new (_tmp24_);
 
306
        backgroundLabel = g_object_ref_sink (_tmp25_);
 
307
        gtk_misc_set_alignment ((GtkMisc*) backgroundLabel, (gfloat) 0, (gfloat) 0.5);
226
308
        gtk_table_attach (table, (GtkWidget*) backgroundLabel, (guint) table_l, (guint) table_r, (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
227
 
        align = (_tmp10_ = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0)), _g_object_unref0 (align), _tmp10_);
 
309
        _tmp26_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
 
310
        _g_object_unref0 (align);
 
311
        align = g_object_ref_sink (_tmp26_);
228
312
        gtk_container_add ((GtkContainer*) align, (GtkWidget*) self->priv->backgroundButton);
229
313
        gtk_table_attach (table, (GtkWidget*) align, (guint) (table_l + 1), (guint) (table_r + 1), (guint) table_t, (guint) table_b, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
230
314
        gtk_container_add ((GtkContainer*) topVbox, (GtkWidget*) colorsFrame);
231
 
        warningFrame = g_object_ref_sink ((GtkFrame*) gtk_frame_new (_ ("Warning")));
 
315
        _tmp27_ = _ ("Warning");
 
316
        _tmp28_ = (GtkFrame*) gtk_frame_new (_tmp27_);
 
317
        warningFrame = g_object_ref_sink (_tmp28_);
232
318
        gtk_container_add ((GtkContainer*) topVbox, (GtkWidget*) warningFrame);
233
 
        table = (_tmp11_ = g_object_ref_sink ((GtkTable*) gtk_table_new ((guint) 2, (guint) 2, FALSE)), _g_object_unref0 (table), _tmp11_);
 
319
        _tmp29_ = (GtkTable*) gtk_table_new ((guint) 2, (guint) 2, FALSE);
 
320
        _g_object_unref0 (table);
 
321
        table = g_object_ref_sink (_tmp29_);
234
322
        gtk_container_set_border_width ((GtkContainer*) table, (guint) 3);
235
323
        gtk_table_set_col_spacings (table, (guint) 3);
236
324
        gtk_table_set_row_spacings (table, (guint) 3);
237
325
        gtk_container_add ((GtkContainer*) warningFrame, (GtkWidget*) table);
238
 
        percentLabel = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Percent:")));
239
 
        gtk_misc_set_alignment ((GtkMisc*) percentLabel, (float) 0, (float) 0.5);
 
326
        _tmp30_ = _ ("Percent:");
 
327
        _tmp31_ = (GtkLabel*) gtk_label_new (_tmp30_);
 
328
        percentLabel = g_object_ref_sink (_tmp31_);
 
329
        gtk_misc_set_alignment ((GtkMisc*) percentLabel, (gfloat) 0, (gfloat) 0.5);
240
330
        gtk_table_attach (table, (GtkWidget*) percentLabel, (guint) 0, (guint) 1, (guint) 0, (guint) 1, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
241
 
        self->priv->warningPercent = (_tmp12_ = g_object_ref_sink ((GtkSpinButton*) gtk_spin_button_new_with_range ((double) 0, (double) 100, (double) 1)), _g_object_unref0 (self->priv->warningPercent), _tmp12_);
242
 
        align = (_tmp13_ = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0)), _g_object_unref0 (align), _tmp13_);
 
331
        _tmp32_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 100, (gdouble) 1);
 
332
        _g_object_unref0 (self->priv->warningPercent);
 
333
        self->priv->warningPercent = g_object_ref_sink (_tmp32_);
 
334
        _tmp33_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
 
335
        _g_object_unref0 (align);
 
336
        align = g_object_ref_sink (_tmp33_);
243
337
        gtk_container_add ((GtkContainer*) align, (GtkWidget*) self->priv->warningPercent);
244
338
        gtk_table_attach (table, (GtkWidget*) align, (guint) 1, (guint) 2, (guint) 0, (guint) 1, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
245
 
        commandLabel = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Command:")));
246
 
        gtk_misc_set_alignment ((GtkMisc*) commandLabel, (float) 0, (float) 0);
 
339
        _tmp34_ = _ ("Command:");
 
340
        _tmp35_ = (GtkLabel*) gtk_label_new (_tmp34_);
 
341
        commandLabel = g_object_ref_sink (_tmp35_);
 
342
        gtk_misc_set_alignment ((GtkMisc*) commandLabel, (gfloat) 0, (gfloat) 0);
247
343
        gtk_table_attach (table, (GtkWidget*) commandLabel, (guint) 0, (guint) 1, (guint) 1, (guint) 2, GTK_EXPAND, GTK_EXPAND, (guint) 0, (guint) 0);
248
 
        self->priv->warningCommand = (_tmp14_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->warningCommand), _tmp14_);
 
344
        _tmp36_ = (GtkEntry*) gtk_entry_new ();
 
345
        _g_object_unref0 (self->priv->warningCommand);
 
346
        self->priv->warningCommand = g_object_ref_sink (_tmp36_);
249
347
        gtk_table_attach (table, (GtkWidget*) self->priv->warningCommand, (guint) 1, (guint) 2, (guint) 1, (guint) 2, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
250
 
        criticalFrame = g_object_ref_sink ((GtkFrame*) gtk_frame_new (_ ("Critical")));
 
348
        _tmp37_ = _ ("Critical");
 
349
        _tmp38_ = (GtkFrame*) gtk_frame_new (_tmp37_);
 
350
        criticalFrame = g_object_ref_sink (_tmp38_);
251
351
        gtk_container_add ((GtkContainer*) topVbox, (GtkWidget*) criticalFrame);
252
 
        table = (_tmp15_ = g_object_ref_sink ((GtkTable*) gtk_table_new ((guint) 2, (guint) 2, FALSE)), _g_object_unref0 (table), _tmp15_);
 
352
        _tmp39_ = (GtkTable*) gtk_table_new ((guint) 2, (guint) 2, FALSE);
 
353
        _g_object_unref0 (table);
 
354
        table = g_object_ref_sink (_tmp39_);
253
355
        gtk_container_set_border_width ((GtkContainer*) table, (guint) 3);
254
356
        gtk_table_set_col_spacings (table, (guint) 3);
255
357
        gtk_table_set_row_spacings (table, (guint) 3);
256
358
        gtk_container_add ((GtkContainer*) criticalFrame, (GtkWidget*) table);
257
 
        percentLabel = (_tmp16_ = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Percent:"))), _g_object_unref0 (percentLabel), _tmp16_);
258
 
        gtk_misc_set_alignment ((GtkMisc*) percentLabel, (float) 0, (float) 0.5);
 
359
        _tmp40_ = _ ("Percent:");
 
360
        _tmp41_ = (GtkLabel*) gtk_label_new (_tmp40_);
 
361
        _g_object_unref0 (percentLabel);
 
362
        percentLabel = g_object_ref_sink (_tmp41_);
 
363
        gtk_misc_set_alignment ((GtkMisc*) percentLabel, (gfloat) 0, (gfloat) 0.5);
259
364
        gtk_table_attach (table, (GtkWidget*) percentLabel, (guint) 0, (guint) 1, (guint) 0, (guint) 1, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
260
 
        self->priv->criticalPercent = (_tmp17_ = g_object_ref_sink ((GtkSpinButton*) gtk_spin_button_new_with_range ((double) 0, (double) 100, (double) 1)), _g_object_unref0 (self->priv->criticalPercent), _tmp17_);
261
 
        align = (_tmp18_ = g_object_ref_sink ((GtkAlignment*) gtk_alignment_new ((float) 0, (float) 0, (float) 0, (float) 0)), _g_object_unref0 (align), _tmp18_);
 
365
        _tmp42_ = (GtkSpinButton*) gtk_spin_button_new_with_range ((gdouble) 0, (gdouble) 100, (gdouble) 1);
 
366
        _g_object_unref0 (self->priv->criticalPercent);
 
367
        self->priv->criticalPercent = g_object_ref_sink (_tmp42_);
 
368
        _tmp43_ = (GtkAlignment*) gtk_alignment_new ((gfloat) 0, (gfloat) 0, (gfloat) 0, (gfloat) 0);
 
369
        _g_object_unref0 (align);
 
370
        align = g_object_ref_sink (_tmp43_);
262
371
        gtk_container_add ((GtkContainer*) align, (GtkWidget*) self->priv->criticalPercent);
263
372
        gtk_table_attach (table, (GtkWidget*) align, (guint) 1, (guint) 2, (guint) 0, (guint) 1, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
264
 
        commandLabel = (_tmp19_ = g_object_ref_sink ((GtkLabel*) gtk_label_new (_ ("Command:"))), _g_object_unref0 (commandLabel), _tmp19_);
265
 
        gtk_misc_set_alignment ((GtkMisc*) commandLabel, (float) 0, (float) 0);
 
373
        _tmp44_ = _ ("Command:");
 
374
        _tmp45_ = (GtkLabel*) gtk_label_new (_tmp44_);
 
375
        _g_object_unref0 (commandLabel);
 
376
        commandLabel = g_object_ref_sink (_tmp45_);
 
377
        gtk_misc_set_alignment ((GtkMisc*) commandLabel, (gfloat) 0, (gfloat) 0);
266
378
        gtk_table_attach (table, (GtkWidget*) commandLabel, (guint) 0, (guint) 1, (guint) 1, (guint) 2, GTK_EXPAND, GTK_EXPAND, (guint) 0, (guint) 0);
267
 
        self->priv->criticalCommand = (_tmp20_ = g_object_ref_sink ((GtkEntry*) gtk_entry_new ()), _g_object_unref0 (self->priv->criticalCommand), _tmp20_);
 
379
        _tmp46_ = (GtkEntry*) gtk_entry_new ();
 
380
        _g_object_unref0 (self->priv->criticalCommand);
 
381
        self->priv->criticalCommand = g_object_ref_sink (_tmp46_);
268
382
        gtk_table_attach (table, (GtkWidget*) self->priv->criticalCommand, (guint) 1, (guint) 2, (guint) 1, (guint) 2, GTK_FILL, GTK_FILL, (guint) 0, (guint) 0);
269
 
        bbox = g_object_ref_sink ((GtkHButtonBox*) gtk_hbutton_box_new ());
 
383
        _tmp47_ = (GtkHButtonBox*) gtk_hbutton_box_new ();
 
384
        bbox = g_object_ref_sink (_tmp47_);
270
385
        gtk_button_box_set_layout ((GtkButtonBox*) bbox, GTK_BUTTONBOX_END);
271
386
        gtk_container_add ((GtkContainer*) topVbox, (GtkWidget*) bbox);
272
 
        OKButton = g_object_ref_sink ((GtkButton*) gtk_button_new_from_stock (GTK_STOCK_OK));
 
387
        _tmp48_ = (GtkButton*) gtk_button_new_from_stock (GTK_STOCK_OK);
 
388
        OKButton = g_object_ref_sink (_tmp48_);
273
389
        g_signal_connect_object (OKButton, "clicked", (GCallback) _preferences_update_app_gtk_button_clicked, self, 0);
274
390
        gtk_container_add ((GtkContainer*) bbox, (GtkWidget*) OKButton);
275
 
        cancelButton = g_object_ref_sink ((GtkButton*) gtk_button_new_from_stock (GTK_STOCK_CANCEL));
 
391
        _tmp49_ = (GtkButton*) gtk_button_new_from_stock (GTK_STOCK_CANCEL);
 
392
        cancelButton = g_object_ref_sink (_tmp49_);
276
393
        g_signal_connect_object (cancelButton, "clicked", (GCallback) _preferences_do_destroy_gtk_button_clicked, self, 0);
277
394
        gtk_container_add ((GtkContainer*) bbox, (GtkWidget*) cancelButton);
278
395
        gtk_container_set_border_width ((GtkContainer*) self, (guint) 5);
279
396
        gtk_widget_show_all ((GtkWidget*) self);
280
397
        g_signal_connect_object ((GtkObject*) self, "destroy", (GCallback) _preferences_destruct_gtk_object_destroy, self, 0);
 
398
        _g_object_unref0 (cancelButton);
 
399
        _g_object_unref0 (OKButton);
 
400
        _g_object_unref0 (bbox);
 
401
        _g_object_unref0 (criticalFrame);
 
402
        _g_object_unref0 (commandLabel);
 
403
        _g_object_unref0 (percentLabel);
 
404
        _g_object_unref0 (warningFrame);
 
405
        _g_object_unref0 (backgroundLabel);
 
406
        _g_object_unref0 (borderLabel);
 
407
        _g_object_unref0 (drainingLabel);
 
408
        _g_object_unref0 (chargedLabel);
 
409
        _g_object_unref0 (chargingLabel);
 
410
        _g_object_unref0 (align);
 
411
        _g_object_unref0 (colorsFrame);
 
412
        _g_object_unref0 (table);
281
413
        _g_object_unref0 (topVbox);
282
 
        _g_object_unref0 (table);
283
 
        _g_object_unref0 (colorsFrame);
284
 
        _g_object_unref0 (align);
285
 
        _g_object_unref0 (chargingLabel);
286
 
        _g_object_unref0 (chargedLabel);
287
 
        _g_object_unref0 (drainingLabel);
288
 
        _g_object_unref0 (borderLabel);
289
 
        _g_object_unref0 (backgroundLabel);
290
 
        _g_object_unref0 (warningFrame);
291
 
        _g_object_unref0 (percentLabel);
292
 
        _g_object_unref0 (commandLabel);
293
 
        _g_object_unref0 (criticalFrame);
294
 
        _g_object_unref0 (bbox);
295
 
        _g_object_unref0 (OKButton);
296
 
        _g_object_unref0 (cancelButton);
297
414
        return self;
298
415
}
299
416
 
303
420
}
304
421
 
305
422
 
306
 
static char* double_to_string (double self) {
307
 
        char* result = NULL;
308
 
        gint _tmp0__length1;
309
 
        gchar* _tmp0_;
310
 
        char* _tmp1_;
311
 
        result = (_tmp1_ = g_strdup (g_ascii_dtostr ((_tmp0_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE), _tmp0__length1 = G_ASCII_DTOSTR_BUF_SIZE, _tmp0_), G_ASCII_DTOSTR_BUF_SIZE, self)), _tmp0_ = (g_free (_tmp0_), NULL), _tmp1_);
 
423
static gchar* double_to_string (gdouble self) {
 
424
        gchar* result = NULL;
 
425
        gchar* _tmp0_ = NULL;
 
426
        gchar* _tmp1_;
 
427
        gint _tmp1__length1;
 
428
        const gchar* _tmp2_ = NULL;
 
429
        gchar* _tmp3_;
 
430
        gchar* _tmp4_;
 
431
        _tmp0_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
 
432
        _tmp1_ = _tmp0_;
 
433
        _tmp1__length1 = G_ASCII_DTOSTR_BUF_SIZE;
 
434
        _tmp2_ = g_ascii_dtostr (_tmp1_, G_ASCII_DTOSTR_BUF_SIZE, self);
 
435
        _tmp3_ = g_strdup (_tmp2_);
 
436
        _tmp4_ = _tmp3_;
 
437
        _tmp1_ = (g_free (_tmp1_), NULL);
 
438
        result = _tmp4_;
312
439
        return result;
313
440
}
314
441
 
319
446
        GdkColor draining = {0};
320
447
        GdkColor border = {0};
321
448
        GdkColor background = {0};
322
 
        char* wp;
323
 
        char* wc;
324
 
        char* cp;
325
 
        char* cc;
 
449
        GdkColor _tmp0_ = {0};
 
450
        GdkColor _tmp1_ = {0};
 
451
        GdkColor _tmp2_ = {0};
 
452
        GdkColor _tmp3_ = {0};
 
453
        GdkColor _tmp4_ = {0};
 
454
        gdouble _tmp5_;
 
455
        gchar* _tmp6_ = NULL;
 
456
        gchar* wp;
 
457
        const gchar* _tmp7_ = NULL;
 
458
        gchar* _tmp8_;
 
459
        gchar* wc;
 
460
        gdouble _tmp9_;
 
461
        gchar* _tmp10_ = NULL;
 
462
        gchar* cp;
 
463
        const gchar* _tmp11_ = NULL;
 
464
        gchar* _tmp12_;
 
465
        gchar* cc;
 
466
        gboolean _tmp13_;
326
467
        gboolean text_mode;
327
468
        g_return_if_fail (self != NULL);
328
 
        gtk_color_button_get_color (self->priv->chargingButton, &charging);
329
 
        gtk_color_button_get_color (self->priv->chargedButton, &charged);
330
 
        gtk_color_button_get_color (self->priv->drainingButton, &draining);
331
 
        gtk_color_button_get_color (self->priv->borderButton, &border);
332
 
        gtk_color_button_get_color (self->priv->backgroundButton, &background);
333
 
        wp = double_to_string (gtk_spin_button_get_value (self->priv->warningPercent));
334
 
        wc = g_strdup (gtk_entry_get_text (self->priv->warningCommand));
335
 
        cp = double_to_string (gtk_spin_button_get_value (self->priv->criticalPercent));
336
 
        cc = g_strdup (gtk_entry_get_text (self->priv->criticalCommand));
337
 
        text_mode = gtk_toggle_button_get_active ((GtkToggleButton*) self->priv->text_modeButton);
 
469
        gtk_color_button_get_color (self->priv->chargingButton, &_tmp0_);
 
470
        charging = _tmp0_;
 
471
        gtk_color_button_get_color (self->priv->chargedButton, &_tmp1_);
 
472
        charged = _tmp1_;
 
473
        gtk_color_button_get_color (self->priv->drainingButton, &_tmp2_);
 
474
        draining = _tmp2_;
 
475
        gtk_color_button_get_color (self->priv->borderButton, &_tmp3_);
 
476
        border = _tmp3_;
 
477
        gtk_color_button_get_color (self->priv->backgroundButton, &_tmp4_);
 
478
        background = _tmp4_;
 
479
        _tmp5_ = gtk_spin_button_get_value (self->priv->warningPercent);
 
480
        _tmp6_ = double_to_string (_tmp5_);
 
481
        wp = _tmp6_;
 
482
        _tmp7_ = gtk_entry_get_text (self->priv->warningCommand);
 
483
        _tmp8_ = g_strdup (_tmp7_);
 
484
        wc = _tmp8_;
 
485
        _tmp9_ = gtk_spin_button_get_value (self->priv->criticalPercent);
 
486
        _tmp10_ = double_to_string (_tmp9_);
 
487
        cp = _tmp10_;
 
488
        _tmp11_ = gtk_entry_get_text (self->priv->criticalCommand);
 
489
        _tmp12_ = g_strdup (_tmp11_);
 
490
        cc = _tmp12_;
 
491
        _tmp13_ = gtk_toggle_button_get_active ((GtkToggleButton*) self->priv->text_modeButton);
 
492
        text_mode = _tmp13_;
338
493
        g_signal_emit_by_name (self, "emit-preferences", &charging, &charged, &draining, &border, &background, wp, wc, cp, cc, text_mode);
339
494
        gtk_object_destroy ((GtkObject*) self);
340
495
        _g_free0 (cc);
356
511
}
357
512
 
358
513
 
359
 
void preferences_set_colors (Preferences* self, const char* charging, const char* charged, const char* draining, const char* border, const char* background) {
 
514
void preferences_set_colors (Preferences* self, const gchar* charging, const gchar* charged, const gchar* draining, const gchar* border, const gchar* background) {
360
515
        GdkColor color = {0};
 
516
        GdkColor _tmp0_ = {0};
 
517
        GdkColor _tmp1_ = {0};
 
518
        GdkColor _tmp2_ = {0};
 
519
        GdkColor _tmp3_ = {0};
 
520
        GdkColor _tmp4_ = {0};
361
521
        g_return_if_fail (self != NULL);
362
522
        g_return_if_fail (charging != NULL);
363
523
        g_return_if_fail (charged != NULL);
364
524
        g_return_if_fail (draining != NULL);
365
525
        g_return_if_fail (border != NULL);
366
526
        g_return_if_fail (background != NULL);
367
 
        gdk_color_parse (charging, &color);
 
527
        gdk_color_parse (charging, &_tmp0_);
 
528
        color = _tmp0_;
368
529
        gtk_color_button_set_color (self->priv->chargingButton, &color);
369
 
        gdk_color_parse (charged, &color);
 
530
        gdk_color_parse (charged, &_tmp1_);
 
531
        color = _tmp1_;
370
532
        gtk_color_button_set_color (self->priv->chargedButton, &color);
371
 
        gdk_color_parse (draining, &color);
 
533
        gdk_color_parse (draining, &_tmp2_);
 
534
        color = _tmp2_;
372
535
        gtk_color_button_set_color (self->priv->drainingButton, &color);
373
 
        gdk_color_parse (border, &color);
 
536
        gdk_color_parse (border, &_tmp3_);
 
537
        color = _tmp3_;
374
538
        gtk_color_button_set_color (self->priv->borderButton, &color);
375
 
        gdk_color_parse (background, &color);
 
539
        gdk_color_parse (background, &_tmp4_);
 
540
        color = _tmp4_;
376
541
        gtk_color_button_set_color (self->priv->backgroundButton, &color);
377
542
}
378
543
 
379
544
 
380
 
void preferences_set_warnings (Preferences* self, const char* wp, const char* wc, const char* cp, const char* cc) {
 
545
void preferences_set_warnings (Preferences* self, const gchar* wp, const gchar* wc, const gchar* cp, const gchar* cc) {
 
546
        gint _tmp0_;
 
547
        gint _tmp1_;
381
548
        g_return_if_fail (self != NULL);
382
549
        g_return_if_fail (wp != NULL);
383
550
        g_return_if_fail (wc != NULL);
384
551
        g_return_if_fail (cp != NULL);
385
552
        g_return_if_fail (cc != NULL);
386
 
        gtk_spin_button_set_value (self->priv->warningPercent, (double) atoi (wp));
387
 
        gtk_spin_button_set_value (self->priv->criticalPercent, (double) atoi (cp));
 
553
        _tmp0_ = atoi (wp);
 
554
        gtk_spin_button_set_value (self->priv->warningPercent, (gdouble) _tmp0_);
 
555
        _tmp1_ = atoi (cp);
 
556
        gtk_spin_button_set_value (self->priv->criticalPercent, (gdouble) _tmp1_);
388
557
        gtk_entry_set_text (self->priv->warningCommand, wc);
389
558
        gtk_entry_set_text (self->priv->criticalCommand, cc);
390
559
}
402
571
}
403
572
 
404
573
 
 
574
static void g_cclosure_user_marshal_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
 
575
        typedef void (*GMarshalFunc_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer arg_4, gpointer arg_5, const char* arg_6, const char* arg_7, const char* arg_8, const char* arg_9, gboolean arg_10, gpointer data2);
 
576
        register GMarshalFunc_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN callback;
 
577
        register GCClosure * cc;
 
578
        register gpointer data1, data2;
 
579
        cc = (GCClosure *) closure;
 
580
        g_return_if_fail (n_param_values == 11);
 
581
        if (G_CCLOSURE_SWAP_DATA (closure)) {
 
582
                data1 = closure->data;
 
583
                data2 = param_values->data[0].v_pointer;
 
584
        } else {
 
585
                data1 = param_values->data[0].v_pointer;
 
586
                data2 = closure->data;
 
587
        }
 
588
        callback = (GMarshalFunc_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
 
589
        callback (data1, g_value_get_boxed (param_values + 1), g_value_get_boxed (param_values + 2), g_value_get_boxed (param_values + 3), g_value_get_boxed (param_values + 4), g_value_get_boxed (param_values + 5), g_value_get_string (param_values + 6), g_value_get_string (param_values + 7), g_value_get_string (param_values + 8), g_value_get_string (param_values + 9), g_value_get_boolean (param_values + 10), data2);
 
590
}
 
591
 
 
592
 
405
593
static GObject * preferences_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
406
594
        GObject * obj;
407
595
        GObjectClass * parent_class;
409
597
        parent_class = G_OBJECT_CLASS (preferences_parent_class);
410
598
        obj = parent_class->constructor (type, n_construct_properties, construct_properties);
411
599
        self = PREFERENCES (obj);
412
 
        {
413
 
                g_object_set ((GtkWindow*) self, "type", GTK_WINDOW_TOPLEVEL, NULL);
414
 
        }
 
600
        g_object_set ((GtkWindow*) self, "type", GTK_WINDOW_TOPLEVEL, NULL);
415
601
        return obj;
416
602
}
417
603
 
483
669
 
484
670
 
485
671
IconMenu* icon_menu_construct (GType object_type) {
486
 
        IconMenu * self;
 
672
        IconMenu * self = NULL;
 
673
        GtkImageMenuItem* _tmp0_ = NULL;
487
674
        GtkImageMenuItem* menuItem;
488
 
        GtkImageMenuItem* _tmp0_;
489
 
        self = g_object_newv (object_type, 0, NULL);
490
 
        menuItem = g_object_ref_sink ((GtkImageMenuItem*) gtk_image_menu_item_new_from_stock (GTK_STOCK_PREFERENCES, NULL));
 
675
        GtkImageMenuItem* _tmp1_ = NULL;
 
676
        self = (IconMenu*) g_object_new (object_type, NULL);
 
677
        _tmp0_ = (GtkImageMenuItem*) gtk_image_menu_item_new_from_stock (GTK_STOCK_PREFERENCES, NULL);
 
678
        menuItem = g_object_ref_sink (_tmp0_);
491
679
        g_signal_connect_object ((GtkMenuItem*) menuItem, "activate", (GCallback) __lambda0__gtk_menu_item_activate, self, 0);
492
680
        gtk_menu_shell_append ((GtkMenuShell*) self, (GtkWidget*) ((GtkMenuItem*) menuItem));
493
 
        menuItem = (_tmp0_ = g_object_ref_sink ((GtkImageMenuItem*) gtk_image_menu_item_new_from_stock (GTK_STOCK_ABOUT, NULL)), _g_object_unref0 (menuItem), _tmp0_);
 
681
        _tmp1_ = (GtkImageMenuItem*) gtk_image_menu_item_new_from_stock (GTK_STOCK_ABOUT, NULL);
 
682
        _g_object_unref0 (menuItem);
 
683
        menuItem = g_object_ref_sink (_tmp1_);
494
684
        g_signal_connect_object ((GtkMenuItem*) menuItem, "activate", (GCallback) __lambda1__gtk_menu_item_activate, self, 0);
495
685
        gtk_menu_shell_append ((GtkMenuShell*) self, (GtkWidget*) ((GtkMenuItem*) menuItem));
496
686
        gtk_widget_show_all ((GtkWidget*) self);
528
718
 
529
719
 
530
720
 
531
 
static void g_cclosure_user_marshal_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN (GClosure * closure, GValue * return_value, guint n_param_values, const GValue * param_values, gpointer invocation_hint, gpointer marshal_data) {
532
 
        typedef void (*GMarshalFunc_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN) (gpointer data1, gpointer arg_1, gpointer arg_2, gpointer arg_3, gpointer arg_4, gpointer arg_5, const char* arg_6, const char* arg_7, const char* arg_8, const char* arg_9, gboolean arg_10, gpointer data2);
533
 
        register GMarshalFunc_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN callback;
534
 
        register GCClosure * cc;
535
 
        register gpointer data1, data2;
536
 
        cc = (GCClosure *) closure;
537
 
        g_return_if_fail (n_param_values == 11);
538
 
        if (G_CCLOSURE_SWAP_DATA (closure)) {
539
 
                data1 = closure->data;
540
 
                data2 = param_values->data[0].v_pointer;
541
 
        } else {
542
 
                data1 = param_values->data[0].v_pointer;
543
 
                data2 = closure->data;
544
 
        }
545
 
        callback = (GMarshalFunc_VOID__BOXED_BOXED_BOXED_BOXED_BOXED_STRING_STRING_STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
546
 
        callback (data1, g_value_get_boxed (param_values + 1), g_value_get_boxed (param_values + 2), g_value_get_boxed (param_values + 3), g_value_get_boxed (param_values + 4), g_value_get_boxed (param_values + 5), g_value_get_string (param_values + 6), g_value_get_string (param_values + 7), g_value_get_string (param_values + 8), g_value_get_string (param_values + 9), g_value_get_boolean (param_values + 10), data2);
547
 
}
548
 
 
549
 
 
550