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

« back to all changes in this revision

Viewing changes to src/contacts-menu-button.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-menu-button.c generated by valac 0.15.1.23-684b1, the Vala compiler
 
1
/* contacts-menu-button.c generated by valac 0.20.1, the Vala compiler
2
2
 * generated from contacts-menu-button.vala, do not modify */
3
3
 
4
4
/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 8 -*- */
95
95
        ContactsMenuButton * self = NULL;
96
96
        const gchar* _tmp0_;
97
97
        GtkLabel* _tmp1_;
98
 
        GtkLabel* _tmp2_;
99
98
        GtkLabel* label_widget;
100
 
        GtkArrow* _tmp3_;
101
 
        GtkArrow* _tmp4_;
 
99
        GtkArrow* _tmp2_;
102
100
        GtkArrow* arrow;
103
 
        GtkGrid* _tmp5_;
104
 
        GtkGrid* _tmp6_;
 
101
        GtkGrid* _tmp3_;
105
102
        GtkGrid* grid;
106
103
        g_return_val_if_fail (label != NULL, NULL);
107
104
        self = (ContactsMenuButton*) g_object_new (object_type, NULL);
108
105
        gtk_button_set_focus_on_click ((GtkButton*) self, FALSE);
109
106
        _tmp0_ = label;
110
107
        _tmp1_ = (GtkLabel*) gtk_label_new (_tmp0_);
111
 
        _tmp2_ = g_object_ref_sink (_tmp1_);
112
 
        label_widget = _tmp2_;
113
 
        _tmp3_ = (GtkArrow*) gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
114
 
        _tmp4_ = g_object_ref_sink (_tmp3_);
115
 
        arrow = _tmp4_;
116
 
        _tmp5_ = (GtkGrid*) gtk_grid_new ();
117
 
        _tmp6_ = g_object_ref_sink (_tmp5_);
118
 
        grid = _tmp6_;
 
108
        g_object_ref_sink (_tmp1_);
 
109
        label_widget = _tmp1_;
 
110
        _tmp2_ = (GtkArrow*) gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
 
111
        g_object_ref_sink (_tmp2_);
 
112
        arrow = _tmp2_;
 
113
        _tmp3_ = (GtkGrid*) gtk_grid_new ();
 
114
        g_object_ref_sink (_tmp3_);
 
115
        grid = _tmp3_;
119
116
        gtk_orientable_set_orientation ((GtkOrientable*) grid, GTK_ORIENTATION_HORIZONTAL);
120
117
        gtk_container_add ((GtkContainer*) grid, (GtkWidget*) label_widget);
121
118
        gtk_container_add ((GtkContainer*) grid, (GtkWidget*) arrow);
386
383
        gtk_menu_set_monitor (_tmp88_, _tmp89_);
387
384
        _tmp90_ = menu;
388
385
        _tmp91_ = gtk_widget_get_parent ((GtkWidget*) _tmp90_);
389
 
        _tmp92_ = _g_object_ref0 (CONTACTS_IS_WINDOW (_tmp91_) ? ((ContactsWindow*) _tmp91_) : NULL);
 
386
        _tmp92_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp91_, CONTACTS_TYPE_WINDOW) ? ((ContactsWindow*) _tmp91_) : NULL);
390
387
        toplevel = _tmp92_;
391
388
        _tmp94_ = toplevel;
392
389
        if (_tmp94_ != NULL) {
486
483
        _tmp1_ = _g_object_ref0 (_tmp0_);
487
484
        ewidget = _tmp1_;
488
485
        _tmp3_ = ewidget;
489
 
        if (_tmp3_ != GTK_WIDGET (self)) {
 
486
        if (_tmp3_ != G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_WIDGET, GtkWidget)) {
490
487
                _tmp2_ = TRUE;
491
488
        } else {
492
489
                gboolean _tmp4_ = FALSE;
534
531
        _tmp2_ = _g_object_ref0 (_tmp1_);
535
532
        ewidget = _tmp2_;
536
533
        _tmp5_ = ewidget;
537
 
        if (_tmp5_ == GTK_WIDGET (self)) {
 
534
        if (_tmp5_ == G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_WIDGET, GtkWidget)) {
538
535
                gboolean _tmp6_;
539
536
                _tmp6_ = popup_in_progress_saved;
540
537
                _tmp4_ = !_tmp6_;
559
556
                return result;
560
557
        }
561
558
        _tmp11_ = ewidget;
562
 
        if (_tmp11_ != GTK_WIDGET (self)) {
 
559
        if (_tmp11_ != G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_WIDGET, GtkWidget)) {
563
560
                GtkMenu* _tmp12_;
564
561
                _tmp12_ = self->priv->menu;
565
562
                gtk_menu_popdown (_tmp12_);
658
655
        self = (ContactsMenuButton*) base;
659
656
        g_return_val_if_fail (cr != NULL, FALSE);
660
657
        _tmp0_ = cr;
661
 
        GTK_WIDGET_CLASS (contacts_menu_button_parent_class)->draw ((GtkWidget*) GTK_TOGGLE_BUTTON (self), _tmp0_);
 
658
        GTK_WIDGET_CLASS (contacts_menu_button_parent_class)->draw ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton), _tmp0_);
662
659
        result = FALSE;
663
660
        return result;
664
661
}
683
680
 
684
681
static void contacts_menu_button_finalize (GObject* obj) {
685
682
        ContactsMenuButton * self;
686
 
        self = CONTACTS_MENU_BUTTON (obj);
 
683
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, CONTACTS_TYPE_MENU_BUTTON, ContactsMenuButton);
687
684
        contacts_menu_button_set_menu (self, NULL);
688
685
        _g_object_unref0 (self->priv->menu);
689
686
        G_OBJECT_CLASS (contacts_menu_button_parent_class)->finalize (obj);