~ubuntu-branches/ubuntu/trusty/gnome-contacts/trusty

« back to all changes in this revision

Viewing changes to src/contacts-row.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Jeremy Bicha, Michael Biebl
  • Date: 2013-09-19 18:23:06 UTC
  • mfrom: (1.3.10) (0.3.4 experimental)
  • mto: This revision was merged to the branch mainline in revision 40.
  • Revision ID: package-import@ubuntu.com-20130919182306-rcatwotzg94pr884
Tags: 3.8.3-1
[ Jeremy Bicha ]
* debian/control.in:
  - Drop alternate build-depends on valac-0.18 since it's no longer
    in Debian

[ Michael Biebl ]
* New upstream release.
* Loosen Build-Depends on libgnome-desktop-3-dev, we do not strictly require
  version (>= 3.6.0) which is not yet available in unstable.
* Bump Standards-Version to 3.9.4. No further changes.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* contacts-row.c generated by valac 0.15.1.23-684b1, the Vala compiler
 
1
/* contacts-row.c generated by valac 0.20.1, the Vala compiler
2
2
 * generated from contacts-row.vala, do not modify */
3
3
 
4
4
/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 8 -*- */
51
51
typedef struct _ContactsRow ContactsRow;
52
52
typedef struct _ContactsRowClass ContactsRowClass;
53
53
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
54
 
typedef struct _Block28Data Block28Data;
 
54
typedef struct _Block34Data Block34Data;
55
55
typedef struct _ContactsRowPrivate ContactsRowPrivate;
56
56
 
57
57
#define CONTACTS_ROW_TYPE_CHILD (contacts_row_child_get_type ())
89
89
        GeeArrayList* rows;
90
90
};
91
91
 
92
 
struct _Block28Data {
 
92
struct _Block34Data {
93
93
        int _ref_count_;
94
94
        ContactsRowGroup * self;
95
95
        ContactsRow* row;
143
143
ContactsRowGroup* contacts_row_group_copy (ContactsRowGroup* self);
144
144
ContactsRowGroupColumnInfo* contacts_row_group_get_column_info (ContactsRowGroup* self, gint col);
145
145
void contacts_row_group_add (ContactsRowGroup* self, ContactsRow* row);
146
 
static Block28Data* block28_data_ref (Block28Data* _data28_);
147
 
static void block28_data_unref (void * _userdata_);
148
 
static void __lambda29_ (Block28Data* _data28_, GtkWidget* widget);
149
 
static void ___lambda29__gtk_widget_destroy (GtkWidget* _sender, gpointer self);
 
146
static Block34Data* block34_data_ref (Block34Data* _data34_);
 
147
static void block34_data_unref (void * _userdata_);
 
148
static void __lambda134_ (Block34Data* _data34_, GtkWidget* widget);
 
149
static void ___lambda134__gtk_widget_destroy (GtkWidget* _sender, gpointer self);
150
150
static void contacts_row_group_queue_resize (ContactsRowGroup* self);
151
151
void contacts_row_group_set_column_priority (ContactsRowGroup* self, gint column, gint priority);
152
152
void contacts_row_group_set_column_min_width (ContactsRowGroup* self, gint column, gint min_width);
273
273
                        }
274
274
                }
275
275
        }
