~ubuntu-branches/ubuntu/saucy/baobab/saucy

« back to all changes in this revision

Viewing changes to src/baobab-window.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-11-16 10:50:11 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20121116105011-ra4yyhh6le6djig2
Tags: 3.6.3-0ubuntu1
* New upstream release
* debian/patches/baobab_about_segfault.patch: 
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* baobab-window.c generated by valac 0.17.4.2-5a035, the Vala compiler
 
1
/* baobab-window.c generated by valac 0.18.0.29-efcd0, the Vala compiler
2
2
 * generated from baobab-window.vala, do not modify */
3
3
 
4
4
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
569
569
        {
570
570
                gtk_builder_add_from_resource (builder, "/org/gnome/baobab/ui/baobab-main-window.ui", &_inner_error_);
571
571
                if (_inner_error_ != NULL) {
572
 
                        goto __catch9_g_error;
 
572
                        goto __catch10_g_error;
573
573
                }
574
574
        }
575
 
        goto __finally9;
576
 
        __catch9_g_error:
 
575
        goto __finally10;
 
576
        __catch10_g_error:
577
577
        {
578
578
                GError* e = NULL;
579
579
                const gchar* _tmp3_;
583
583
                g_error ("baobab-window.vala:109: loading main builder file: %s", _tmp3_);
584
584
                _g_error_free0 (e);
585
585
        }
586
 
        __finally9:
 
586
        __finally10:
587
587
        if (_inner_error_ != NULL) {
588
588
                _g_object_unref0 (builder);
589
589
                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
995
995
                _tmp1_ = res;
996
996
                baobab_location_mount_volume_finish (_tmp0_, _tmp1_, &_inner_error_);
997
997
                if (_inner_error_ != NULL) {
998
 
                        goto __catch10_g_error;
 
998
                        goto __catch11_g_error;
999
999
                }
1000
1000
                baobab_window_scan_active_location (self, FALSE);
1001
1001
        }
1002
 
        goto __finally10;
1003
 
        __catch10_g_error:
 
1002
        goto __finally11;
 
1003
        __catch11_g_error:
1004
1004
        {
1005
1005
                GError* e = NULL;
1006
1006
                const gchar* _tmp2_ = NULL;
1014
1014
                baobab_window_message (self, _tmp2_, _tmp4_, GTK_MESSAGE_ERROR);
1015
1015
                _g_error_free0 (e);
1016
1016
        }
1017
 
        __finally10:
 
1017
        __finally11:
1018
1018
        if (_inner_error_ != NULL) {
1019
1019
                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1020
1020
                g_clear_error (&_inner_error_);
1044
1044
        _data2_->self = g_object_ref (self);
1045
1045
        _tmp0_ = location;
1046
1046
        _tmp1_ = _baobab_location_ref0 (_tmp0_);
 
1047
        _baobab_location_unref0 (_data2_->location);
1047
1048
        _data2_->location = _tmp1_;
1048
1049
        _tmp2_ = _data2_->location;
1049
1050
        baobab_window_set_active_location (self, _tmp2_);
1118
1119
                _tmp1_ = gtk_get_current_event_time ();
1119
1120
                gtk_show_uri (_tmp0_, "help:baobab", _tmp1_, &_inner_error_);
1120
1121
                if (_inner_error_ != NULL) {
1121
 
                        goto __catch11_g_error;
 
1122
                        goto __catch12_g_error;
1122
1123
                }
1123
1124
        }
1124
 
        goto __finally11;
1125
 
        __catch11_g_error:
 
1125
        goto __finally12;
 
1126
        __catch12_g_error:
1126
1127
        {
1127
1128
                GError* e = NULL;
1128
1129
                GError* _tmp2_;
1134
1135
                g_warning ("baobab-window.vala:288: Failed to show help: %s", _tmp3_);
1135
1136
                _g_error_free0 (e);
1136
1137
        }
1137
 
        __finally11:
 
1138
        __finally12:
1138
1139
        if (_inner_error_ != NULL) {
1139
1140
                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1140
1141
                g_clear_error (&_inner_error_);
1144
1145
 
1145
1146
 
1146
1147
static void baobab_window_on_about_activate (BaobabWindow* self) {
1147
 
        static const gchar* authors[] = {"Ryan Lortie <desrt@desrt.ca>", "Fabio Marzocca <thesaltydog@gmail.com>", "Paolo Borelli <pborelli@gnome.com>", "Stefano Facchini <stefano.facchini@gmail.com>", "Benoît Dejean <benoit@placenet.org>", "Igalia (rings-chart and treemap widget) <www.igalia.com>"};
 
1148
        static const gchar* authors[] = {"Ryan Lortie <desrt@desrt.ca>", "Fabio Marzocca <thesaltydog@gmail.com>", "Paolo Borelli <pborelli@gnome.com>", "Stefano Facchini <stefano.facchini@gmail.com>", "Benoît Dejean <benoit@placenet.org>", "Igalia (rings-chart and treemap widget) <www.igalia.com>", NULL};
1148
1149
        static const char copyright[] = "Copyright \xc2\xa9 2005-2011 Fabio Marzocca, Paolo Borelli, Benoît Dej" \
1149
1150
"ean, Igalia\n" "Copyright \xc2\xa9 2011-2012 Ryan Lortie, Paolo Borelli, Stefano Facch" \
1150
1151
"ini\n";
1469
1470
                        _tmp13_ = g_file_query_info (_tmp12_, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, 0, NULL, &_inner_error_);
1470
1471
                        info = _tmp13_;
1471
1472
                        if (_inner_error_ != NULL) {
1472
 
                                goto __catch12_g_error;
 
1473
                                goto __catch13_g_error;
1473
1474
                        }
1474
1475
                        _tmp14_ = info;
1475
1476
                        _tmp15_ = g_file_info_get_content_type (_tmp14_);
1490
1491
                                _g_object_unref0 (appinfo);
1491
1492
                                _g_free0 (content);
1492
1493
                                _g_object_unref0 (info);
1493
 
                                goto __catch12_g_error;
 
1494
                                goto __catch13_g_error;
1494
1495
                        }
1495
1496
                        __g_list_free__g_object_unref0_0 (files);
1496
1497
                        _g_object_unref0 (appinfo);
1497
1498
                        _g_free0 (content);
1498
1499
                        _g_object_unref0 (info);
1499
1500
                }
