~ubuntu-branches/ubuntu/wily/gnome-clocks/wily

« back to all changes in this revision

Viewing changes to src/widgets.c

  • Committer: Package Import Robot
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2014-04-26 14:07:08 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140426140708-euqcmzw3gbvtx4vp
Tags: 3.12.0-2
* debian/control.in:
  + Bump libgtk-3-dev to 3.12, needed for GtkActionBar.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* widgets.c generated by valac 0.22.0.21-8a007, the Vala compiler
 
1
/* widgets.c generated by valac 0.23.2.8-1c94, the Vala compiler
2
2
 * generated from widgets.vala, do not modify */
3
3
 
4
4
/*
98
98
 
99
99
#define CLOCKS_ICON_VIEW_TYPE_COLUMN (clocks_icon_view_column_get_type ())
100
100
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
101
 
typedef struct _Block7Data Block7Data;
 
101
typedef struct _Block6Data Block6Data;
102
102
#define __g_list_free__gtk_tree_path_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__gtk_tree_path_free0_ (var), NULL)))
103
103
 
104
104
#define CLOCKS_TYPE_CONTENT_VIEW (clocks_content_view_get_type ())
111
111
typedef struct _ClocksContentView ClocksContentView;
112
112
typedef struct _ClocksContentViewClass ClocksContentViewClass;
113
113
typedef struct _ClocksContentViewPrivate ClocksContentViewPrivate;
114
 
typedef struct _Block8Data Block8Data;
 
114
typedef struct _Block7Data Block7Data;
115
115
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
116
116
 
117
117
#define CLOCKS_TYPE_AM_PM_TOGGLE_BUTTON (clocks_am_pm_toggle_button_get_type ())
230
230
        CLOCKS_ICON_VIEW_COLUMN_COLUMNS
231
231
} ClocksIconViewColumn;
232
232
 
233
 
struct _Block7Data {
 
233
struct _Block6Data {
234
234
        int _ref_count_;
235
 
        ClocksIconView * self;
 
235
        ClocksIconView* self;
236
236
        GList* items;
237
237
};
238
238
 
256
256
        GMenuModel* selection_menu;
257
257
        GtkMenuButton* selection_menubutton;
258
258
        GtkLabel* selection_menubutton_label;
259
 
        GtkFrame* selection_toolbar;
260
259
        GtkGrid* grid;
261
 
        GtkRevealer* revealer;
262
260
        GtkButton* delete_button;
263
261
};
264
262
 
265
 
struct _Block8Data {
 
263
struct _Block7Data {
266
264
        int _ref_count_;
267
 
        ClocksContentView * self;
 
265
        ClocksContentView* self;
 
266
        GtkActionBar* action_bar;
268
267
        GtkTreeModel* model;
269
268
};
270
269
 
391
390
GType clocks_icon_view_column_get_type (void) G_GNUC_CONST;
392
391
ClocksIconView* clocks_icon_view_new (void);
393
392
ClocksIconView* clocks_icon_view_construct (GType object_type);
394
 
static void __lambda2_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter);
395
 
static void ___lambda2__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
396
 
static void __lambda3_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter);
397
 
static void ___lambda3__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
 
393
static void __lambda4_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter);
 
394
static void ___lambda4__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
 
395
static void __lambda5_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter);
 
396
static void ___lambda5__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
398
397
static gboolean clocks_icon_view_real_button_press_event (GtkWidget* base, GdkEventButton* event);
399
398
void clocks_icon_view_set_mode (ClocksIconView* self, ClocksIconViewMode value);
400
399
ClocksIconViewMode clocks_icon_view_get_mode (ClocksIconView* self);
401
400
void clocks_icon_view_add_item (ClocksIconView* self, GObject* item);
402
401
void clocks_icon_view_prepend (ClocksIconView* self, GObject* item);
403
402
GList* clocks_icon_view_get_selected_items (ClocksIconView* self);
404
 
static Block7Data* block7_data_ref (Block7Data* _data7_);
 
403
static Block6Data* block6_data_ref (Block6Data* _data6_);
405
404
static void _gtk_tree_path_free0_ (gpointer var);
406
405
static void _g_list_free__gtk_tree_path_free0_ (GList* self);
407
 
static void block7_data_unref (void * _userdata_);
408
 
static gboolean __lambda5_ (Block7Data* _data7_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
409
 
static gboolean ___lambda5__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
 
406
static void block6_data_unref (void * _userdata_);
 
407
static gboolean __lambda7_ (Block6Data* _data6_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
 
408
static gboolean ___lambda7__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
410
409
void clocks_icon_view_select_all (ClocksIconView* self);
 
410
static gboolean __lambda8_ (ClocksIconView* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
 
411
static gboolean ___lambda8__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
 
412
void clocks_icon_view_unselect_all (ClocksIconView* self);
411
413
static gboolean __lambda6_ (ClocksIconView* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
412
414
static gboolean ___lambda6__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
413
 
void clocks_icon_view_unselect_all (ClocksIconView* self);
414
 
static gboolean __lambda4_ (ClocksIconView* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter);
415
 
static gboolean ___lambda4__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
416
415
void clocks_icon_view_remove_selected (ClocksIconView* self);
417
416
static void clocks_icon_view_finalize (GObject* obj);
418
417
static void _vala_clocks_icon_view_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
425
424
};
426
425
ClocksContentView* clocks_content_view_new (GtkWidget* e, ClocksHeaderBar* b);
427
426
ClocksContentView* clocks_content_view_construct (GType object_type, GtkWidget* e, ClocksHeaderBar* b);
428
 
static Block8Data* block8_data_ref (Block8Data* _data8_);
429
 
static void block8_data_unref (void * _userdata_);
430
 
static void __lambda7_ (ClocksContentView* self);
431
 
static void ___lambda7__gtk_button_clicked (GtkButton* _sender, gpointer self);
432
 
static void __lambda8_ (ClocksContentView* self);
433
 
static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self);
 
427
static Block7Data* block7_data_ref (Block7Data* _data7_);
 
428
static void block7_data_unref (void * _userdata_);
 
429
static void __lambda9_ (ClocksContentView* self);
 
430
static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self);
 
431
static void __lambda10_ (ClocksContentView* self);
 
432
static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self);
434
433
GtkBuilder* clocks_utils_load_ui (const gchar* ui);
435
 
static GtkFrame* clocks_content_view_create_selection_toolbar (ClocksContentView* self);
436
 
static void __lambda10_ (Block8Data* _data8_);
 
434
static void __lambda11_ (ClocksContentView* self);
 
435
static void ___lambda11__gtk_button_clicked (GtkButton* _sender, gpointer self);
 
436
static void __lambda12_ (Block7Data* _data7_);
437
437
static void clocks_content_view_update_empty_view (ClocksContentView* self, GtkTreeModel* model);
438
 
static void ___lambda10__gtk_tree_model_row_inserted (GtkTreeModel* _sender, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
439
 
static void __lambda11_ (Block8Data* _data8_);
440
 
static void ___lambda11__gtk_tree_model_row_deleted (GtkTreeModel* _sender, GtkTreePath* path, gpointer self);
441
 
static void __lambda12_ (ClocksContentView* self);
442
 
static void ___lambda12__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
443
 
static void __lambda13_ (ClocksContentView* self);
444
 
static void ___lambda13__gtk_icon_view_selection_changed (GtkIconView* _sender, gpointer self);
445
 
static void __lambda14_ (ClocksContentView* self, GtkTreePath* path);
446
 
static void ___lambda14__gtk_icon_view_item_activated (GtkIconView* _sender, GtkTreePath* path, gpointer self);
447
 
static void __lambda9_ (ClocksContentView* self);
448
 
static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self);
 
438
static void ___lambda12__gtk_tree_model_row_inserted (GtkTreeModel* _sender, GtkTreePath* path, GtkTreeIter* iter, gpointer self);
 
439
static void __lambda13_ (Block7Data* _data7_);
 
440
static void ___lambda13__gtk_tree_model_row_deleted (GtkTreeModel* _sender, GtkTreePath* path, gpointer self);
 
441
static void __lambda14_ (Block7Data* _data7_);
 
442
static void ___lambda14__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
 
443
static void __lambda15_ (ClocksContentView* self);
 
444
static void ___lambda15__gtk_icon_view_selection_changed (GtkIconView* _sender, gpointer self);
 
445
static void __lambda16_ (ClocksContentView* self, GtkTreePath* path);
 
446
static void ___lambda16__gtk_icon_view_item_activated (GtkIconView* _sender, GtkTreePath* path, gpointer self);
449
447
static void clocks_content_view_set_empty (ClocksContentView* self, gboolean value);
450
448
void clocks_content_view_add_item (ClocksContentView* self, ClocksContentItem* item);
451
449
void clocks_content_view_prepend (ClocksContentView* self, ClocksContentItem* item);
470
468
};
471
469
ClocksAmPmToggleButton* clocks_am_pm_toggle_button_new (void);
472
470
ClocksAmPmToggleButton* clocks_am_pm_toggle_button_construct (GType object_type);
473
 
static void __lambda36_ (ClocksAmPmToggleButton* self);
 
471
static void __lambda37_ (ClocksAmPmToggleButton* self);
474
472
ClocksAmPmToggleButtonAmPm clocks_am_pm_toggle_button_get_choice (ClocksAmPmToggleButton* self);
475
473
void clocks_am_pm_toggle_button_set_choice (ClocksAmPmToggleButton* self, ClocksAmPmToggleButtonAmPm value);
476
 
static void ___lambda36__gtk_button_clicked (GtkButton* _sender, gpointer self);
 
474
static void ___lambda37__gtk_button_clicked (GtkButton* _sender, gpointer self);
477
475
static void clocks_am_pm_toggle_button_finalize (GObject* obj);
478
476
static void _vala_clocks_am_pm_toggle_button_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
479
477
static void _vala_clocks_am_pm_toggle_button_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
810
808
                        pixbuf = _tmp49_;
811
809
                        if (_inner_error_ != NULL) {
812
810
                                _gtk_icon_info_free0 (icon_info);
813
 
                                goto __catch7_g_error;
 
811
                                goto __catch5_g_error;
814
812
                        }
815
813
                        _tmp50_ = context;
816
814
                        _tmp51_ = cr;
821
819
                        _g_object_unref0 (pixbuf);
822
820
                        _gtk_icon_info_free0 (icon_info);
823
821
                }
824
 
                goto __finally7;
825
 
                __catch7_g_error:
 
822
                goto __finally5;
 
823
                __catch5_g_error:
826
824
                {
827
825
                        GError* e = NULL;
828
826
                        GError* _tmp55_ = NULL;
834
832
                        g_warning ("widgets.vala:117: %s", _tmp56_);
835
833
                        _g_error_free0 (e);
836
834
                }
837
 
                __finally7:
 
835
                __finally5:
838
836
                if (_inner_error_ != NULL) {
839
837
                        _g_object_unref0 (icon_theme);
840
838
                        _g_object_unref0 (layout);
1076
1074
        GtkStyleContext* _tmp111_ = NULL;
1077
1075
        gboolean _tmp112_ = FALSE;
1078
1076
        gboolean _tmp113_ = FALSE;
1079
 
        gboolean _tmp115_ = FALSE;
1080
 
        cairo_t* _tmp137_ = NULL;
 
1077
        cairo_t* _tmp136_ = NULL;
1081
1078
        self = (ClocksDigitalClockRenderer*) base;
1082
1079
        g_return_if_fail (cr != NULL);
1083
1080
        g_return_if_fail (widget != NULL);
1309
1306
        } else {
1310
1307
                _tmp112_ = FALSE;
1311
1308
        }
1312
 
        _tmp115_ = _tmp112_;
1313
 
        if (_tmp115_) {
 
1309
        if (_tmp112_) {
1314
1310
                gint xpad = 0;
1315
1311
                gint ypad = 0;
1316
1312
                gint x_offset = 0;
 
1313
                gint _tmp115_ = 0;
1317
1314
                gint _tmp116_ = 0;
1318
 
                gint _tmp117_ = 0;
1319
 
                GtkWidget* _tmp118_ = NULL;
1320
 
                GtkTextDirection _tmp119_ = 0;
 
1315
                GtkWidget* _tmp117_ = NULL;
 
1316
                GtkTextDirection _tmp118_ = 0;
1321
1317
                gint check_x = 0;
1322
 
                gint _tmp124_ = 0;
 
1318
                gint _tmp123_ = 0;
1323
1319
                gint check_y = 0;
1324
 
                GdkRectangle _tmp125_ = {0};
 
1320
                GdkRectangle _tmp124_ = {0};
 
1321
                gint _tmp125_ = 0;
1325
1322
                gint _tmp126_ = 0;
1326
 
                gint _tmp127_ = 0;
 
1323
                GtkStyleContext* _tmp127_ = NULL;
1327
1324
                GtkStyleContext* _tmp128_ = NULL;
1328
 
                GtkStyleContext* _tmp129_ = NULL;
1329
 
                gboolean _tmp130_ = FALSE;
1330
 
                GtkStyleContext* _tmp132_ = NULL;
1331
 
                cairo_t* _tmp133_ = NULL;
 
1325
                gboolean _tmp129_ = FALSE;
 
1326
                GtkStyleContext* _tmp131_ = NULL;
 
1327
                cairo_t* _tmp132_ = NULL;
 
1328
                gint _tmp133_ = 0;
1332
1329
                gint _tmp134_ = 0;
1333
 
                gint _tmp135_ = 0;
1334
 
                GtkStyleContext* _tmp136_ = NULL;
1335
 
                gtk_cell_renderer_get_padding ((GtkCellRenderer*) self, &_tmp116_, &_tmp117_);
1336
 
                xpad = _tmp116_;
1337
 
                ypad = _tmp117_;
1338
 
                _tmp118_ = widget;
1339
 
                _tmp119_ = gtk_widget_get_direction (_tmp118_);
1340
 
                if (_tmp119_ == GTK_TEXT_DIR_RTL) {
1341
 
                        gint _tmp120_ = 0;
1342
 
                        _tmp120_ = xpad;
1343
 
                        x_offset = _tmp120_;
 
1330
                GtkStyleContext* _tmp135_ = NULL;
 
1331
                gtk_cell_renderer_get_padding ((GtkCellRenderer*) self, &_tmp115_, &_tmp116_);
 
1332
                xpad = _tmp115_;
 
1333
                ypad = _tmp116_;
 
1334
                _tmp117_ = widget;
 
1335
                _tmp118_ = gtk_widget_get_direction (_tmp117_);
 
1336
                if (_tmp118_ == GTK_TEXT_DIR_RTL) {
 
1337
                        gint _tmp119_ = 0;
 
1338
                        _tmp119_ = xpad;
 
1339
                        x_offset = _tmp119_;
1344
1340
                } else {
1345
 
                        GdkRectangle _tmp121_ = {0};
 
1341
                        GdkRectangle _tmp120_ = {0};
 
1342
                        gint _tmp121_ = 0;
1346
1343
                        gint _tmp122_ = 0;
1347
 
                        gint _tmp123_ = 0;
1348
 
                        _tmp121_ = *cell_area;
1349
 
                        _tmp122_ = _tmp121_.width;
1350
 
                        _tmp123_ = xpad;
1351
 
                        x_offset = (_tmp122_ - CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE) - _tmp123_;
 
1344
                        _tmp120_ = *cell_area;
 
1345
                        _tmp121_ = _tmp120_.width;
 
1346
                        _tmp122_ = xpad;
 
1347
                        x_offset = (_tmp121_ - CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE) - _tmp122_;
1352
1348
                }
1353
 
                _tmp124_ = x_offset;
1354
 
                check_x = _tmp124_;
1355
 
                _tmp125_ = *cell_area;
1356
 
                _tmp126_ = _tmp125_.height;
1357
 
                _tmp127_ = ypad;
1358
 
                check_y = (_tmp126_ - CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE) - _tmp127_;
 
1349
                _tmp123_ = x_offset;
 
1350
                check_x = _tmp123_;
 
1351
                _tmp124_ = *cell_area;
 
1352
                _tmp125_ = _tmp124_.height;
 
1353
                _tmp126_ = ypad;
 
1354
                check_y = (_tmp125_ - CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE) - _tmp126_;
 
1355
                _tmp127_ = context;
 
1356
                gtk_style_context_save (_tmp127_);
1359
1357
                _tmp128_ = context;
1360
 
                gtk_style_context_save (_tmp128_);
1361
 
                _tmp129_ = context;
1362
 
                gtk_style_context_add_class (_tmp129_, GTK_STYLE_CLASS_CHECK);
1363
 
                _tmp130_ = self->priv->_active;
1364
 
                if (_tmp130_) {
1365
 
                        GtkStyleContext* _tmp131_ = NULL;
1366
 
                        _tmp131_ = context;
1367
 
                        gtk_style_context_set_state (_tmp131_, GTK_STATE_FLAG_ACTIVE);
 
1358
                gtk_style_context_add_class (_tmp128_, GTK_STYLE_CLASS_CHECK);
 
1359
                _tmp129_ = self->priv->_active;
 
1360
                if (_tmp129_) {
 
1361
                        GtkStyleContext* _tmp130_ = NULL;
 
1362
                        _tmp130_ = context;
 
1363
                        gtk_style_context_set_state (_tmp130_, GTK_STATE_FLAG_ACTIVE);
1368
1364
                }
1369
 
                _tmp132_ = context;
1370
 
                _tmp133_ = cr;
1371
 
                _tmp134_ = check_x;
1372
 
                _tmp135_ = check_y;
1373
 
                gtk_render_check (_tmp132_, _tmp133_, (gdouble) _tmp134_, (gdouble) _tmp135_, (gdouble) CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE, (gdouble) CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE);
1374
 
                _tmp136_ = context;
1375
 
                gtk_style_context_restore (_tmp136_);
 
1365
                _tmp131_ = context;
 
1366
                _tmp132_ = cr;
 
1367
                _tmp133_ = check_x;
 
1368
                _tmp134_ = check_y;
 
1369
                gtk_render_check (_tmp131_, _tmp132_, (gdouble) _tmp133_, (gdouble) _tmp134_, (gdouble) CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE, (gdouble) CLOCKS_DIGITAL_CLOCK_RENDERER_CHECK_ICON_SIZE);
 
1370
                _tmp135_ = context;
 
1371
                gtk_style_context_restore (_tmp135_);
1376
1372
        }
1377
 
        _tmp137_ = cr;
1378
 
        cairo_restore (_tmp137_);
 
1373
        _tmp136_ = cr;
 
1374
        cairo_restore (_tmp136_);
1379
1375
        _g_object_unref0 (layout_subtext);
1380
1376
        _g_object_unref0 (layout);
1381
1377
        _g_object_unref0 (context);
1699
1695
}
1700
1696
 
1701
1697
 
1702
 
static void __lambda2_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter) {
 
1698
static void __lambda4_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter) {
1703
1699
        ClocksContentItem* item = NULL;
1704
1700
        GtkTreeModel* _tmp0_ = NULL;
1705
1701
        GtkTreeIter _tmp1_ = {0};
1751
1747
}
1752
1748
 
1753
1749
 
1754
 
static void ___lambda2__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
1755
 
        __lambda2_ (self, cell_layout, cell, tree_model, iter);
 
1750
static void ___lambda4__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
 
1751
        __lambda4_ ((ClocksIconView*) self, cell_layout, cell, tree_model, iter);
1756
1752
}
1757
1753
 
1758
1754
 
1759
 
static void __lambda3_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter) {
 
1755
static void __lambda5_ (ClocksIconView* self, GtkCellLayout* column, GtkCellRenderer* cell, GtkTreeModel* model, GtkTreeIter* iter) {
1760
1756
        ClocksContentItem* item = NULL;
1761
1757
        GtkTreeModel* _tmp0_ = NULL;
1762
1758
        GtkTreeIter _tmp1_ = {0};
1793
1789
}
1794
1790
 
1795
1791
 
1796
 
static void ___lambda3__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
1797
 
        __lambda3_ (self, cell_layout, cell, tree_model, iter);
 
1792
static void ___lambda5__gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
 
1793
        __lambda5_ ((ClocksIconView*) self, cell_layout, cell, tree_model, iter);
1798
1794
}
1799
1795
 
1800
1796
 
1837
1833
        _tmp7_ = self->priv->thumb_renderer;
1838
1834
        gtk_cell_layout_add_attribute ((GtkCellLayout*) self, (GtkCellRenderer*) _tmp7_, "active", (gint) CLOCKS_ICON_VIEW_COLUMN_SELECTED);
1839
1835
        _tmp8_ = self->priv->thumb_renderer;
1840
 
        gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) self, (GtkCellRenderer*) _tmp8_, ___lambda2__gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
 
1836
        gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) self, (GtkCellRenderer*) _tmp8_, ___lambda4__gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
1841
1837
        _tmp9_ = clocks_title_renderer_new ();
1842
1838
        g_object_ref_sink (_tmp9_);
1843
1839
        title_renderer = _tmp9_;
1847
1843
        g_object_set ((GtkCellRendererText*) title_renderer, "wrap-width", 220, NULL);
1848
1844
        g_object_set ((GtkCellRendererText*) title_renderer, "wrap-mode", PANGO_WRAP_WORD_CHAR, NULL);
1849
1845
        gtk_cell_layout_pack_start ((GtkCellLayout*) self, (GtkCellRenderer*) title_renderer, TRUE);
1850
 
        gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) self, (GtkCellRenderer*) title_renderer, ___lambda3__gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
 
1846
        gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) self, (GtkCellRenderer*) title_renderer, ___lambda5__gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
1851
1847
        _g_object_unref0 (title_renderer);
1852
1848
        return self;
1853
1849
}
1867
1863
        ClocksIconView * self;
1868
1864
        gboolean result = FALSE;
1869
1865
        GtkTreePath* path = NULL;
1870
 
        GdkEventButton _tmp0_ = {0};
 
1866
        GdkEventButton* _tmp0_ = NULL;
1871
1867
        gdouble _tmp1_ = 0.0;
1872
 
        GdkEventButton _tmp2_ = {0};
 
1868
        GdkEventButton* _tmp2_ = NULL;
1873
1869
        gdouble _tmp3_ = 0.0;
1874
1870
        GtkTreePath* _tmp4_ = NULL;
1875
1871
        GtkTreePath* _tmp5_ = NULL;
1876
1872
        GtkTreePath* _tmp6_ = NULL;
1877
1873
        self = (ClocksIconView*) base;
1878
1874
        g_return_val_if_fail (event != NULL, FALSE);
1879
 
        _tmp0_ = *event;
1880
 
        _tmp1_ = _tmp0_.x;
1881
 
        _tmp2_ = *event;
1882
 
        _tmp3_ = _tmp2_.y;
 
1875
        _tmp0_ = event;
 
1876
        _tmp1_ = _tmp0_->x;
 
1877
        _tmp2_ = event;
 
1878
        _tmp3_ = _tmp2_->y;
1883
1879
        _tmp4_ = gtk_icon_view_get_path_at_pos ((GtkIconView*) self, (gint) _tmp1_, (gint) _tmp3_);
1884
1880
        _tmp5_ = _gtk_tree_path_copy0 (_tmp4_);
1885
1881
        path = _tmp5_;
1886
1882
        _tmp6_ = path;
1887
1883
        if (_tmp6_ != NULL) {
1888
 
                GdkEventButton _tmp7_ = {0};
 
1884
                GdkEventButton* _tmp7_ = NULL;
1889
1885
                guint _tmp8_ = 0U;
1890
1886
                ClocksIconViewMode _tmp9_ = 0;
1891
1887
                ClocksIconViewMode _tmp10_ = 0;
1892
 
                _tmp7_ = *event;
1893
 
                _tmp8_ = _tmp7_.button;
 
1888
                _tmp7_ = event;
 
1889
                _tmp8_ = _tmp7_->button;
1894
1890
                if (_tmp8_ == ((guint) GDK_BUTTON_SECONDARY)) {
1895
1891
                        clocks_icon_view_set_mode (self, CLOCKS_ICON_VIEW_MODE_SELECTION);
1896
1892
                }
2001
1997
}
2002
1998
 
2003
1999
 
2004
 
static Block7Data* block7_data_ref (Block7Data* _data7_) {
2005
 
        g_atomic_int_inc (&_data7_->_ref_count_);
2006
 
        return _data7_;
 
2000
static Block6Data* block6_data_ref (Block6Data* _data6_) {
 
2001
        g_atomic_int_inc (&_data6_->_ref_count_);
 
2002
        return _data6_;
2007
2003
}
2008
2004
 
2009
2005
 
2018
2014
}
2019
2015
 
2020
2016
 
2021
 
static void block7_data_unref (void * _userdata_) {
2022
 
        Block7Data* _data7_;
2023
 
        _data7_ = (Block7Data*) _userdata_;
2024
 
        if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
2025
 
                ClocksIconView * self;
2026
 
                self = _data7_->self;
2027
 
                __g_list_free__gtk_tree_path_free0_0 (_data7_->items);
 
2017
static void block6_data_unref (void * _userdata_) {
 
2018
        Block6Data* _data6_;
 
2019
        _data6_ = (Block6Data*) _userdata_;
 
2020
        if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
 
2021
                ClocksIconView* self;
 
2022
                self = _data6_->self;
 
2023
                __g_list_free__gtk_tree_path_free0_0 (_data6_->items);
2028
2024
                _g_object_unref0 (self);
2029
 
                g_slice_free (Block7Data, _data7_);
 
2025
                g_slice_free (Block6Data, _data6_);
2030
2026
        }
2031
2027
}
2032
2028
 
2033
2029
 
2034
 
static gboolean __lambda5_ (Block7Data* _data7_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
2035
 
        ClocksIconView * self;
 
2030
static gboolean __lambda7_ (Block6Data* _data6_, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
 
2031
        ClocksIconView* self;
2036
2032
        gboolean result = FALSE;
2037
2033
        gboolean selected = FALSE;
2038
2034
        GtkTreeModel* _tmp0_ = NULL;
2039
2035
        GtkTreeIter _tmp1_ = {0};
2040
2036
        gboolean _tmp2_ = FALSE;
2041
 
        self = _data7_->self;
 
2037
        self = _data6_->self;
2042
2038
        g_return_val_if_fail (model != NULL, FALSE);
2043
2039
        g_return_val_if_fail (path != NULL, FALSE);
2044
2040
        g_return_val_if_fail (iter != NULL, FALSE);
2051
2047
                GtkTreePath* _tmp4_ = NULL;
2052
2048
                _tmp3_ = path;
2053
2049
                _tmp4_ = _gtk_tree_path_copy0 (_tmp3_);
2054
 
                _data7_->items = g_list_prepend (_data7_->items, _tmp4_);
 
2050
                _data6_->items = g_list_prepend (_data6_->items, _tmp4_);
2055
2051
        }
2056
2052
        result = FALSE;
2057
2053
        return result;
2058
2054
}
2059
2055
 
2060
2056
 
2061
 
static gboolean ___lambda5__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
 
2057
static gboolean ___lambda7__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
2062
2058
        gboolean result;
2063
 
        result = __lambda5_ (self, model, path, iter);
 
2059
        result = __lambda7_ (self, model, path, iter);
2064
2060
        return result;
2065
2061
}
2066
2062
 
2067
2063
 
2068
2064
GList* clocks_icon_view_get_selected_items (ClocksIconView* self) {
2069
2065
        GList* result = NULL;
2070
 
        Block7Data* _data7_;
 
2066
        Block6Data* _data6_;
2071
2067
        GtkTreeModel* _tmp0_ = NULL;
2072
2068
        GtkTreeModel* _tmp1_ = NULL;
2073
2069
        GList* _tmp2_ = NULL;
2074
2070
        g_return_val_if_fail (self != NULL, NULL);
2075
 
        _data7_ = g_slice_new0 (Block7Data);
2076
 
        _data7_->_ref_count_ = 1;
2077
 
        _data7_->self = g_object_ref (self);
2078
 
        _data7_->items = NULL;
 
2071
        _data6_ = g_slice_new0 (Block6Data);
 
2072
        _data6_->_ref_count_ = 1;
 
2073
        _data6_->self = g_object_ref (self);
 
2074
        _data6_->items = NULL;
2079
2075
        _tmp0_ = gtk_icon_view_get_model ((GtkIconView*) self);
2080
2076
        _tmp1_ = _tmp0_;
2081
 
        gtk_tree_model_foreach (_tmp1_, ___lambda5__gtk_tree_model_foreach_func, _data7_);
2082
 
        _data7_->items = g_list_reverse (_data7_->items);
2083
 
        _tmp2_ = _data7_->items;
2084
 
        _data7_->items = NULL;
 
2077
        gtk_tree_model_foreach (_tmp1_, ___lambda7__gtk_tree_model_foreach_func, _data6_);
 
2078
        _data6_->items = g_list_reverse (_data6_->items);
 
2079
        _tmp2_ = _data6_->items;
 
2080
        _data6_->items = NULL;
2085
2081
        result = _tmp2_;
2086
 
        block7_data_unref (_data7_);
2087
 
        _data7_ = NULL;
 
2082
        block6_data_unref (_data6_);
 
2083
        _data6_ = NULL;
2088
2084
        return result;
2089
2085
}
2090
2086
 
2091
2087
 
2092
 
static gboolean __lambda6_ (ClocksIconView* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
 
2088
static gboolean __lambda8_ (ClocksIconView* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
2093
2089
        gboolean result = FALSE;
2094
2090
        ClocksContentItem* item = NULL;
2095
2091
        GtkTreeModel* _tmp0_ = NULL;
2119
2115
}
2120
2116
 
2121
2117
 
2122
 
static gboolean ___lambda6__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
 
2118
static gboolean ___lambda8__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
2123
2119
        gboolean result;
2124
 
        result = __lambda6_ (self, model, path, iter);
 
2120
        result = __lambda8_ ((ClocksIconView*) self, model, path, iter);
2125
2121
        return result;
2126
2122
}
2127
2123
 
2134
2130
        _tmp0_ = gtk_icon_view_get_model ((GtkIconView*) self);
2135
2131
        _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp0_) : NULL);
2136
2132
        model = _tmp1_;
2137
 
        gtk_tree_model_foreach ((GtkTreeModel*) model, ___lambda6__gtk_tree_model_foreach_func, self);
 
2133
        gtk_tree_model_foreach ((GtkTreeModel*) model, ___lambda8__gtk_tree_model_foreach_func, self);
2138
2134
        g_signal_emit_by_name ((GtkIconView*) self, "selection-changed");
2139
2135
        _g_object_unref0 (model);
2140
2136
}
2141
2137
 
2142
2138
 
2143
 
static gboolean __lambda4_ (ClocksIconView* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
 
2139
static gboolean __lambda6_ (ClocksIconView* self, GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter) {
2144
2140
        gboolean result = FALSE;
2145
2141
        GtkTreeModel* _tmp0_ = NULL;
2146
2142
        GtkTreeIter _tmp1_ = {0};
2155
2151
}
2156
2152
 
2157
2153
 
2158
 
static gboolean ___lambda4__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
 
2154
static gboolean ___lambda6__gtk_tree_model_foreach_func (GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
2159
2155
        gboolean result;
2160
 
        result = __lambda4_ (self, model, path, iter);
 
2156
        result = __lambda6_ ((ClocksIconView*) self, model, path, iter);
2161
2157
        return result;
2162
2158
}
2163
2159
 
2170
2166
        _tmp0_ = gtk_icon_view_get_model ((GtkIconView*) self);
2171
2167
        _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*) _tmp0_) : NULL);
2172
2168
        model = _tmp1_;
2173
 
        gtk_tree_model_foreach ((GtkTreeModel*) model, ___lambda4__gtk_tree_model_foreach_func, self);
 
2169
        gtk_tree_model_foreach ((GtkTreeModel*) model, ___lambda6__gtk_tree_model_foreach_func, self);
2174
2170
        g_signal_emit_by_name ((GtkIconView*) self, "selection-changed");
2175
2171
        _g_object_unref0 (model);
2176
2172
}
2324
2320
}
2325
2321
 
2326
2322
 
2327
 
static Block8Data* block8_data_ref (Block8Data* _data8_) {
2328
 
        g_atomic_int_inc (&_data8_->_ref_count_);
2329
 
        return _data8_;
 
2323
static Block7Data* block7_data_ref (Block7Data* _data7_) {
 
2324
        g_atomic_int_inc (&_data7_->_ref_count_);
 
2325
        return _data7_;
2330
2326
}
2331
2327
 
2332
2328
 
2333
 
static void block8_data_unref (void * _userdata_) {
2334
 
        Block8Data* _data8_;
2335
 
        _data8_ = (Block8Data*) _userdata_;
2336
 
        if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
2337
 
                ClocksContentView * self;
2338
 
                self = _data8_->self;
2339
 
                _g_object_unref0 (_data8_->model);
 
2329
static void block7_data_unref (void * _userdata_) {
 
2330
        Block7Data* _data7_;
 
2331
        _data7_ = (Block7Data*) _userdata_;
 
2332
        if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
 
2333
                ClocksContentView* self;
 
2334
                self = _data7_->self;
 
2335
                _g_object_unref0 (_data7_->model);
 
2336
                _g_object_unref0 (_data7_->action_bar);
2340
2337
                _g_object_unref0 (self);
2341
 
                g_slice_free (Block8Data, _data8_);
 
2338
                g_slice_free (Block7Data, _data7_);
2342
2339
        }
2343
2340
}
2344
2341
 
2345
2342
 
2346
 
static void __lambda7_ (ClocksContentView* self) {
 
2343
static void __lambda9_ (ClocksContentView* self) {
2347
2344
        ClocksIconView* _tmp0_ = NULL;
2348
2345
        _tmp0_ = self->priv->icon_view;
2349
2346
        clocks_icon_view_set_mode (_tmp0_, CLOCKS_ICON_VIEW_MODE_SELECTION);
2350
2347
}
2351
2348
 
2352
2349
 
2353
 
static void ___lambda7__gtk_button_clicked (GtkButton* _sender, gpointer self) {
2354
 
        __lambda7_ (self);
2355
 
}
2356
 
 
2357
 
 
2358
 
static void __lambda8_ (ClocksContentView* self) {
2359
 
        ClocksIconView* _tmp0_ = NULL;
2360
 
        _tmp0_ = self->priv->icon_view;
2361
 
        clocks_icon_view_set_mode (_tmp0_, CLOCKS_ICON_VIEW_MODE_NORMAL);
2362
 
}
2363
 
 
2364
 
 
2365
 
static void ___lambda8__gtk_button_clicked (GtkButton* _sender, gpointer self) {
2366
 
        __lambda8_ (self);
2367
 
}
2368
 
 
2369
 
 
2370
 
static void __lambda10_ (Block8Data* _data8_) {
2371
 
        ClocksContentView * self;
2372
 
        self = _data8_->self;
2373
 
        clocks_content_view_update_empty_view (self, _data8_->model);
2374
 
}
2375
 
 
2376
 
 
2377
 
static void ___lambda10__gtk_tree_model_row_inserted (GtkTreeModel* _sender, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
2378
 
        __lambda10_ (self);
2379
 
}
2380
 
 
2381
 
 
2382
 
static void __lambda11_ (Block8Data* _data8_) {
2383
 
        ClocksContentView * self;
2384
 
        self = _data8_->self;
2385
 
        clocks_content_view_update_empty_view (self, _data8_->model);
2386
 
}
2387
 
 
2388
 
 
2389
 
static void ___lambda11__gtk_tree_model_row_deleted (GtkTreeModel* _sender, GtkTreePath* path, gpointer self) {
2390
 
        __lambda11_ (self);
2391
 
}
2392
 
 
2393
 
 
2394
 
static void __lambda12_ (ClocksContentView* self) {
 
2350
static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) {
 
2351
        __lambda9_ ((ClocksContentView*) self);
 
2352
}
 
2353
 
 
2354
 
 
2355
static void __lambda10_ (ClocksContentView* self) {
 
2356
        ClocksIconView* _tmp0_ = NULL;
 
2357
        _tmp0_ = self->priv->icon_view;
 
2358
        clocks_icon_view_set_mode (_tmp0_, CLOCKS_ICON_VIEW_MODE_NORMAL);
 
2359
}
 
2360
 
 
2361
 
 
2362
static void ___lambda10__gtk_button_clicked (GtkButton* _sender, gpointer self) {
 
2363
        __lambda10_ ((ClocksContentView*) self);
 
2364
}
 
2365
 
 
2366
 
 
2367
static void __lambda11_ (ClocksContentView* self) {
 
2368
        ClocksIconView* _tmp0_ = NULL;
 
2369
        g_signal_emit_by_name (self, "delete-selected");
 
2370
        _tmp0_ = self->priv->icon_view;
 
2371
        clocks_icon_view_set_mode (_tmp0_, CLOCKS_ICON_VIEW_MODE_NORMAL);
 
2372
}
 
2373
 
 
2374
 
 
2375
static void ___lambda11__gtk_button_clicked (GtkButton* _sender, gpointer self) {
 
2376
        __lambda11_ ((ClocksContentView*) self);
 
2377
}
 
2378
 
 
2379
 
 
2380
static void __lambda12_ (Block7Data* _data7_) {
 
2381
        ClocksContentView* self;
 
2382
        self = _data7_->self;
 
2383
        clocks_content_view_update_empty_view (self, _data7_->model);
 
2384
}
 
2385
 
 
2386
 
 
2387
static void ___lambda12__gtk_tree_model_row_inserted (GtkTreeModel* _sender, GtkTreePath* path, GtkTreeIter* iter, gpointer self) {
 
2388
        __lambda12_ (self);
 
2389
}
 
2390
 
 
2391
 
 
2392
static void __lambda13_ (Block7Data* _data7_) {
 
2393
        ClocksContentView* self;
 
2394
        self = _data7_->self;
 
2395
        clocks_content_view_update_empty_view (self, _data7_->model);
 
2396
}
 
2397
 
 
2398
 
 
2399
static void ___lambda13__gtk_tree_model_row_deleted (GtkTreeModel* _sender, GtkTreePath* path, gpointer self) {
 
2400
        __lambda13_ (self);
 
2401
}
 
2402
 
 
2403
 
 
2404
static void __lambda14_ (Block7Data* _data7_) {
 
2405
        ClocksContentView* self;
2395
2406
        ClocksIconView* _tmp0_ = NULL;
2396
2407
        ClocksIconViewMode _tmp1_ = 0;
2397
2408
        ClocksIconViewMode _tmp2_ = 0;
 
2409
        self = _data7_->self;
2398
2410
        _tmp0_ = self->priv->icon_view;
2399
2411
        _tmp1_ = clocks_icon_view_get_mode (_tmp0_);
2400
2412
        _tmp2_ = _tmp1_;
2401
2413
        if (_tmp2_ == CLOCKS_ICON_VIEW_MODE_SELECTION) {
2402
2414
                ClocksHeaderBar* _tmp3_ = NULL;
2403
 
                GtkRevealer* _tmp4_ = NULL;
2404
2415
                _tmp3_ = self->priv->header_bar;
2405
2416
                clocks_header_bar_set_mode (_tmp3_, CLOCKS_HEADER_BAR_MODE_SELECTION);
2406
 
                _tmp4_ = self->priv->revealer;
2407
 
                gtk_revealer_set_reveal_child (_tmp4_, TRUE);
 
2417
                gtk_widget_show ((GtkWidget*) _data7_->action_bar);
2408
2418
        } else {
2409
 
                ClocksIconView* _tmp5_ = NULL;
 
2419
                ClocksIconView* _tmp4_ = NULL;
 
2420
                ClocksIconViewMode _tmp5_ = 0;
2410
2421
                ClocksIconViewMode _tmp6_ = 0;
2411
 
                ClocksIconViewMode _tmp7_ = 0;
2412
 
                _tmp5_ = self->priv->icon_view;
2413
 
                _tmp6_ = clocks_icon_view_get_mode (_tmp5_);
2414
 
                _tmp7_ = _tmp6_;
2415
 
                if (_tmp7_ == CLOCKS_ICON_VIEW_MODE_NORMAL) {
2416
 
                        ClocksHeaderBar* _tmp8_ = NULL;
2417
 
                        GtkRevealer* _tmp9_ = NULL;
2418
 
                        _tmp8_ = self->priv->header_bar;
2419
 
                        clocks_header_bar_set_mode (_tmp8_, CLOCKS_HEADER_BAR_MODE_NORMAL);
2420
 
                        _tmp9_ = self->priv->revealer;
2421
 
                        gtk_revealer_set_reveal_child (_tmp9_, FALSE);
 
2422
                _tmp4_ = self->priv->icon_view;
 
2423
                _tmp5_ = clocks_icon_view_get_mode (_tmp4_);
 
2424
                _tmp6_ = _tmp5_;
 
2425
                if (_tmp6_ == CLOCKS_ICON_VIEW_MODE_NORMAL) {
 
2426
                        ClocksHeaderBar* _tmp7_ = NULL;
 
2427
                        _tmp7_ = self->priv->header_bar;
 
2428
                        clocks_header_bar_set_mode (_tmp7_, CLOCKS_HEADER_BAR_MODE_NORMAL);
 
2429
                        gtk_widget_hide ((GtkWidget*) _data7_->action_bar);
2422
2430
                }
2423
2431
        }
2424
2432
}
2425
2433
 
2426
2434
 
2427
 
static void ___lambda12__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
2428
 
        __lambda12_ (self);
 
2435
static void ___lambda14__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
 
2436
        __lambda14_ (self);
2429
2437
}
2430
2438
 
2431
2439
 
2432
 
static void __lambda13_ (ClocksContentView* self) {
 
2440
static void __lambda15_ (ClocksContentView* self) {
2433
2441
        GList* items = NULL;
2434
2442
        ClocksIconView* _tmp0_ = NULL;
2435
2443
        GList* _tmp1_ = NULL;
2485
2493
}
2486
2494
 
2487
2495
 
2488
 
static void ___lambda13__gtk_icon_view_selection_changed (GtkIconView* _sender, gpointer self) {
2489
 
        __lambda13_ (self);
 
2496
static void ___lambda15__gtk_icon_view_selection_changed (GtkIconView* _sender, gpointer self) {
 
2497
        __lambda15_ ((ClocksContentView*) self);
2490
2498
}
2491
2499
 
2492
2500
 
2493
 
static void __lambda14_ (ClocksContentView* self, GtkTreePath* path) {
 
2501
static void __lambda16_ (ClocksContentView* self, GtkTreePath* path) {
2494
2502
        GtkListStore* store = NULL;
2495
2503
        ClocksIconView* _tmp0_ = NULL;
2496
2504
        GtkTreeModel* _tmp1_ = NULL;
2552
2560
}
2553
2561
 
2554
2562
 
2555
 
static void ___lambda14__gtk_icon_view_item_activated (GtkIconView* _sender, GtkTreePath* path, gpointer self) {
2556
 
        __lambda14_ (self, path);
 
2563
static void ___lambda16__gtk_icon_view_item_activated (GtkIconView* _sender, GtkTreePath* path, gpointer self) {
 
2564
        __lambda16_ ((ClocksContentView*) self, path);
2557
2565
}
2558
2566
 
2559
2567
 
2560
2568
ClocksContentView* clocks_content_view_construct (GType object_type, GtkWidget* e, ClocksHeaderBar* b) {
2561
2569
        ClocksContentView * self = NULL;
2562
 
        Block8Data* _data8_;
 
2570
        Block7Data* _data7_;
2563
2571
        GtkWidget* _tmp0_ = NULL;
2564
2572
        GtkWidget* _tmp1_ = NULL;
2565
2573
        ClocksHeaderBar* _tmp2_ = NULL;
2606
2614
        ClocksIconView* _tmp38_ = NULL;
2607
2615
        GtkGrid* _tmp39_ = NULL;
2608
2616
        GtkGrid* _tmp40_ = NULL;
2609
 
        GtkFrame* _tmp41_ = NULL;
2610
 
        GtkRevealer* _tmp42_ = NULL;
2611
 
        GtkRevealer* _tmp43_ = NULL;
2612
 
        GtkRevealer* _tmp44_ = NULL;
2613
 
        GtkRevealer* _tmp45_ = NULL;
2614
 
        GtkFrame* _tmp46_ = NULL;
2615
 
        GtkGrid* _tmp47_ = NULL;
2616
 
        GtkRevealer* _tmp48_ = NULL;
2617
 
        ClocksIconView* _tmp49_ = NULL;
2618
 
        GtkTreeModel* _tmp50_ = NULL;
2619
 
        GtkTreeModel* _tmp51_ = NULL;
 
2617
        GtkActionBar* _tmp41_ = NULL;
 
2618
        GtkGrid* _tmp42_ = NULL;
 
2619
        GtkButton* _tmp43_ = NULL;
 
2620
        GtkButton* _tmp44_ = NULL;
 
2621
        const gchar* _tmp45_ = NULL;
 
2622
        GtkButton* _tmp46_ = NULL;
 
2623
        GtkButton* _tmp47_ = NULL;
 
2624
        GtkButton* _tmp48_ = NULL;
 
2625
        GtkButton* _tmp49_ = NULL;
 
2626
        GtkButton* _tmp50_ = NULL;
 
2627
        GtkButton* _tmp51_ = NULL;
2620
2628
        ClocksIconView* _tmp52_ = NULL;
2621
 
        ClocksIconView* _tmp53_ = NULL;
2622
 
        ClocksIconView* _tmp54_ = NULL;
2623
 
        GtkWidget* _tmp55_ = NULL;
 
2629
        GtkTreeModel* _tmp53_ = NULL;
 
2630
        GtkTreeModel* _tmp54_ = NULL;
 
2631
        ClocksIconView* _tmp55_ = NULL;
 
2632
        ClocksIconView* _tmp56_ = NULL;
 
2633
        ClocksIconView* _tmp57_ = NULL;
 
2634
        GtkWidget* _tmp58_ = NULL;
2624
2635
        g_return_val_if_fail (e != NULL, NULL);
2625
2636
        g_return_val_if_fail (b != NULL, NULL);
2626
 
        _data8_ = g_slice_new0 (Block8Data);
2627
 
        _data8_->_ref_count_ = 1;
 
2637
        _data7_ = g_slice_new0 (Block7Data);
 
2638
        _data7_->_ref_count_ = 1;
2628
2639
        self = (ClocksContentView*) g_object_new (object_type, NULL);
2629
 
        _data8_->self = g_object_ref (self);
 
2640
        _data7_->self = g_object_ref (self);
2630
2641
        _tmp0_ = e;
2631
2642
        _tmp1_ = _g_object_ref0 (_tmp0_);
2632
2643
        _g_object_unref0 (self->priv->empty_page);
2655
2666
        _tmp10_ = self->priv->select_button;
2656
2667
        g_object_bind_property_with_closures ((GObject*) self, "empty", (GObject*) _tmp10_, "visible", G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)));
2657
2668
        _tmp11_ = self->priv->select_button;
2658
 
        g_signal_connect_object (_tmp11_, "clicked", (GCallback) ___lambda7__gtk_button_clicked, self, 0);
 
2669
        g_signal_connect_object (_tmp11_, "clicked", (GCallback) ___lambda9__gtk_button_clicked, self, 0);
2659
2670
        _tmp12_ = self->priv->header_bar;
2660
2671
        _tmp13_ = self->priv->select_button;
2661
2672
        gtk_header_bar_pack_end ((GtkHeaderBar*) _tmp12_, (GtkWidget*) _tmp13_);
2669
2680
        _tmp17_ = self->priv->cancel_button;
2670
2681
        gtk_widget_set_valign ((GtkWidget*) _tmp17_, GTK_ALIGN_CENTER);
2671
2682
        _tmp18_ = self->priv->cancel_button;
2672
 
        g_signal_connect_object (_tmp18_, "clicked", (GCallback) ___lambda8__gtk_button_clicked, self, 0);
 
2683
        g_signal_connect_object (_tmp18_, "clicked", (GCallback) ___lambda10__gtk_button_clicked, self, 0);
2673
2684
        _tmp19_ = self->priv->header_bar;
2674
2685
        _tmp20_ = self->priv->cancel_button;
2675
2686
        gtk_header_bar_pack_end ((GtkHeaderBar*) _tmp19_, (GtkWidget*) _tmp20_);
2725
2736
        self->priv->grid = _tmp39_;
2726
2737
        _tmp40_ = self->priv->grid;
2727
2738
        gtk_grid_attach (_tmp40_, (GtkWidget*) scrolled_window, 0, 0, 1, 1);
2728
 
        _tmp41_ = clocks_content_view_create_selection_toolbar (self);
2729
 
        _g_object_unref0 (self->priv->selection_toolbar);
2730
 
        self->priv->selection_toolbar = _tmp41_;
2731
 
        _tmp42_ = (GtkRevealer*) gtk_revealer_new ();
2732
 
        g_object_ref_sink (_tmp42_);
2733
 
        _g_object_unref0 (self->priv->revealer);
2734
 
        self->priv->revealer = _tmp42_;
2735
 
        _tmp43_ = self->priv->revealer;
2736
 
        gtk_widget_set_hexpand ((GtkWidget*) _tmp43_, TRUE);
2737
 
        _tmp44_ = self->priv->revealer;
2738
 
        gtk_widget_set_halign ((GtkWidget*) _tmp44_, GTK_ALIGN_FILL);
2739
 
        _tmp45_ = self->priv->revealer;
2740
 
        _tmp46_ = self->priv->selection_toolbar;
2741
 
        gtk_container_add ((GtkContainer*) _tmp45_, (GtkWidget*) _tmp46_);
2742
 
        _tmp47_ = self->priv->grid;
2743
 
        _tmp48_ = self->priv->revealer;
2744
 
        gtk_grid_attach (_tmp47_, (GtkWidget*) _tmp48_, 0, 1, 1, 1);
2745
 
        _tmp49_ = self->priv->icon_view;
2746
 
        _tmp50_ = gtk_icon_view_get_model ((GtkIconView*) _tmp49_);
2747
 
        _tmp51_ = _g_object_ref0 (_tmp50_);
2748
 
        _data8_->model = _tmp51_;
2749
 
        g_signal_connect_data (_data8_->model, "row-inserted", (GCallback) ___lambda10__gtk_tree_model_row_inserted, block8_data_ref (_data8_), (GClosureNotify) block8_data_unref, 0);
2750
 
        g_signal_connect_data (_data8_->model, "row-deleted", (GCallback) ___lambda11__gtk_tree_model_row_deleted, block8_data_ref (_data8_), (GClosureNotify) block8_data_unref, 0);
 
2739
        _tmp41_ = (GtkActionBar*) gtk_action_bar_new ();
 
2740
        g_object_ref_sink (_tmp41_);
 
2741
        _data7_->action_bar = _tmp41_;
 
2742
        gtk_widget_set_no_show_all ((GtkWidget*) _data7_->action_bar, TRUE);
 
2743
        _tmp42_ = self->priv->grid;
 
2744
        gtk_grid_attach (_tmp42_, (GtkWidget*) _data7_->action_bar, 0, 1, 1, 1);
 
2745
        _tmp43_ = (GtkButton*) gtk_button_new ();
 
2746
        g_object_ref_sink (_tmp43_);
 
2747
        _g_object_unref0 (self->priv->delete_button);
 
2748
        self->priv->delete_button = _tmp43_;
 
2749
        _tmp44_ = self->priv->delete_button;
 
2750
        _tmp45_ = _ ("Delete");
 
2751
        gtk_button_set_label (_tmp44_, _tmp45_);
 
2752
        _tmp46_ = self->priv->delete_button;
 
2753
        gtk_widget_set_visible ((GtkWidget*) _tmp46_, TRUE);
 
2754
        _tmp47_ = self->priv->delete_button;
 
2755
        gtk_widget_set_sensitive ((GtkWidget*) _tmp47_, FALSE);
 
2756
        _tmp48_ = self->priv->delete_button;
 
2757
        gtk_widget_set_halign ((GtkWidget*) _tmp48_, GTK_ALIGN_END);
 
2758
        _tmp49_ = self->priv->delete_button;
 
2759
        gtk_widget_set_hexpand ((GtkWidget*) _tmp49_, TRUE);
 
2760
        _tmp50_ = self->priv->delete_button;
 
2761
        g_signal_connect_object (_tmp50_, "clicked", (GCallback) ___lambda11__gtk_button_clicked, self, 0);
 
2762
        _tmp51_ = self->priv->delete_button;
 
2763
        gtk_action_bar_pack_end (_data7_->action_bar, (GtkWidget*) _tmp51_);
2751
2764
        _tmp52_ = self->priv->icon_view;
2752
 
        g_signal_connect_object ((GObject*) _tmp52_, "notify::mode", (GCallback) ___lambda12__g_object_notify, self, 0);
2753
 
        _tmp53_ = self->priv->icon_view;
2754
 
        g_signal_connect_object ((GtkIconView*) _tmp53_, "selection-changed", (GCallback) ___lambda13__gtk_icon_view_selection_changed, self, 0);
2755
 
        _tmp54_ = self->priv->icon_view;
2756
 
        g_signal_connect_object ((GtkIconView*) _tmp54_, "item-activated", (GCallback) ___lambda14__gtk_icon_view_item_activated, self, 0);
2757
 
        _tmp55_ = self->priv->empty_page;
2758
 
        gtk_container_add ((GtkContainer*) self, _tmp55_);
 
2765
        _tmp53_ = gtk_icon_view_get_model ((GtkIconView*) _tmp52_);
 
2766
        _tmp54_ = _g_object_ref0 (_tmp53_);
 
2767
        _data7_->model = _tmp54_;
 
2768
        g_signal_connect_data (_data7_->model, "row-inserted", (GCallback) ___lambda12__gtk_tree_model_row_inserted, block7_data_ref (_data7_), (GClosureNotify) block7_data_unref, 0);
 
2769
        g_signal_connect_data (_data7_->model, "row-deleted", (GCallback) ___lambda13__gtk_tree_model_row_deleted, block7_data_ref (_data7_), (GClosureNotify) block7_data_unref, 0);
 
2770
        _tmp55_ = self->priv->icon_view;
 
2771
        g_signal_connect_data ((GObject*) _tmp55_, "notify::mode", (GCallback) ___lambda14__g_object_notify, block7_data_ref (_data7_), (GClosureNotify) block7_data_unref, 0);
 
2772
        _tmp56_ = self->priv->icon_view;
 
2773
        g_signal_connect_object ((GtkIconView*) _tmp56_, "selection-changed", (GCallback) ___lambda15__gtk_icon_view_selection_changed, self, 0);
 
2774
        _tmp57_ = self->priv->icon_view;
 
2775
        g_signal_connect_object ((GtkIconView*) _tmp57_, "item-activated", (GCallback) ___lambda16__gtk_icon_view_item_activated, self, 0);
 
2776
        _tmp58_ = self->priv->empty_page;
 
2777
        gtk_container_add ((GtkContainer*) self, _tmp58_);
2759
2778
        _g_object_unref0 (scrolled_window);
2760
2779
        _g_object_unref0 (selection_menubutton_grid);
2761
2780
        _g_object_unref0 (selection_menubutton_arrow);
2762
2781
        _g_object_unref0 (builder);
2763
2782
        _g_object_unref0 (select_button_image);
2764
 
        block8_data_unref (_data8_);
2765
 
        _data8_ = NULL;
 
2783
        block7_data_unref (_data7_);
 
2784
        _data7_ = NULL;
2766
2785
        return self;
2767
2786
}
2768
2787
 
2772
2791
}
2773
2792
 
2774
2793
 
2775
 
static void __lambda9_ (ClocksContentView* self) {
2776
 
        ClocksIconView* _tmp0_ = NULL;
2777
 
        g_signal_emit_by_name (self, "delete-selected");
2778
 
        _tmp0_ = self->priv->icon_view;
2779
 
        clocks_icon_view_set_mode (_tmp0_, CLOCKS_ICON_VIEW_MODE_NORMAL);
2780
 
}
2781
 
 
2782
 
 
2783
 
static void ___lambda9__gtk_button_clicked (GtkButton* _sender, gpointer self) {
2784
 
        __lambda9_ (self);
2785
 
}
2786
 
 
2787
 
 
2788
 
static GtkFrame* clocks_content_view_create_selection_toolbar (ClocksContentView* self) {
2789
 
        GtkFrame* result = NULL;
2790
 
        GtkFrame* frame = NULL;
2791
 
        GtkFrame* _tmp0_ = NULL;
2792
 
        GtkStyleContext* _tmp1_ = NULL;
2793
 
        GtkButton* _tmp2_ = NULL;
2794
 
        GtkButton* _tmp3_ = NULL;
2795
 
        const gchar* _tmp4_ = NULL;
2796
 
        GtkButton* _tmp5_ = NULL;
2797
 
        GtkButton* _tmp6_ = NULL;
2798
 
        GtkButton* _tmp7_ = NULL;
2799
 
        GtkButton* _tmp8_ = NULL;
2800
 
        GtkGrid* grid = NULL;
2801
 
        GtkGrid* _tmp9_ = NULL;
2802
 
        GtkButton* _tmp10_ = NULL;
2803
 
        g_return_val_if_fail (self != NULL, NULL);
2804
 
        _tmp0_ = (GtkFrame*) gtk_frame_new (NULL);
2805
 
        g_object_ref_sink (_tmp0_);
2806
 
        frame = _tmp0_;
2807
 
        _tmp1_ = gtk_widget_get_style_context ((GtkWidget*) frame);
2808
 
        gtk_style_context_add_class (_tmp1_, "clocks-selection-bar");
2809
 
        _tmp2_ = (GtkButton*) gtk_button_new ();
2810
 
        g_object_ref_sink (_tmp2_);
2811
 
        _g_object_unref0 (self->priv->delete_button);
2812
 
        self->priv->delete_button = _tmp2_;
2813
 
        _tmp3_ = self->priv->delete_button;
2814
 
        _tmp4_ = _ ("Delete");
2815
 
        gtk_button_set_label (_tmp3_, _tmp4_);
2816
 
        _tmp5_ = self->priv->delete_button;
2817
 
        gtk_widget_set_sensitive ((GtkWidget*) _tmp5_, FALSE);
2818
 
        _tmp6_ = self->priv->delete_button;
2819
 
        gtk_widget_set_halign ((GtkWidget*) _tmp6_, GTK_ALIGN_END);
2820
 
        _tmp7_ = self->priv->delete_button;
2821
 
        gtk_widget_set_hexpand ((GtkWidget*) _tmp7_, TRUE);
2822
 
        _tmp8_ = self->priv->delete_button;
2823
 
        g_signal_connect_object (_tmp8_, "clicked", (GCallback) ___lambda9__gtk_button_clicked, self, 0);
2824
 
        _tmp9_ = (GtkGrid*) gtk_grid_new ();
2825
 
        g_object_ref_sink (_tmp9_);
2826
 
        grid = _tmp9_;
2827
 
        _tmp10_ = self->priv->delete_button;
2828
 
        gtk_grid_attach (grid, (GtkWidget*) _tmp10_, 0, 0, 1, 1);
2829
 
        gtk_container_add ((GtkContainer*) frame, (GtkWidget*) grid);
2830
 
        gtk_widget_show_all ((GtkWidget*) frame);
2831
 
        result = frame;
2832
 
        _g_object_unref0 (grid);
2833
 
        return result;
2834
 
}
2835
 
 
2836
 
 
2837
2794
static void clocks_content_view_update_empty_view (ClocksContentView* self, GtkTreeModel* model) {
2838
2795
        GtkTreeIter i = {0};
2839
2796
        GtkWidget* child = NULL;
3117
3074
        _g_object_unref0 (self->priv->selection_menu);
3118
3075
        _g_object_unref0 (self->priv->selection_menubutton);
3119
3076
        _g_object_unref0 (self->priv->selection_menubutton_label);
3120
 
        _g_object_unref0 (self->priv->selection_toolbar);
3121
3077
        _g_object_unref0 (self->priv->grid);
3122
 
        _g_object_unref0 (self->priv->revealer);
3123
3078
        _g_object_unref0 (self->priv->delete_button);
3124
3079
        G_OBJECT_CLASS (clocks_content_view_parent_class)->finalize (obj);
3125
3080
}
3177
3132
}
3178
3133
 
3179
3134
 
3180
 
static void __lambda36_ (ClocksAmPmToggleButton* self) {
 
3135
static void __lambda37_ (ClocksAmPmToggleButton* self) {
3181
3136
        ClocksAmPmToggleButtonAmPm _tmp0_ = 0;
3182
3137
        ClocksAmPmToggleButtonAmPm _tmp1_ = 0;
3183
3138
        ClocksAmPmToggleButtonAmPm _tmp2_ = 0;
3184
 
        ClocksAmPmToggleButtonAmPm _tmp3_ = 0;
3185
3139
        _tmp1_ = clocks_am_pm_toggle_button_get_choice (self);
3186
3140
        _tmp2_ = _tmp1_;
3187
3141
        if (_tmp2_ == CLOCKS_AM_PM_TOGGLE_BUTTON_AM_PM_AM) {
3189
3143
        } else {
3190
3144
                _tmp0_ = CLOCKS_AM_PM_TOGGLE_BUTTON_AM_PM_AM;
3191
3145
        }
3192
 
        _tmp3_ = _tmp0_;
3193
 
        clocks_am_pm_toggle_button_set_choice (self, _tmp3_);
 
3146
        clocks_am_pm_toggle_button_set_choice (self, _tmp0_);
3194
3147
}
3195
3148
 
3196
3149
 
3197
 
static void ___lambda36__gtk_button_clicked (GtkButton* _sender, gpointer self) {
3198
 
        __lambda36_ (self);
 
3150
static void ___lambda37__gtk_button_clicked (GtkButton* _sender, gpointer self) {
 
3151
        __lambda37_ ((ClocksAmPmToggleButton*) self);
3199
3152
}
3200
3153
 
3201
3154
 
3259
3212
        gtk_container_add ((GtkContainer*) _tmp15_, (GtkWidget*) _tmp16_);
3260
3213
        _tmp17_ = self->priv->stack;
3261
3214
        gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp17_);
3262
 
        g_signal_connect_object ((GtkButton*) self, "clicked", (GCallback) ___lambda36__gtk_button_clicked, self, 0);
 
3215
        g_signal_connect_object ((GtkButton*) self, "clicked", (GCallback) ___lambda37__gtk_button_clicked, self, 0);
3263
3216
        clocks_am_pm_toggle_button_set_choice (self, CLOCKS_AM_PM_TOGGLE_BUTTON_AM_PM_AM);
3264
3217
        _tmp18_ = self->priv->stack;
3265
3218
        _tmp19_ = self->priv->am_label;
3296
3249
                GtkLabel* _tmp3_ = NULL;
3297
3250
                ClocksAmPmToggleButtonAmPm _tmp4_ = 0;
3298
3251
                GtkStack* _tmp7_ = NULL;
3299
 
                GtkLabel* _tmp8_ = NULL;
3300
3252
                _tmp2_ = value;
3301
3253
                self->priv->_choice = _tmp2_;
3302
3254
                _tmp4_ = self->priv->_choice;
3310
3262
                        _tmp3_ = _tmp6_;
3311
3263
                }
3312
3264
                _tmp7_ = self->priv->stack;
3313
 
                _tmp8_ = _tmp3_;
3314
 
                gtk_stack_set_visible_child (_tmp7_, (GtkWidget*) _tmp8_);
 
3265
                gtk_stack_set_visible_child (_tmp7_, (GtkWidget*) _tmp3_);
3315
3266
        }
3316
3267
        g_object_notify ((GObject *) self, "choice");
3317
3268
}
3390
3341
        GtkWidget* _tmp1_ = NULL;
3391
3342
        gboolean _tmp2_ = FALSE;
3392
3343
        GtkWidget* _tmp3_ = NULL;
3393
 
        gboolean _tmp7_ = FALSE;
3394
3344
        g_return_val_if_fail (self != NULL, 0);
3395
3345
        ret = 2 * CLOCKS_ANALOG_FRAME_RADIUS_PAD;
3396
3346
        _tmp0_ = gtk_bin_get_child ((GtkBin*) self);
3408
3358
        } else {
3409
3359
                _tmp2_ = FALSE;
3410
3360
        }
3411
 
        _tmp7_ = _tmp2_;
3412
 
        if (_tmp7_) {
 
3361
        if (_tmp2_) {
3413
3362
                gint w = 0;
3414
3363
                gint h = 0;
3415
 
                GtkWidget* _tmp8_ = NULL;
3416
 
                gint _tmp9_ = 0;
3417
 
                GtkWidget* _tmp10_ = NULL;
 
3364
                GtkWidget* _tmp7_ = NULL;
 
3365
                gint _tmp8_ = 0;
 
3366
                GtkWidget* _tmp9_ = NULL;
 
3367
                gint _tmp10_ = 0;
3418
3368
                gint _tmp11_ = 0;
3419
3369
                gint _tmp12_ = 0;
3420
3370
                gint _tmp13_ = 0;
3421
3371
                gint _tmp14_ = 0;
3422
3372
                gint _tmp15_ = 0;
3423
 
                gint _tmp16_ = 0;
3424
 
                gdouble _tmp17_ = 0.0;
3425
 
                _tmp8_ = child;
3426
 
                gtk_widget_get_preferred_width (_tmp8_, &_tmp9_, NULL);
3427
 
                w = _tmp9_;
3428
 
                _tmp10_ = child;
3429
 
                gtk_widget_get_preferred_height (_tmp10_, &_tmp11_, NULL);
3430
 
                h = _tmp11_;
3431
 
                _tmp12_ = ret;
 
3373
                gdouble _tmp16_ = 0.0;
 
3374
                _tmp7_ = child;
 
3375
                gtk_widget_get_preferred_width (_tmp7_, &_tmp8_, NULL);
 
3376
                w = _tmp8_;
 
3377
                _tmp9_ = child;
 
3378
                gtk_widget_get_preferred_height (_tmp9_, &_tmp10_, NULL);
 
3379
                h = _tmp10_;
 
3380
                _tmp11_ = ret;
 
3381
                _tmp12_ = w;
3432
3382
                _tmp13_ = w;
3433
 
                _tmp14_ = w;
 
3383
                _tmp14_ = h;
3434
3384
                _tmp15_ = h;
3435
 
                _tmp16_ = h;
3436
 
                _tmp17_ = sqrt ((gdouble) ((_tmp13_ * _tmp14_) + (_tmp15_ * _tmp16_)));
3437
 
                ret = _tmp12_ + ((gint) _tmp17_);
 
3385
                _tmp16_ = sqrt ((gdouble) ((_tmp12_ * _tmp13_) + (_tmp14_ * _tmp15_)));
 
3386
                ret = _tmp11_ + ((gint) _tmp16_);
3438
3387
        }
3439
3388
        result = ret;
3440
3389
        _g_object_unref0 (child);
3490
3439
        GtkWidget* _tmp2_ = NULL;
3491
3440
        gboolean _tmp3_ = FALSE;
3492
3441
        GtkWidget* _tmp4_ = NULL;
3493
 
        gboolean _tmp8_ = FALSE;
3494
3442
        self = (ClocksAnalogFrame*) base;
3495
3443
        g_return_if_fail (allocation != NULL);
3496
3444
        _tmp0_ = *allocation;
3510
3458
        } else {
3511
3459
                _tmp3_ = FALSE;
3512
3460
        }
3513
 
        _tmp8_ = _tmp3_;
3514
 
        if (_tmp8_) {
 
3461
        if (_tmp3_) {
3515
3462
                gint w = 0;
3516
3463
                gint h = 0;
3517
 
                GtkWidget* _tmp9_ = NULL;
3518
 
                gint _tmp10_ = 0;
3519
 
                GtkWidget* _tmp11_ = NULL;
3520
 
                gint _tmp12_ = 0;
 
3464
                GtkWidget* _tmp8_ = NULL;
 
3465
                gint _tmp9_ = 0;
 
3466
                GtkWidget* _tmp10_ = NULL;
 
3467
                gint _tmp11_ = 0;
3521
3468
                GtkAllocation child_allocation = {0};
 
3469
                GtkAllocation _tmp12_ = {0};
3522
3470
                GtkAllocation _tmp13_ = {0};
3523
 
                GtkAllocation _tmp14_ = {0};
3524
 
                gint _tmp15_ = 0;
3525
 
                GtkAllocation _tmp16_ = {0};
 
3471
                gint _tmp14_ = 0;
 
3472
                GtkAllocation _tmp15_ = {0};
 
3473
                gint _tmp16_ = 0;
3526
3474
                gint _tmp17_ = 0;
3527
 
                gint _tmp18_ = 0;
3528
 
                GtkAllocation _tmp19_ = {0};
3529
 
                gint _tmp20_ = 0;
3530
 
                GtkAllocation _tmp21_ = {0};
 
3475
                GtkAllocation _tmp18_ = {0};
 
3476
                gint _tmp19_ = 0;
 
3477
                GtkAllocation _tmp20_ = {0};
 
3478
                gint _tmp21_ = 0;
3531
3479
                gint _tmp22_ = 0;
3532
3480
                gint _tmp23_ = 0;
3533
3481
                gint _tmp24_ = 0;
3534
 
                gint _tmp25_ = 0;
3535
 
                GtkWidget* _tmp26_ = NULL;
3536
 
                GtkAllocation _tmp27_ = {0};
3537
 
                _tmp9_ = child;
3538
 
                gtk_widget_get_preferred_width (_tmp9_, &_tmp10_, NULL);
3539
 
                w = _tmp10_;
3540
 
                _tmp11_ = child;
3541
 
                gtk_widget_get_preferred_height (_tmp11_, &_tmp12_, NULL);
3542
 
                h = _tmp12_;
3543
 
                child_allocation = _tmp13_;
3544
 
                _tmp14_ = *allocation;
3545
 
                _tmp15_ = _tmp14_.x;
3546
 
                _tmp16_ = *allocation;
3547
 
                _tmp17_ = _tmp16_.width;
3548
 
                _tmp18_ = w;
3549
 
                child_allocation.x = _tmp15_ + ((_tmp17_ - _tmp18_) / 2);
3550
 
                _tmp19_ = *allocation;
3551
 
                _tmp20_ = _tmp19_.y;
3552
 
                _tmp21_ = *allocation;
3553
 
                _tmp22_ = _tmp21_.height;
3554
 
                _tmp23_ = h;
3555
 
                child_allocation.y = _tmp20_ + ((_tmp22_ - _tmp23_) / 2);
3556
 
                _tmp24_ = w;
3557
 
                child_allocation.width = _tmp24_;
3558
 
                _tmp25_ = h;
3559
 
                child_allocation.height = _tmp25_;
3560
 
                _tmp26_ = child;
3561
 
                _tmp27_ = child_allocation;
3562
 
                gtk_widget_size_allocate (_tmp26_, &_tmp27_);
 
3482
                GtkWidget* _tmp25_ = NULL;
 
3483
                GtkAllocation _tmp26_ = {0};
 
3484
                _tmp8_ = child;
 
3485
                gtk_widget_get_preferred_width (_tmp8_, &_tmp9_, NULL);
 
3486
                w = _tmp9_;
 
3487
                _tmp10_ = child;
 
3488
                gtk_widget_get_preferred_height (_tmp10_, &_tmp11_, NULL);
 
3489
                h = _tmp11_;
 
3490
                child_allocation = _tmp12_;
 
3491
                _tmp13_ = *allocation;
 
3492
                _tmp14_ = _tmp13_.x;
 
3493
                _tmp15_ = *allocation;
 
3494
                _tmp16_ = _tmp15_.width;
 
3495
                _tmp17_ = w;
 
3496
                child_allocation.x = _tmp14_ + ((_tmp16_ - _tmp17_) / 2);
 
3497
                _tmp18_ = *allocation;
 
3498
                _tmp19_ = _tmp18_.y;
 
3499
                _tmp20_ = *allocation;
 
3500
                _tmp21_ = _tmp20_.height;
 
3501
                _tmp22_ = h;
 
3502
                child_allocation.y = _tmp19_ + ((_tmp21_ - _tmp22_) / 2);
 
3503
                _tmp23_ = w;
 
3504
                child_allocation.width = _tmp23_;
 
3505
                _tmp24_ = h;
 
3506
                child_allocation.height = _tmp24_;
 
3507
                _tmp25_ = child;
 
3508
                _tmp26_ = child_allocation;
 
3509
                gtk_widget_size_allocate (_tmp25_, &_tmp26_);
3563
3510
        }
3564
3511
        _g_object_unref0 (child);
3565
3512
}