276
 
        _tmp18_ = gee_array_list_new (CONTACTS_TYPE_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
 
276
        _tmp18_ = gee_array_list_new (CONTACTS_TYPE_ROW, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
277
277
        _g_object_unref0 (self->priv->rows);
278
278
        self->priv->rows = _tmp18_;
279
279
        return self;
362
362
}
363
363
 
364
364
 
365
 
static Block28Data* block28_data_ref (Block28Data* _data28_) {
366
 
        g_atomic_int_inc (&_data28_->_ref_count_);
367
 
        return _data28_;
 
365
static Block34Data* block34_data_ref (Block34Data* _data34_) {
 
366
        g_atomic_int_inc (&_data34_->_ref_count_);
 
367
        return _data34_;
368
368
}
369
369
 
370
370
 
371
 
static void block28_data_unref (void * _userdata_) {
372
 
        Block28Data* _data28_;
373
 
        _data28_ = (Block28Data*) _userdata_;
374
 
        if (g_atomic_int_dec_and_test (&_data28_->_ref_count_)) {
 
371
static void block34_data_unref (void * _userdata_) {
 
372
        Block34Data* _data34_;
 
373
        _data34_ = (Block34Data*) _userdata_;
 
374
        if (g_atomic_int_dec_and_test (&_data34_->_ref_count_)) {
375
375
                ContactsRowGroup * self;
376
 
                self = _data28_->self;
377
 
                _g_object_unref0 (_data28_->row);
 
376
                self = _data34_->self;
 
377
                _g_object_unref0 (_data34_->row);
378
378
                _g_object_unref0 (self);
379
 
                g_slice_free (Block28Data, _data28_);
 
379
                g_slice_free (Block34Data, _data34_);
380
380
        }
381
381
}
382
382
 
383
383
 
384
 
static void __lambda29_ (Block28Data* _data28_, GtkWidget* widget) {
 
384
static void __lambda134_ (Block34Data* _data34_, GtkWidget* widget) {
385
385
        ContactsRowGroup * self;
386
386
        GeeArrayList* _tmp0_;
387
387
        ContactsRow* _tmp1_;
388
 
        self = _data28_->self;
 
388
        self = _data34_->self;
389
389
        g_return_if_fail (widget != NULL);
390
390
        _tmp0_ = self->priv->rows;
391
 
        _tmp1_ = _data28_->row;
 
391
        _tmp1_ = _data34_->row;
392
392
        gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
393
393
}
394
394
 
395
395
 
396
 
static void ___lambda29__gtk_widget_destroy (GtkWidget* _sender, gpointer self) {
397
 
        __lambda29_ (self, _sender);
 
396
static void ___lambda134__gtk_widget_destroy (GtkWidget* _sender, gpointer self) {
 
397
        __lambda134_ (self, _sender);
398
398
}
399
399
 
400
400
 
401
401
void contacts_row_group_add (ContactsRowGroup* self, ContactsRow* row) {
402
 
        Block28Data* _data28_;
 
402
        Block34Data* _data34_;
403
403
        ContactsRow* _tmp0_;
404
404
        ContactsRow* _tmp1_;
405
405
        GeeArrayList* _tmp2_;
407
407
        ContactsRow* _tmp4_;
408
408
        g_return_if_fail (self != NULL);
409
409
        g_return_if_fail (row != NULL);
410
 
        _data28_ = g_slice_new0 (Block28Data);
411
 
        _data28_->_ref_count_ = 1;
412
 
        _data28_->self = g_object_ref (self);
 
410
        _data34_ = g_slice_new0 (Block34Data);
 
411
        _data34_->_ref_count_ = 1;
 
412
        _data34_->self = g_object_ref (self);
413
413
        _tmp0_ = row;
414
414
        _tmp1_ = _g_object_ref0 (_tmp0_);
415
 
        _data28_->row = _tmp1_;
 
415
        _g_object_unref0 (_data34_->row);
 
416
        _data34_->row = _tmp1_;
416
417
        _tmp2_ = self->priv->rows;
417
 
        _tmp3_ = _data28_->row;
 
418
        _tmp3_ = _data34_->row;
418
419
        gee_abstract_collection_add ((GeeAbstractCollection*) _tmp2_, _tmp3_);
419
 
        _tmp4_ = _data28_->row;
420
 
        g_signal_connect_data ((GtkWidget*) _tmp4_, "destroy", (GCallback) ___lambda29__gtk_widget_destroy, block28_data_ref (_data28_), (GClosureNotify) block28_data_unref, 0);
421
 
        block28_data_unref (_data28_);
422
 
        _data28_ = NULL;
 
420
        _tmp4_ = _data34_->row;
 
421
        g_signal_connect_data ((GtkWidget*) _tmp4_, "destroy", (GCallback) ___lambda134__gtk_widget_destroy, block34_data_ref (_data34_), (GClosureNotify) block34_data_unref, 0);
 
422
        block34_data_unref (_data34_);
 
423
        _data34_ = NULL;
423
424
}
424
425
 
425
426
 
1330
1331
 
1331
1332
static void contacts_row_group_finalize (GObject* obj) {
1332
1333
        ContactsRowGroup * self;
1333
 
        self = CONTACTS_ROW_GROUP (obj);
 
1334
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONTACTS_TYPE_ROW_GROUP, ContactsRowGroup);
1334
1335
        self->priv->column_info = (g_free (self->priv->column_info), NULL);
1335
1336
        self->priv->cached_widths = (g_free (self->priv->cached_widths), NULL);
1336
1337
        _g_object_unref0 (self->priv->rows);
1448
1449
        gtk_widget_set_window ((GtkWidget*) self, _tmp13_);
1449
1450
        attributes.wclass = GDK_INPUT_ONLY;
1450
1451
        _tmp14_ = attributes;
1451
 
        _tmp15_ = gdk_window_new (window, &_tmp14_, (gint) (GDK_WA_X | GDK_WA_Y));
 
1452
        _tmp15_ = gdk_window_new (window, &_tmp14_, GDK_WA_X | GDK_WA_Y);
1452
1453
        _g_object_unref0 (self->event_window);
1453
1454
        self->event_window = _tmp15_;
1454
1455
        _tmp16_ = self->event_window;
1461
1462
        ContactsRow * self;
1462
1463
        GdkWindow* _tmp0_;
1463
1464
        GdkWindow* _tmp1_;
 
1465
        GdkWindow* _tmp2_;
1464
1466
        self = (ContactsRow*) base;
1465
1467
        _tmp0_ = self->event_window;
1466
1468
        gdk_window_set_user_data (_tmp0_, NULL);
1467
1469
        _tmp1_ = self->event_window;
1468
 
        gdk_window_destroy (_tmp1_);
 
1470
        _tmp2_ = _g_object_ref0 (_tmp1_);
 
1471
        gdk_window_destroy (_tmp2_);
1469
1472
        _g_object_unref0 (self->event_window);
1470
1473
        self->event_window = NULL;
1471
 
        GTK_WIDGET_CLASS (contacts_row_parent_class)->unrealize ((GtkWidget*) GTK_CONTAINER (self));
 
1474
        GTK_WIDGET_CLASS (contacts_row_parent_class)->unrealize ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_CONTAINER, GtkContainer));
1472
1475
}
1473
1476
 
1474
1477
 
1478
1481
        self = (ContactsRow*) base;
1479
1482
        _tmp0_ = self->event_window;
1480
1483
        gdk_window_show (_tmp0_);
1481
 
        GTK_WIDGET_CLASS (contacts_row_parent_class)->map ((GtkWidget*) GTK_CONTAINER (self));
 
1484
        GTK_WIDGET_CLASS (contacts_row_parent_class)->map ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_CONTAINER, GtkContainer));
1482
1485
}
1483
1486
 
