123
141
Preferences* preferences_construct (GType object_type) {
142
Preferences * self = NULL;
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;
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_;
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;
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;
195
GtkEntry* _tmp36_ = NULL;
196
const gchar* _tmp37_ = NULL;
197
GtkFrame* _tmp38_ = NULL;
156
198
GtkFrame* criticalFrame;
159
GtkSpinButton* _tmp17_;
160
GtkAlignment* _tmp18_;
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);
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_);
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);