1
/* baobab-location.c generated by valac 0.17.4.2-5a035, the Vala compiler
1
/* baobab-location.c generated by valac 0.18.0.29-efcd0, the Vala compiler
2
2
* generated from baobab-location.vala, do not modify */
4
4
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
201
201
static void baobab_location_fill_from_mount (BaobabLocation* self);
202
202
BaobabLocation* baobab_location_new_for_main_volume (void);
203
203
BaobabLocation* baobab_location_construct_for_main_volume (GType object_type);
204
const gchar* baobab_location_get_name (BaobabLocation* self);
204
205
BaobabLocation* baobab_location_new_for_recent_info (GtkRecentInfo* recent_info);
205
206
BaobabLocation* baobab_location_construct_for_recent_info (GType object_type, GtkRecentInfo* recent_info);
206
207
BaobabLocation* baobab_location_new_for_file (GFile* file_);
221
222
static void baobab_location_mount_volume_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
222
223
BaobabLocation* baobab_location_new (void);
223
224
BaobabLocation* baobab_location_construct (GType object_type);
224
const gchar* baobab_location_get_name (BaobabLocation* self);
225
225
gboolean baobab_location_get_is_volume (BaobabLocation* self);
226
226
static guint64* _uint64_dup (guint64* self);
227
227
guint64* baobab_location_get_reserved (BaobabLocation* self);
683
684
_tmp0_ = baobab_location_get_hostname (self, &_inner_error_);
685
686
if (_inner_error_ != NULL) {
686
goto __catch4_g_error;
687
goto __catch5_g_error;
689
690
baobab_location_set_name (self, _tmp2_);
690
691
_g_free0 (_tmp2_);
695
696
GError* e = NULL;
696
const gchar* _tmp3_ = NULL;
697
697
e = _inner_error_;
698
698
_inner_error_ = NULL;
699
_tmp3_ = _ ("Main volume");
700
baobab_location_set_name (self, _tmp3_);
699
baobab_location_set_name (self, NULL);
701
700
_g_error_free0 (e);
704
703
if (_inner_error_ != NULL) {
705
704
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);
706
705
g_clear_error (&_inner_error_);
709
_tmp4_ = g_file_new_for_path ("/");
711
baobab_location_set_file (self, _tmp5_);
712
_g_object_unref0 (_tmp5_);
708
_tmp3_ = self->priv->_name;
709
if (_tmp3_ == NULL) {
710
const gchar* _tmp4_ = NULL;
711
_tmp4_ = _ ("Main volume");
712
baobab_location_set_name (self, _tmp4_);
714
_tmp5_ = g_file_new_for_path ("/");
716
baobab_location_set_file (self, _tmp6_);
717
_g_object_unref0 (_tmp6_);
713
718
baobab_location_get_file_info (self);
714
_tmp6_ = (GThemedIcon*) g_themed_icon_new ("drive-harddisk-system");
716
baobab_location_set_icon (self, (GIcon*) _tmp7_);
717
_g_object_unref0 (_tmp7_);
719
_tmp7_ = (GThemedIcon*) g_themed_icon_new ("drive-harddisk-system");
721
baobab_location_set_icon (self, (GIcon*) _tmp8_);
722
_g_object_unref0 (_tmp8_);
718
723
baobab_location_get_fs_usage (self);
719
_tmp8_ = self->priv->_file;
720
_tmp9_ = baobab_scanner_new (_tmp8_, BAOBAB_SCAN_FLAGS_EXCLUDE_MOUNTS);
722
baobab_location_set_scanner (self, _tmp10_);
723
_g_object_unref0 (_tmp10_);
724
_tmp9_ = self->priv->_file;
725
_tmp10_ = baobab_scanner_new (_tmp9_, BAOBAB_SCAN_FLAGS_EXCLUDE_MOUNTS);
727
baobab_location_set_scanner (self, _tmp11_);
728
_g_object_unref0 (_tmp11_);
951
956
_tmp1_ = g_file_query_info (_tmp0_, BAOBAB_LOCATION_FILE_ATTRIBUTES, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
953
958
if (_inner_error_ != NULL) {
954
goto __catch5_g_error;
959
goto __catch6_g_error;
957
962
baobab_location_set_info (self, _tmp3_);
958
963
_g_object_unref0 (_tmp3_);
963
968
GError* e = NULL;
964
969
e = _inner_error_;
966
971
baobab_location_set_info (self, NULL);
967
972
_g_error_free0 (e);
970
975
if (_inner_error_ != NULL) {
971
976
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);
972
977
g_clear_error (&_inner_error_);
1045
1050
_g_object_unref0 (info);
1050
1055
GError* e = NULL;
1051
1056
e = _inner_error_;
1052
1057
_inner_error_ = NULL;
1053
1058
_g_error_free0 (e);
1056
1061
if (_inner_error_ != NULL) {
1057
1062
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);
1058
1063
g_clear_error (&_inner_error_);