1484
1487
 
1488
1491
        self = (ContactsRow*) base;
1489
1492
        _tmp0_ = self->event_window;
1490
1493
        gdk_window_hide (_tmp0_);
1491
 
        GTK_WIDGET_CLASS (contacts_row_parent_class)->unmap ((GtkWidget*) GTK_CONTAINER (self));
 
1494
        GTK_WIDGET_CLASS (contacts_row_parent_class)->unmap ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_CONTAINER, GtkContainer));
1492
1495
}
1493
1496
 
1494
1497
 
2059
2062
        gint _tmp3_;
2060
2063
        gboolean _tmp7_;
2061
2064
        g_return_val_if_fail (self != NULL, NULL);
2062
 
        _tmp0_ = gee_array_list_new (GTK_TYPE_WIDGET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
 
2065
        _tmp0_ = gee_array_list_new (GTK_TYPE_WIDGET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
2063
2066
        l = _tmp0_;
2064
2067
        _tmp2_ = row;
2065
2068
        _tmp3_ = self->priv->n_rows;
3615
3618
 
3616
3619
static void contacts_row_finalize (GObject* obj) {
3617
3620
        ContactsRow * self;
3618
 
        self = CONTACTS_ROW (obj);
 
3621
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONTACTS_TYPE_ROW, ContactsRow);
3619
3622
        _g_object_unref0 (self->event_window);
3620
3623
        _g_object_unref0 (self->priv->group);
3621
3624
        self->priv->row_children = (_vala_ContactsRowChild_array_free (self->priv->row_children, self->priv->row_children_length1 * self->priv->row_children_length2), NULL);