1500
 
                goto __finally12;
1501
 
                __catch12_g_error:
 
1501
                goto __finally13;
 
1502
                __catch13_g_error:
1502
1503
                {
1503
1504
                        GError* e = NULL;
1504
1505
                        GError* _tmp23_;
1507
1508
                        _inner_error_ = NULL;
1508
1509
                        _tmp23_ = e;
1509
1510
                        _tmp24_ = _tmp23_->message;
1510
 
                        g_warning ("baobab-window.vala:402: Failed open file with application: %s", _tmp24_);
 
1511
                        g_warning ("baobab-window.vala:403: Failed open file with application: %s", _tmp24_);
1511
1512
                        _g_error_free0 (e);
1512
1513
                }
1513
 
                __finally12:
 
1514
                __finally13:
1514
1515
                if (_inner_error_ != NULL) {
1515
1516
                        _g_object_unref0 (file);
1516
1517
                        _g_free0 (parse_name);
1626
1627
                        _tmp12_ = file;
1627
1628
                        g_file_trash (_tmp12_, NULL, &_inner_error_);
1628
1629
                        if (_inner_error_ != NULL) {
1629
 
                                goto __catch13_g_error;
 
1630
                                goto __catch14_g_error;
1630
1631
                        }
1631
1632
                        _tmp13_ = self->priv->active_location;
1632
1633
                        _tmp14_ = baobab_location_get_scanner (_tmp13_);
1633
1634
                        _tmp15_ = _tmp14_;
1634
1635
                        gtk_tree_store_remove ((GtkTreeStore*) _tmp15_, &iter);
1635
1636
                }
1636
 
                goto __finally13;
1637
 
                __catch13_g_error:
 
1637
                goto __finally14;
 
1638
                __catch14_g_error:
1638
1639
                {
1639
1640
                        GError* e = NULL;
1640
1641
                        GError* _tmp16_;
1643
1644
                        _inner_error_ = NULL;
1644
1645
                        _tmp16_ = e;
1645
1646
                        _tmp17_ = _tmp16_->message;
1646
 
                        g_warning ("baobab-window.vala:430: Failed to move file to the trash: %s", _tmp17_);
 
1647
                        g_warning ("baobab-window.vala:431: Failed to move file to the trash: %s", _tmp17_);
1647
1648
                        _g_error_free0 (e);
1648
1649
                }
1649
 
                __finally13:
 
1650
                __finally14:
1650
1651
                if (_inner_error_ != NULL) {
1651
1652
                        _g_object_unref0 (file);
1652
1653
                        _g_free0 (parse_name);
2128
2129
                baobab_scanner_finish (_data4_->scanner, &_inner_error_);
2129
2130
                if (_inner_error_ != NULL) {
2130
2131
                        if (g_error_matches (_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
2131
 
                                goto __catch14_g_io_error_cancelled;
 
2132
                                goto __catch15_g_io_error_cancelled;
2132
2133
                        }
2133
 
                        goto __catch14_g_error;
 
2134
                        goto __catch15_g_error;
2134
2135
                }
2135
2136
        }
2136
 
        goto __finally14;
2137
 
        __catch14_g_io_error_cancelled:
 
2137
        goto __finally15;
 
2138
        __catch15_g_io_error_cancelled:
2138
2139
        {
2139
2140
                GError* e = NULL;
2140
2141
                gulong _tmp0_;
2150
2151
                _g_error_free0 (e);
2151
2152
                return;
2152
2153
        }
2153
 
        goto __finally14;
2154
 
        __catch14_g_error:
 
2154
        goto __finally15;
 
2155
        __catch15_g_error:
2155
2156
        {
2156
2157
                GError* e = NULL;
2157
2158
                const gchar* _tmp2_ = NULL;
2183
2184
                _g_free0 (primary);
2184
2185
                _g_error_free0 (e);
2185
2186
        }
2186
 
        __finally14:
 
2187
        __finally15:
2187
2188
        if (_inner_error_ != NULL) {
2188
2189
                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
2189
2190
                g_clear_error (&_inner_error_);