726
726
static void key_item_changed (Key* self, const gchar* key) {
727
727
gboolean _tmp0_ = FALSE;
728
728
gboolean _tmp1_ = FALSE;
729
const gchar* _tmp2_ = NULL;
730
730
gboolean _tmp3_ = FALSE;
731
733
g_return_if_fail (self != NULL);
732
734
g_return_if_fail (key != NULL);
734
736
_tmp3_ = g_str_has_suffix (_tmp2_, "/");
736
const gchar* _tmp4_ = NULL;
737
const gchar* _tmp5_ = NULL;
738
740
gboolean _tmp6_ = FALSE;
739
741
_tmp4_ = self->full_name;
749
const gchar* _tmp7_ = NULL;
750
const gchar* _tmp8_ = NULL;
752
_tmp8_ = self->full_name;
753
_tmp0_ = g_strcmp0 (_tmp7_, _tmp8_) == 0;
755
_tmp9_ = self->full_name;
756
_tmp0_ = g_strcmp0 (_tmp8_, _tmp9_) == 0;
756
760
g_signal_emit_by_name (self, "value-changed");
771
775
static void _key_item_changed_settings_model_item_changed (SettingsModel* _sender, const gchar* key, gpointer self) {
772
key_item_changed ((Key*) self, key);
776
key_item_changed (self, key);
776
780
Key* key_construct (GType object_type, SettingsModel* model, Directory* parent, const gchar* name, const gchar* full_name) {
777
781
Key * self = NULL;
778
SettingsModel* _tmp0_ = NULL;
779
SettingsModel* _tmp1_ = NULL;
780
Directory* _tmp2_ = NULL;
781
Directory* _tmp3_ = NULL;
782
const gchar* _tmp4_ = NULL;
783
gchar* _tmp5_ = NULL;
784
const gchar* _tmp6_ = NULL;
785
gchar* _tmp7_ = NULL;
786
SettingsModel* _tmp8_ = NULL;
787
SchemaList* _tmp9_ = NULL;
788
GHashTable* _tmp10_ = NULL;
789
const gchar* _tmp11_ = NULL;
782
SettingsModel* _tmp0_;
783
SettingsModel* _tmp1_;
790
SettingsModel* _tmp8_;
793
const gchar* _tmp11_;
790
794
gconstpointer _tmp12_ = NULL;
791
SchemaKey* _tmp13_ = NULL;
792
SettingsModel* _tmp14_ = NULL;
796
SettingsModel* _tmp14_;
793
797
g_return_val_if_fail (model != NULL, NULL);
794
798
g_return_val_if_fail (parent != NULL, NULL);
795
799
g_return_val_if_fail (name != NULL, NULL);
916
920
const gchar* key_get_type_string (Key* self) {
917
921
const gchar* result;
918
GVariant* _tmp0_ = NULL;
919
GVariant* _tmp1_ = NULL;
920
924
g_return_val_if_fail (self != NULL, NULL);
921
925
_tmp0_ = key_get_value (self);
923
927
if (_tmp1_ != NULL) {
924
928
gboolean _tmp2_ = FALSE;
925
929
gboolean _tmp3_ = FALSE;
926
GVariant* _tmp4_ = NULL;
927
GVariant* _tmp5_ = NULL;
928
const GVariantType* _tmp6_ = NULL;
932
const GVariantType* _tmp6_;
929
933
gboolean _tmp7_ = FALSE;
930
936
_tmp4_ = key_get_value (self);
932
938
_tmp6_ = G_VARIANT_TYPE_STRING;
933
939
_tmp7_ = g_variant_is_of_type (_tmp5_, _tmp6_);
935
gboolean _tmp8_ = FALSE;
936
gboolean _tmp9_ = FALSE;
937
943
_tmp8_ = key_get_has_schema (self);
944
SchemaKey* _tmp10_ = NULL;
945
const gchar* _tmp11_ = NULL;
946
_tmp10_ = self->schema;
947
_tmp11_ = _tmp10_->enum_name;
948
_tmp2_ = _tmp11_ != NULL;
952
const gchar* _tmp12_;
953
_tmp11_ = self->schema;
954
_tmp12_ = _tmp11_->enum_name;
955
_tmp2_ = _tmp12_ != NULL;
953
961
result = "<enum>";
956
GVariant* _tmp12_ = NULL;
957
GVariant* _tmp13_ = NULL;
958
const gchar* _tmp14_ = NULL;
959
_tmp12_ = key_get_value (self);
961
_tmp14_ = g_variant_get_type_string (_tmp13_);
966
const gchar* _tmp16_ = NULL;
967
_tmp14_ = key_get_value (self);
969
_tmp16_ = g_variant_get_type_string (_tmp15_);
966
SchemaKey* _tmp15_ = NULL;
967
const gchar* _tmp16_ = NULL;
968
_tmp15_ = self->schema;
969
_tmp16_ = _tmp15_->type;
975
const gchar* _tmp18_;
976
_tmp17_ = self->schema;
977
_tmp18_ = _tmp17_->type;
1166
1174
Directory* directory_construct (GType object_type, SettingsModel* model, Directory* parent, const gchar* name, const gchar* full_name) {
1167
1175
Directory * self = NULL;
1168
SettingsModel* _tmp0_ = NULL;
1169
SettingsModel* _tmp1_ = NULL;
1170
Directory* _tmp2_ = NULL;
1171
Directory* _tmp3_ = NULL;
1172
const gchar* _tmp4_ = NULL;
1173
gchar* _tmp5_ = NULL;
1174
const gchar* _tmp6_ = NULL;
1175
gchar* _tmp7_ = NULL;
1176
SettingsModel* _tmp0_;
1177
SettingsModel* _tmp1_;
1180
const gchar* _tmp4_;
1182
const gchar* _tmp6_;
1176
1184
g_return_val_if_fail (model != NULL, NULL);
1177
1185
g_return_val_if_fail (name != NULL, NULL);
1178
1186
g_return_val_if_fail (full_name != NULL, NULL);
1205
1213
static gint _directory_compare_directories_gcompare_func (gconstpointer a, gconstpointer b) {
1207
result = directory_compare_directories ((Directory*) a, (Directory*) b);
1215
result = directory_compare_directories (a, b);
1212
1220
Directory* directory_get_child (Directory* self, const gchar* name) {
1213
1221
Directory* result = NULL;
1214
Directory* directory = NULL;
1215
GHashTable* _tmp0_ = NULL;
1216
const gchar* _tmp1_ = NULL;
1223
const gchar* _tmp1_;
1217
1224
gconstpointer _tmp2_ = NULL;
1218
Directory* _tmp3_ = NULL;
1219
Directory* _tmp4_ = NULL;
1226
Directory* directory;
1220
1228
g_return_val_if_fail (self != NULL, NULL);
1221
1229
g_return_val_if_fail (name != NULL, NULL);
1222
1230
_tmp0_ = self->_child_map;
1226
1234
directory = _tmp3_;
1227
1235
_tmp4_ = directory;
1228
1236
if (_tmp4_ == NULL) {
1229
SettingsModel* _tmp5_ = NULL;
1230
const gchar* _tmp6_ = NULL;
1231
const gchar* _tmp7_ = NULL;
1232
const gchar* _tmp8_ = NULL;
1233
gchar* _tmp9_ = NULL;
1234
gchar* _tmp10_ = NULL;
1235
gchar* _tmp11_ = NULL;
1236
gchar* _tmp12_ = NULL;
1237
Directory* _tmp13_ = NULL;
1238
Directory* _tmp14_ = NULL;
1239
Directory* _tmp15_ = NULL;
1240
GHashTable* _tmp16_ = NULL;
1241
const gchar* _tmp17_ = NULL;
1242
gchar* _tmp18_ = NULL;
1243
Directory* _tmp19_ = NULL;
1244
Directory* _tmp20_ = NULL;
1237
SettingsModel* _tmp5_;
1238
const gchar* _tmp6_;
1239
const gchar* _tmp7_;
1240
const gchar* _tmp8_;
1248
GHashTable* _tmp16_;
1249
const gchar* _tmp17_;
1245
1253
_tmp5_ = self->priv->model;
1247
1255
_tmp7_ = self->full_name;
1273
1281
static gint directory_compare_directories (Directory* a, Directory* b) {
1274
1282
gint result = 0;
1275
GCompareFunc _tmp0_ = NULL;
1276
Directory* _tmp1_ = NULL;
1277
const gchar* _tmp2_ = NULL;
1278
Directory* _tmp3_ = NULL;
1279
const gchar* _tmp4_ = NULL;
1283
GCompareFunc _tmp0_;
1285
const gchar* _tmp2_;
1287
const gchar* _tmp4_;
1280
1288
gint _tmp5_ = 0;
1281
1289
g_return_val_if_fail (a != NULL, 0);
1282
1290
g_return_val_if_fail (b != NULL, 0);
1294
1302
static gint _directory_compare_keys_gcompare_func (gconstpointer a, gconstpointer b) {
1296
result = directory_compare_keys ((Key*) a, (Key*) b);
1304
result = directory_compare_keys (a, b);
1301
1309
Key* directory_get_key (Directory* self, const gchar* name) {
1302
1310
Key* result = NULL;
1304
GHashTable* _tmp0_ = NULL;
1305
const gchar* _tmp1_ = NULL;
1312
const gchar* _tmp1_;
1306
1313
gconstpointer _tmp2_ = NULL;
1309
1317
g_return_val_if_fail (self != NULL, NULL);
1310
1318
g_return_val_if_fail (name != NULL, NULL);
1311
1319
_tmp0_ = self->_key_map;
1317
1325
if (_tmp4_ == NULL) {
1318
SettingsModel* _tmp5_ = NULL;
1319
const gchar* _tmp6_ = NULL;
1320
const gchar* _tmp7_ = NULL;
1321
const gchar* _tmp8_ = NULL;
1322
gchar* _tmp9_ = NULL;
1323
gchar* _tmp10_ = NULL;
1324
Key* _tmp11_ = NULL;
1325
Key* _tmp12_ = NULL;
1326
Key* _tmp13_ = NULL;
1327
GHashTable* _tmp14_ = NULL;
1328
const gchar* _tmp15_ = NULL;
1329
gchar* _tmp16_ = NULL;
1330
Key* _tmp17_ = NULL;
1331
Key* _tmp18_ = NULL;
1326
SettingsModel* _tmp5_;
1327
const gchar* _tmp6_;
1328
const gchar* _tmp7_;
1329
const gchar* _tmp8_;
1335
GHashTable* _tmp14_;
1336
const gchar* _tmp15_;
1332
1340
_tmp5_ = self->priv->model;
1334
1342
_tmp7_ = self->full_name;
1357
1365
gint directory_compare_keys (Key* a, Key* b) {
1358
1366
gint result = 0;
1359
GCompareFunc _tmp0_ = NULL;
1361
const gchar* _tmp2_ = NULL;
1363
const gchar* _tmp4_ = NULL;
1367
GCompareFunc _tmp0_;
1369
const gchar* _tmp2_;
1371
const gchar* _tmp4_;
1364
1372
gint _tmp5_ = 0;
1365
1373
g_return_val_if_fail (a != NULL, 0);
1366
1374
g_return_val_if_fail (b != NULL, 0);
1378
1386
void directory_load_schema (Directory* self, Schema* schema, const gchar* path) {
1379
const gchar* _tmp0_ = NULL;
1387
const gchar* _tmp0_;
1380
1388
g_return_if_fail (self != NULL);
1381
1389
g_return_if_fail (schema != NULL);
1382
1390
g_return_if_fail (path != NULL);
1384
1392
if (g_strcmp0 (_tmp0_, "") == 0) {
1385
Schema* _tmp1_ = NULL;
1386
GHashTable* _tmp2_ = NULL;
1387
1395
GList* _tmp3_ = NULL;
1388
1396
_tmp1_ = schema;
1389
1397
_tmp2_ = _tmp1_->keys;
1410
1418
_g_list_free0 (schema_key_collection);
1413
gchar** tokens = NULL;
1414
const gchar* _tmp8_ = NULL;
1415
gchar** _tmp9_ = NULL;
1421
const gchar* _tmp8_;
1416
1423
gchar** _tmp10_ = NULL;
1417
gint tokens_length1 = 0;
1418
gint _tokens_size_ = 0;
1420
gchar** _tmp11_ = NULL;
1421
gint _tmp11__length1 = 0;
1422
const gchar* _tmp12_ = NULL;
1423
gchar* _tmp13_ = NULL;
1424
Directory* directory = NULL;
1425
const gchar* _tmp14_ = NULL;
1425
gint tokens_length1;
1428
gint _tmp11__length1;
1429
const gchar* _tmp12_;
1432
const gchar* _tmp14_;
1426
1433
Directory* _tmp15_ = NULL;
1427
Directory* _tmp16_ = NULL;
1428
Schema* _tmp17_ = NULL;
1429
gchar** _tmp18_ = NULL;
1430
gint _tmp18__length1 = 0;
1431
const gchar* _tmp19_ = NULL;
1434
Directory* directory;
1438
gint _tmp18__length1;
1439
const gchar* _tmp19_;
1433
1441
_tmp10_ = _tmp9_ = g_strsplit (_tmp8_, "/", 2);
1434
1442
tokens = _tmp10_;
1458
1466
static gchar* string_slice (const gchar* self, glong start, glong end) {
1459
1467
gchar* result = NULL;
1460
glong string_length = 0L;
1470
glong string_length;
1465
1473
gboolean _tmp8_ = FALSE;
1467
gboolean _tmp12_ = FALSE;
1474
gchar* _tmp21_ = NULL;
1476
gboolean _tmp13_ = FALSE;
1484
gchar* _tmp23_ = NULL;
1475
1485
g_return_val_if_fail (self != NULL, NULL);
1476
1486
_tmp0_ = strlen (self);
1477
1487
_tmp1_ = _tmp0_;
1478
1488
string_length = (glong) _tmp1_;
1479
1489
_tmp2_ = start;
1480
1490
if (_tmp2_ < ((glong) 0)) {
1483
1493
_tmp3_ = string_length;
1484
1494
_tmp4_ = start;
1485
1495
start = _tmp3_ + _tmp4_;
1488
1498
if (_tmp5_ < ((glong) 0)) {
1491
1501
_tmp6_ = string_length;
1493
1503
end = _tmp6_ + _tmp7_;
1495
1505
_tmp9_ = start;
1496
1506
if (_tmp9_ >= ((glong) 0)) {
1499
1509
_tmp10_ = start;
1500
1510
_tmp11_ = string_length;
1501
1511
_tmp8_ = _tmp10_ <= _tmp11_;
1503
1513
_tmp8_ = FALSE;
1505
g_return_val_if_fail (_tmp8_, NULL);
1507
if (_tmp13_ >= ((glong) 0)) {
1511
_tmp15_ = string_length;
1512
_tmp12_ = _tmp14_ <= _tmp15_;
1516
1516
g_return_val_if_fail (_tmp12_, NULL);
1519
g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
1518
if (_tmp14_ >= ((glong) 0)) {
1522
_tmp16_ = string_length;
1523
_tmp13_ = _tmp15_ <= _tmp16_;
1528
g_return_val_if_fail (_tmp17_, NULL);
1520
1529
_tmp18_ = start;
1531
g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
1522
1532
_tmp20_ = start;
1523
_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
1535
_tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
1529
1541
static void directory_update_children (Directory* self) {
1530
gboolean _tmp0_ = FALSE;
1531
gchar** items = NULL;
1532
SettingsModel* _tmp1_ = NULL;
1533
DConfClient* _tmp2_ = NULL;
1534
const gchar* _tmp3_ = NULL;
1543
SettingsModel* _tmp1_;
1544
DConfClient* _tmp2_;
1545
const gchar* _tmp3_;
1535
1546
gint _tmp4_ = 0;
1536
1547
gchar** _tmp5_ = NULL;
1537
gint items_length1 = 0;
1538
gint _items_size_ = 0;
1539
1551
g_return_if_fail (self != NULL);
1540
1552
_tmp0_ = self->priv->have_children;
1550
1562
items_length1 = _tmp4_;
1551
1563
_items_size_ = items_length1;
1556
gboolean _tmp6_ = FALSE;
1560
gchar** _tmp9_ = NULL;
1561
gint _tmp9__length1 = 0;
1562
gchar* item_name = NULL;
1563
const gchar* _tmp10_ = NULL;
1564
gchar** _tmp11_ = NULL;
1565
gint _tmp11__length1 = 0;
1567
const gchar* _tmp13_ = NULL;
1568
gchar* _tmp14_ = NULL;
1569
const gchar* _tmp15_ = NULL;
1570
gboolean _tmp16_ = FALSE;
1574
gint _tmp10__length1;
1575
const gchar* _tmp11_;
1577
gint _tmp12__length1;
1579
const gchar* _tmp14_;
1582
const gchar* _tmp16_;
1583
gboolean _tmp17_ = FALSE;
1576
1590
_tmp6_ = FALSE;
1579
_tmp9__length1 = items_length1;
1580
if (!(_tmp8_ < _tmp9__length1)) {
1593
_tmp10__length1 = items_length1;
1594
if (!(_tmp9_ < _tmp10__length1)) {
1583
_tmp10_ = self->full_name;
1585
_tmp11__length1 = items_length1;
1587
_tmp13_ = _tmp11_[_tmp12_];
1588
_tmp14_ = g_strconcat (_tmp10_, _tmp13_, NULL);
1589
item_name = _tmp14_;
1590
_tmp15_ = item_name;
1591
_tmp16_ = dconf_is_dir (_tmp15_, NULL);
1593
gchar* dir_name = NULL;
1594
gchar** _tmp17_ = NULL;
1595
gint _tmp17__length1 = 0;
1597
const gchar* _tmp19_ = NULL;
1598
gchar* _tmp20_ = NULL;
1599
const gchar* _tmp21_ = NULL;
1600
Directory* _tmp22_ = NULL;
1597
_tmp11_ = self->full_name;
1599
_tmp12__length1 = items_length1;
1601
_tmp14_ = _tmp12_[_tmp13_];
1602
_tmp15_ = g_strconcat (_tmp11_, _tmp14_, NULL);
1603
item_name = _tmp15_;
1604
_tmp16_ = item_name;
1605
_tmp17_ = dconf_is_dir (_tmp16_, NULL);
1608
gint _tmp18__length1;
1610
const gchar* _tmp20_;
1611
gchar* _tmp21_ = NULL;
1613
const gchar* _tmp22_;
1601
1614
Directory* _tmp23_ = NULL;
1603
_tmp17__length1 = items_length1;
1605
_tmp19_ = _tmp17_[_tmp18_];
1606
_tmp20_ = string_slice (_tmp19_, (glong) 0, (glong) (-1));
1609
_tmp22_ = directory_get_child (self, _tmp21_);
1611
_g_object_unref0 (_tmp23_);
1617
_tmp18__length1 = items_length1;
1619
_tmp20_ = _tmp18_[_tmp19_];
1620
_tmp21_ = string_slice (_tmp20_, (glong) 0, (glong) (-1));
1623
_tmp23_ = directory_get_child (self, _tmp22_);
1625
_g_object_unref0 (_tmp24_);
1612
1626
_g_free0 (dir_name);
1614
gchar** _tmp24_ = NULL;
1615
gint _tmp24__length1 = 0;
1617
const gchar* _tmp26_ = NULL;
1618
Key* _tmp27_ = NULL;
1629
gint _tmp25__length1;
1631
const gchar* _tmp27_;
1619
1632
Key* _tmp28_ = NULL;
1621
_tmp24__length1 = items_length1;
1623
_tmp26_ = _tmp24_[_tmp25_];
1624
_tmp27_ = directory_get_key (self, _tmp26_);
1626
_g_object_unref0 (_tmp28_);
1635
_tmp25__length1 = items_length1;
1637
_tmp27_ = _tmp25_[_tmp26_];
1638
_tmp28_ = directory_get_key (self, _tmp27_);
1640
_g_object_unref0 (_tmp29_);
1628
1642
_g_free0 (item_name);
1636
1650
KeyModel* directory_get_key_model (Directory* self) {
1637
1651
KeyModel* result;
1638
KeyModel* _tmp0_ = NULL;
1639
KeyModel* _tmp2_ = NULL;
1640
1654
g_return_val_if_fail (self != NULL, NULL);
1641
1655
directory_update_children (self);
1642
1656
_tmp0_ = self->priv->_key_model;
1643
1657
if (_tmp0_ == NULL) {
1644
KeyModel* _tmp1_ = NULL;
1645
1659
_tmp1_ = key_model_new (self);
1646
1660
_g_object_unref0 (self->priv->_key_model);
1647
1661
self->priv->_key_model = _tmp1_;
1816
1830
static void _key_model_key_changed_cb_key_value_changed (Key* _sender, gpointer self) {
1817
key_model_key_changed_cb ((KeyModel*) self, _sender);
1831
key_model_key_changed_cb (self, _sender);
1821
1835
KeyModel* key_model_construct (GType object_type, Directory* directory) {
1822
1836
KeyModel * self = NULL;
1823
Directory* _tmp0_ = NULL;
1824
Directory* _tmp1_ = NULL;
1825
Directory* _tmp2_ = NULL;
1826
GList* _tmp3_ = NULL;
1827
GList* _tmp4_ = NULL;
1828
1842
g_return_val_if_fail (directory != NULL, NULL);
1829
1843
self = (KeyModel*) g_object_new (object_type, NULL);
1830
1844
_tmp0_ = directory;
1875
gboolean _tmp2_ = FALSE;
1878
GtkTreeIter _tmp4_ = {0};
1880
1894
Key* _tmp6_ = NULL;
1882
gboolean _tmp8_ = FALSE;
1884
gboolean _tmp3_ = FALSE;
1885
_tmp3_ = gtk_tree_model_iter_next ((GtkTreeModel*) self, &iter);
1900
gboolean _tmp4_ = FALSE;
1901
_tmp4_ = gtk_tree_model_iter_next ((GtkTreeModel*) self, &iter);
1890
1906
_tmp2_ = FALSE;
1892
_tmp5_ = key_model_get_key (self, &_tmp4_);
1895
_tmp8_ = _tmp6_ == _tmp7_;
1896
_g_object_unref0 (_tmp6_);
1898
GtkTreeIter _tmp9_ = {0};
1899
GtkTreePath* _tmp10_ = NULL;
1908
_tmp6_ = key_model_get_key (self, &_tmp5_);
1911
_tmp9_ = _tmp7_ == _tmp8_;
1912
_g_object_unref0 (_tmp7_);
1914
GtkTreeIter _tmp10_;
1900
1915
GtkTreePath* _tmp11_ = NULL;
1901
GtkTreeIter _tmp12_ = {0};
1903
_tmp10_ = gtk_tree_model_get_path ((GtkTreeModel*) self, &_tmp9_);
1906
gtk_tree_model_row_changed ((GtkTreeModel*) self, _tmp11_, &_tmp12_);
1907
_gtk_tree_path_free0 (_tmp11_);
1916
GtkTreePath* _tmp12_;
1917
GtkTreeIter _tmp13_;
1919
_tmp11_ = gtk_tree_model_get_path ((GtkTreeModel*) self, &_tmp10_);
1922
gtk_tree_model_row_changed ((GtkTreeModel*) self, _tmp12_, &_tmp13_);
1923
_gtk_tree_path_free0 (_tmp12_);
2018
2034
static GtkTreePath* key_model_real_get_path (GtkTreeModel* base, GtkTreeIter* iter) {
2019
2035
KeyModel * self;
2020
2036
GtkTreePath* result = NULL;
2021
GtkTreePath* path = NULL;
2022
GtkTreePath* _tmp0_ = NULL;
2023
GtkTreeIter _tmp1_ = {0};
2037
GtkTreePath* _tmp0_;
2024
2040
Key* _tmp2_ = NULL;
2028
2044
self = (KeyModel*) base;
2029
2045
g_return_val_if_fail (iter != NULL, NULL);
2030
2046
_tmp0_ = gtk_tree_path_new ();
2151
2167
static gboolean key_model_real_iter_next (GtkTreeModel* base, GtkTreeIter* iter) {
2152
2168
KeyModel * self;
2153
2169
gboolean result = FALSE;
2155
GtkTreeIter _tmp0_ = {0};
2156
2171
Key* _tmp1_ = NULL;
2162
Directory* _tmp7_ = NULL;
2163
GList* _tmp8_ = NULL;
2164
GList* _tmp9_ = NULL;
2165
2181
guint _tmp10_ = 0U;
2166
Directory* _tmp11_ = NULL;
2167
GList* _tmp12_ = NULL;
2168
GList* _tmp13_ = NULL;
2170
2186
gconstpointer _tmp15_ = NULL;
2171
2187
self = (KeyModel*) base;
2172
2188
g_return_val_if_fail (iter != NULL, FALSE);
2203
2219
GtkTreeIter _vala_iter = {0};
2204
2220
gboolean result = FALSE;
2205
2221
gboolean _tmp0_ = FALSE;
2206
GtkTreeIter* _tmp1_ = NULL;
2207
Directory* _tmp6_ = NULL;
2208
GList* _tmp7_ = NULL;
2209
GList* _tmp8_ = NULL;
2210
gconstpointer _tmp9_ = NULL;
2222
GtkTreeIter* _tmp1_;
2227
gconstpointer _tmp10_ = NULL;
2211
2228
self = (KeyModel*) base;
2212
2229
memset (&_vala_iter, 0, sizeof (GtkTreeIter));
2213
2230
_tmp1_ = parent;
2214
2231
if (_tmp1_ != NULL) {
2217
Directory* _tmp2_ = NULL;
2218
GList* _tmp3_ = NULL;
2219
GList* _tmp4_ = NULL;
2220
2237
guint _tmp5_ = 0U;
2221
2238
_tmp2_ = self->priv->directory;
2222
2239
_tmp3_ = directory_get_keys (_tmp2_);
2224
2241
_tmp5_ = g_list_length (_tmp4_);
2225
2242
_tmp0_ = _tmp5_ == ((guint) 0);
2228
2246
result = FALSE;
2230
2248
*iter = _vala_iter;
2234
_tmp6_ = self->priv->directory;
2235
_tmp7_ = directory_get_keys (_tmp6_);
2237
_tmp9_ = g_list_nth_data (_tmp8_, (guint) 0);
2238
key_model_set_iter (self, &_vala_iter, (Key*) _tmp9_);
2252
_tmp7_ = self->priv->directory;
2253
_tmp8_ = directory_get_keys (_tmp7_);
2255
_tmp10_ = g_list_nth_data (_tmp9_, (guint) 0);
2256
key_model_set_iter (self, &_vala_iter, (Key*) _tmp10_);
2241
2259
*iter = _vala_iter;
2488
2506
static void enum_model_set_iter (EnumModel* self, GtkTreeIter* iter, SchemaValue* value) {
2489
SchemaValue* _tmp0_ = NULL;
2490
SchemaValue* _tmp1_ = NULL;
2491
SchemaValue* _tmp2_ = NULL;
2507
SchemaValue* _tmp0_;
2508
SchemaValue* _tmp1_;
2509
SchemaValue* _tmp2_;
2492
2510
g_return_if_fail (self != NULL);
2493
2511
g_return_if_fail (iter != NULL);
2494
2512
g_return_if_fail (value != NULL);
2505
2523
SchemaValue* enum_model_get_enum_value (EnumModel* self, GtkTreeIter* iter) {
2506
2524
SchemaValue* result = NULL;
2507
GtkTreeIter _tmp0_ = {0};
2508
void* _tmp1_ = NULL;
2509
SchemaValue* _tmp2_ = NULL;
2527
SchemaValue* _tmp2_;
2510
2528
g_return_val_if_fail (self != NULL, NULL);
2511
2529
g_return_val_if_fail (iter != NULL, NULL);
2512
2530
_tmp0_ = *iter;
2557
2575
static GtkTreePath* enum_model_real_get_path (GtkTreeModel* base, GtkTreeIter* iter) {
2558
2576
EnumModel * self;
2559
2577
GtkTreePath* result = NULL;
2560
GtkTreePath* path = NULL;
2561
GtkTreePath* _tmp0_ = NULL;
2562
GtkTreeIter _tmp1_ = {0};
2578
GtkTreePath* _tmp0_;
2563
2581
SchemaValue* _tmp2_ = NULL;
2564
SchemaValue* _tmp3_ = NULL;
2582
SchemaValue* _tmp3_;
2566
2584
self = (EnumModel*) base;
2567
2585
g_return_val_if_fail (iter != NULL, NULL);
2568
2586
_tmp0_ = gtk_tree_path_new ();
2581
2599
static void enum_model_real_get_value (GtkTreeModel* base, GtkTreeIter* iter, gint column, GValue* value) {
2582
2600
EnumModel * self;
2583
2601
GValue _vala_value = {0};
2585
2603
self = (EnumModel*) base;
2586
2604
g_return_if_fail (iter != NULL);
2587
2605
_tmp0_ = column;
2588
2606
if (_tmp0_ == 0) {
2589
GtkTreeIter _tmp1_ = {0};
2590
2608
SchemaValue* _tmp2_ = NULL;
2591
SchemaValue* _tmp3_ = NULL;
2592
const gchar* _tmp4_ = NULL;
2609
SchemaValue* _tmp3_;
2610
const gchar* _tmp4_;
2593
2611
GValue _tmp5_ = {0};
2594
2612
_tmp1_ = *iter;
2595
2613
_tmp2_ = enum_model_get_enum_value (self, &_tmp1_);
2637
2655
static gboolean enum_model_real_iter_next (GtkTreeModel* base, GtkTreeIter* iter) {
2638
2656
EnumModel * self;
2639
2657
gboolean result = FALSE;
2641
GtkTreeIter _tmp0_ = {0};
2642
2659
SchemaValue* _tmp1_ = NULL;
2643
SchemaValue* _tmp2_ = NULL;
2647
SchemaEnum* _tmp6_ = NULL;
2648
GList* _tmp7_ = NULL;
2660
SchemaValue* _tmp2_;
2649
2667
guint _tmp8_ = 0U;
2650
SchemaEnum* _tmp9_ = NULL;
2651
GList* _tmp10_ = NULL;
2653
2671
gconstpointer _tmp12_ = NULL;
2654
2672
self = (EnumModel*) base;
2655
2673
g_return_val_if_fail (iter != NULL, FALSE);
2683
2701
GtkTreeIter _vala_iter = {0};
2684
2702
gboolean result = FALSE;
2685
2703
gboolean _tmp0_ = FALSE;
2686
GtkTreeIter* _tmp1_ = NULL;
2687
SchemaEnum* _tmp5_ = NULL;
2688
GList* _tmp6_ = NULL;
2689
gconstpointer _tmp7_ = NULL;
2704
GtkTreeIter* _tmp1_;
2708
gconstpointer _tmp8_ = NULL;
2690
2709
self = (EnumModel*) base;
2691
2710
memset (&_vala_iter, 0, sizeof (GtkTreeIter));
2692
2711
_tmp1_ = parent;
2693
2712
if (_tmp1_ != NULL) {
2696
SchemaEnum* _tmp2_ = NULL;
2697
GList* _tmp3_ = NULL;
2698
2717
guint _tmp4_ = 0U;
2699
2718
_tmp2_ = self->priv->schema_enum;
2700
2719
_tmp3_ = _tmp2_->values;
2701
2720
_tmp4_ = g_list_length (_tmp3_);
2702
2721
_tmp0_ = _tmp4_ == ((guint) 0);
2705
2725
result = FALSE;
2707
2727
*iter = _vala_iter;
2711
_tmp5_ = self->priv->schema_enum;
2712
_tmp6_ = _tmp5_->values;
2713
_tmp7_ = g_list_nth_data (_tmp6_, (guint) 0);
2714
enum_model_set_iter (self, &_vala_iter, (SchemaValue*) _tmp7_);
2731
_tmp6_ = self->priv->schema_enum;
2732
_tmp7_ = _tmp6_->values;
2733
_tmp8_ = g_list_nth_data (_tmp7_, (guint) 0);
2734
enum_model_set_iter (self, &_vala_iter, (SchemaValue*) _tmp8_);
2717
2737
*iter = _vala_iter;
2756
2776
EnumModel * self;
2757
2777
GtkTreeIter _vala_iter = {0};
2758
2778
gboolean result = FALSE;
2759
GtkTreeIter* _tmp0_ = NULL;
2761
SchemaEnum* _tmp2_ = NULL;
2762
GList* _tmp3_ = NULL;
2779
GtkTreeIter* _tmp0_;
2763
2783
guint _tmp4_ = 0U;
2764
SchemaEnum* _tmp5_ = NULL;
2765
GList* _tmp6_ = NULL;
2767
2787
gconstpointer _tmp8_ = NULL;
2768
2788
self = (EnumModel*) base;
2769
2789
memset (&_vala_iter, 0, sizeof (GtkTreeIter));
2913
2933
item_collection = _tmp0_;
2914
2934
item_collection_length1 = _tmp0__length1;
2915
2935
for (item_it = 0; item_it < _tmp0__length1; item_it = item_it + 1) {
2916
gchar* _tmp1_ = NULL;
2917
2937
gchar* item = NULL;
2918
2938
_tmp1_ = g_strdup (item_collection[item_it]);
2921
const gchar* _tmp2_ = NULL;
2922
const gchar* _tmp3_ = NULL;
2923
gchar* _tmp4_ = NULL;
2924
gchar* _tmp5_ = NULL;
2941
const gchar* _tmp2_;
2942
const gchar* _tmp3_;
2927
2947
_tmp4_ = g_strconcat (_tmp2_, _tmp3_, NULL);
2938
2958
static void _settings_model_watch_func_dconf_client_changed (DConfClient* _sender, const gchar* prefix, gchar** changes, const gchar* tag, gpointer self) {
2939
settings_model_watch_func ((SettingsModel*) self, _sender, prefix, changes, _vala_array_length (changes), tag);
2959
settings_model_watch_func (self, _sender, prefix, changes, _vala_array_length (changes), tag);
2956
2976
SettingsModel* settings_model_construct (GType object_type) {
2957
2977
SettingsModel * self = NULL;
2958
DConfClient* _tmp0_ = NULL;
2959
DConfClient* _tmp1_ = NULL;
2960
Directory* _tmp2_ = NULL;
2961
DConfClient* _tmp3_ = NULL;
2962
SchemaList* _tmp4_ = NULL;
2963
SchemaList* _tmp30_ = NULL;
2964
GHashTable* _tmp31_ = NULL;
2965
GList* _tmp32_ = NULL;
2978
DConfClient* _tmp0_;
2979
DConfClient* _tmp1_;
2981
DConfClient* _tmp3_;
2983
SchemaList* _tmp31_;
2984
GHashTable* _tmp32_;
2985
GList* _tmp33_ = NULL;
2966
2986
GError * _inner_error_ = NULL;
2967
2987
self = (SettingsModel*) g_object_new (object_type, NULL);
2968
2988
_tmp0_ = dconf_client_new ();
2979
2999
_schema_list_unref0 (self->schemas);
2980
3000
self->schemas = _tmp4_;
2982
gchar** dirs = NULL;
2983
gchar** _tmp5_ = NULL;
2984
3003
gchar** _tmp6_ = NULL;
2985
gchar** _tmp7_ = NULL;
2986
gint _tmp7__length1 = 0;
2987
gint dirs_length1 = 0;
2988
gint _dirs_size_ = 0;
2990
const gchar* _tmp23_ = NULL;
2991
gchar* _tmp24_ = NULL;
2992
const gchar* _tmp25_ = NULL;
3005
gint _tmp7__length1;
3009
const gchar* _tmp24_ = NULL;
3012
const gchar* _tmp26_;
2993
3013
_tmp6_ = _tmp5_ = g_get_system_data_dirs ();
2994
3014
_tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup1 (_tmp6_, _vala_array_length (_tmp5_)) : ((gpointer) _tmp6_);
2995
3015
_tmp7__length1 = _vala_array_length (_tmp5_);
2997
3017
dirs_length1 = _tmp7__length1;
2998
3018
_dirs_size_ = dirs_length1;
3001
gchar** _tmp8_ = NULL;
3002
gint _tmp8__length1 = 0;
3021
gint _tmp8__length1;
3004
3024
_tmp8__length1 = dirs_length1;
3005
3025
i = _tmp8__length1 - 1;
3007
gboolean _tmp9_ = FALSE;
3012
gchar** _tmp12_ = NULL;
3013
gint _tmp12__length1 = 0;
3015
const gchar* _tmp14_ = NULL;
3016
gchar* _tmp15_ = NULL;
3017
const gchar* _tmp16_ = NULL;
3018
GFile* _tmp17_ = NULL;
3033
gint _tmp13__length1;
3035
const gchar* _tmp15_;
3036
gchar* _tmp16_ = NULL;
3038
const gchar* _tmp17_;
3019
3039
GFile* _tmp18_ = NULL;
3020
gboolean _tmp19_ = FALSE;
3021
3041
gboolean _tmp20_ = FALSE;
3027
3049
_tmp9_ = FALSE;
3029
if (!(_tmp11_ >= 0)) {
3051
if (!(_tmp12_ >= 0)) {
3033
_tmp12__length1 = dirs_length1;
3035
_tmp14_ = _tmp12_[_tmp13_];
3036
_tmp15_ = g_build_filename (_tmp14_, "glib-2.0", "schemas", NULL);
3039
_tmp17_ = g_file_new_for_path (_tmp16_);
3041
_tmp19_ = g_file_query_exists (_tmp18_, NULL);
3043
_g_object_unref0 (_tmp18_);
3045
SchemaList* _tmp21_ = NULL;
3046
const gchar* _tmp22_ = NULL;
3047
_tmp21_ = self->schemas;
3049
schema_list_load_directory (_tmp21_, _tmp22_, &_inner_error_);
3055
_tmp13__length1 = dirs_length1;
3057
_tmp15_ = _tmp13_[_tmp14_];
3058
_tmp16_ = g_build_filename (_tmp15_, "glib-2.0", "schemas", NULL);
3061
_tmp18_ = g_file_new_for_path (_tmp17_);
3063
_tmp20_ = g_file_query_exists (_tmp19_, NULL);
3065
_g_object_unref0 (_tmp19_);
3067
SchemaList* _tmp22_;
3068
const gchar* _tmp23_;
3069
_tmp22_ = self->schemas;
3071
schema_list_load_directory (_tmp22_, _tmp23_, &_inner_error_);
3050
3072
if (_inner_error_ != NULL) {
3051
3073
_g_free0 (path);
3052
3074
dirs = (_vala_array_free (dirs, dirs_length1, (GDestroyNotify) g_free), NULL);
3060
_tmp23_ = g_getenv ("GSETTINGS_SCHEMA_DIR");
3061
_tmp24_ = g_strdup (_tmp23_);
3064
if (_tmp25_ != NULL) {
3065
SchemaList* _tmp26_ = NULL;
3066
const gchar* _tmp27_ = NULL;
3067
_tmp26_ = self->schemas;
3069
schema_list_load_directory (_tmp26_, _tmp27_, &_inner_error_);
3082
_tmp24_ = g_getenv ("GSETTINGS_SCHEMA_DIR");
3083
_tmp25_ = g_strdup (_tmp24_);
3086
if (_tmp26_ != NULL) {
3087
SchemaList* _tmp27_;
3088
const gchar* _tmp28_;
3089
_tmp27_ = self->schemas;
3091
schema_list_load_directory (_tmp27_, _tmp28_, &_inner_error_);
3070
3092
if (_inner_error_ != NULL) {
3071
3093
_g_free0 (dir);
3072
3094
dirs = (_vala_array_free (dirs, dirs_length1, (GDestroyNotify) g_free), NULL);
3095
3117
g_clear_error (&_inner_error_);
3098
_tmp30_ = self->schemas;
3099
_tmp31_ = _tmp30_->schemas;
3100
_tmp32_ = g_hash_table_get_values (_tmp31_);
3120
_tmp31_ = self->schemas;
3121
_tmp32_ = _tmp31_->schemas;
3122
_tmp33_ = g_hash_table_get_values (_tmp32_);
3102
3124
GList* schema_collection = NULL;
3103
3125
GList* schema_it = NULL;
3104
schema_collection = _tmp32_;
3126
schema_collection = _tmp33_;
3105
3127
for (schema_it = schema_collection; schema_it != NULL; schema_it = schema_it->next) {
3106
3128
Schema* schema = NULL;
3107
3129
schema = (Schema*) schema_it->data;
3109
Directory* _tmp33_ = NULL;
3110
Schema* _tmp34_ = NULL;
3111
Schema* _tmp35_ = NULL;
3112
const gchar* _tmp36_ = NULL;
3113
Schema* _tmp37_ = NULL;
3114
const gchar* _tmp38_ = NULL;
3117
gchar* _tmp41_ = NULL;
3134
const gchar* _tmp37_;
3136
const gchar* _tmp39_;
3118
3139
gchar* _tmp42_ = NULL;
3119
_tmp33_ = self->priv->root;
3141
_tmp34_ = self->priv->root;
3121
3142
_tmp35_ = schema;
3122
_tmp36_ = _tmp35_->path;
3124
_tmp38_ = _tmp37_->path;
3125
_tmp39_ = strlen (_tmp38_);
3127
_tmp41_ = string_slice (_tmp36_, (glong) 1, (glong) _tmp40_);
3129
directory_load_schema (_tmp33_, _tmp34_, _tmp42_);
3144
_tmp37_ = _tmp36_->path;
3146
_tmp39_ = _tmp38_->path;
3147
_tmp40_ = strlen (_tmp39_);
3149
_tmp42_ = string_slice (_tmp37_, (glong) 1, (glong) _tmp41_);
3151
directory_load_schema (_tmp34_, _tmp35_, _tmp43_);
3133
3155
_g_list_free0 (schema_collection);
3178
3200
static void settings_model_set_iter (SettingsModel* self, GtkTreeIter* iter, Directory* directory) {
3179
Directory* _tmp0_ = NULL;
3180
Directory* _tmp1_ = NULL;
3181
Directory* _tmp2_ = NULL;
3182
3204
g_return_if_fail (self != NULL);
3183
3205
g_return_if_fail (iter != NULL);
3184
3206
g_return_if_fail (directory != NULL);
3195
3217
Directory* settings_model_get_directory (SettingsModel* self, GtkTreeIter* iter) {
3196
3218
Directory* result = NULL;
3197
GtkTreeIter* _tmp0_ = NULL;
3219
GtkTreeIter* _tmp0_;
3198
3220
g_return_val_if_fail (self != NULL, NULL);
3200
3222
if (_tmp0_ == NULL) {
3201
Directory* _tmp1_ = NULL;
3202
Directory* _tmp2_ = NULL;
3203
3225
_tmp1_ = self->priv->root;
3204
3226
_tmp2_ = _g_object_ref0 (_tmp1_);
3205
3227
result = _tmp2_;
3208
GtkTreeIter* _tmp3_ = NULL;
3209
void* _tmp4_ = NULL;
3210
Directory* _tmp5_ = NULL;
3230
GtkTreeIter* _tmp3_;
3212
3234
_tmp4_ = (*_tmp3_).user_data;
3213
3235
_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DIRECTORY, Directory));
3249
gboolean _tmp6_ = FALSE;
3253
GtkTreePath* _tmp9_ = NULL;
3255
GtkTreeIter parent = {0};
3256
GtkTreeIter _tmp11_ = {0};
3257
GtkTreeIter _tmp12_ = {0};
3258
GtkTreePath* _tmp13_ = NULL;
3260
gint* _tmp15_ = NULL;
3263
GtkTreeIter _tmp18_ = {0};
3264
gboolean _tmp19_ = FALSE;
3276
GtkTreePath* _tmp10_;
3278
GtkTreeIter _tmp12_;
3280
GtkTreeIter _tmp13_;
3281
GtkTreePath* _tmp14_;
3283
gint* _tmp16_ = NULL;
3286
GtkTreeIter _tmp19_ = {0};
3287
gboolean _tmp20_ = FALSE;
3270
3294
_tmp6_ = FALSE;
3273
_tmp10_ = gtk_tree_path_get_depth (_tmp9_);
3274
if (!(_tmp8_ < _tmp10_)) {
3297
_tmp11_ = gtk_tree_path_get_depth (_tmp10_);
3298
if (!(_tmp9_ < _tmp11_)) {
3277
_tmp11_ = _vala_iter;
3281
_tmp15_ = gtk_tree_path_get_indices_with_depth (_tmp13_, &_tmp14_);
3283
_tmp17_ = _tmp15_[_tmp16_];
3284
_tmp19_ = gtk_tree_model_iter_nth_child ((GtkTreeModel*) self, &_tmp18_, &_tmp12_, _tmp17_);
3285
_vala_iter = _tmp18_;
3301
_tmp12_ = _vala_iter;
3305
_tmp16_ = gtk_tree_path_get_indices_with_depth (_tmp14_, &_tmp15_);
3307
_tmp18_ = _tmp16_[_tmp17_];
3308
_tmp20_ = gtk_tree_model_iter_nth_child ((GtkTreeModel*) self, &_tmp19_, &_tmp13_, _tmp18_);
3309
_vala_iter = _tmp19_;
3287
3311
result = FALSE;
3289
3313
*iter = _vala_iter;
3304
3328
static GtkTreePath* settings_model_real_get_path (GtkTreeModel* base, GtkTreeIter* iter) {
3305
3329
SettingsModel * self;
3306
3330
GtkTreePath* result = NULL;
3307
GtkTreePath* path = NULL;
3308
GtkTreePath* _tmp0_ = NULL;
3331
GtkTreePath* _tmp0_;
3309
3333
self = (SettingsModel*) base;
3310
3334
g_return_val_if_fail (iter != NULL, NULL);
3311
3335
_tmp0_ = gtk_tree_path_new ();
3314
Directory* d = NULL;
3315
GtkTreeIter _tmp1_ = {0};
3316
3339
Directory* _tmp2_ = NULL;
3317
3341
_tmp1_ = *iter;
3318
3342
_tmp2_ = settings_model_get_directory (self, &_tmp1_);
3321
gboolean _tmp3_ = FALSE;
3324
Directory* _tmp7_ = NULL;
3325
Directory* _tmp8_ = NULL;
3326
GtkTreePath* _tmp9_ = NULL;
3327
Directory* _tmp10_ = NULL;
3331
Directory* _tmp4_ = NULL;
3332
Directory* _tmp5_ = NULL;
3333
Directory* _tmp6_ = NULL;
3335
_tmp5_ = _tmp4_->parent;
3336
_tmp6_ = _g_object_ref0 (_tmp5_);
3351
GtkTreePath* _tmp10_;
3361
_tmp6_ = _tmp5_->parent;
3362
_tmp7_ = _g_object_ref0 (_tmp6_);
3337
3363
_g_object_unref0 (d);
3340
3366
_tmp3_ = FALSE;
3342
_tmp8_ = self->priv->root;
3343
if (!(_tmp7_ != _tmp8_)) {
3368
_tmp9_ = self->priv->root;
3369
if (!(_tmp8_ != _tmp9_)) {
3348
_tmp11_ = directory_get_index (_tmp10_);
3350
gtk_tree_path_prepend_index (_tmp9_, (gint) _tmp12_);
3374
_tmp12_ = directory_get_index (_tmp11_);
3376
gtk_tree_path_prepend_index (_tmp10_, (gint) _tmp13_);
3353
3379
_g_object_unref0 (d);
3360
3386
static void settings_model_real_get_value (GtkTreeModel* base, GtkTreeIter* iter, gint column, GValue* value) {
3361
3387
SettingsModel * self;
3362
3388
GValue _vala_value = {0};
3364
3390
self = (SettingsModel*) base;
3365
3391
g_return_if_fail (iter != NULL);
3366
3392
_tmp0_ = column;
3367
3393
if (_tmp0_ == 0) {
3368
GtkTreeIter _tmp1_ = {0};
3369
3395
Directory* _tmp2_ = NULL;
3370
3396
GValue _tmp3_ = {0};
3371
3397
_tmp1_ = *iter;
3375
3401
G_IS_VALUE (&_vala_value) ? (g_value_unset (&_vala_value), NULL) : NULL;
3376
3402
_vala_value = _tmp3_;
3378
GtkTreeIter _tmp4_ = {0};
3379
3405
Directory* _tmp5_ = NULL;
3380
Directory* _tmp6_ = NULL;
3381
const gchar* _tmp7_ = NULL;
3407
const gchar* _tmp7_;
3382
3408
GValue _tmp8_ = {0};
3383
3409
_tmp4_ = *iter;
3384
3410
_tmp5_ = settings_model_get_directory (self, &_tmp4_);
3401
3427
static gboolean settings_model_real_iter_next (GtkTreeModel* base, GtkTreeIter* iter) {
3402
3428
SettingsModel * self;
3403
3429
gboolean result = FALSE;
3404
Directory* directory = NULL;
3405
GtkTreeIter _tmp0_ = {0};
3406
3431
Directory* _tmp1_ = NULL;
3407
Directory* _tmp2_ = NULL;
3410
Directory* _tmp5_ = NULL;
3411
Directory* _tmp6_ = NULL;
3412
GList* _tmp7_ = NULL;
3413
GList* _tmp8_ = NULL;
3432
Directory* directory;
3414
3440
guint _tmp9_ = 0U;
3415
Directory* _tmp10_ = NULL;
3416
Directory* _tmp11_ = NULL;
3417
GList* _tmp12_ = NULL;
3418
GList* _tmp13_ = NULL;
3419
Directory* _tmp14_ = NULL;
3422
3448
gconstpointer _tmp17_ = NULL;
3423
3449
self = (SettingsModel*) base;
3424
3450
g_return_val_if_fail (iter != NULL, FALSE);
3457
3483
SettingsModel * self;
3458
3484
GtkTreeIter _vala_iter = {0};
3459
3485
gboolean result = FALSE;
3460
Directory* directory = NULL;
3461
GtkTreeIter* _tmp0_ = NULL;
3486
GtkTreeIter* _tmp0_;
3462
3487
Directory* _tmp1_ = NULL;
3463
Directory* _tmp2_ = NULL;
3464
GList* _tmp3_ = NULL;
3465
GList* _tmp4_ = NULL;
3488
Directory* directory;
3466
3492
guint _tmp5_ = 0U;
3467
Directory* _tmp6_ = NULL;
3468
GList* _tmp7_ = NULL;
3469
GList* _tmp8_ = NULL;
3470
3496
gconstpointer _tmp9_ = NULL;
3471
3497
self = (SettingsModel*) base;
3472
3498
memset (&_vala_iter, 0, sizeof (GtkTreeIter));
3502
3528
static gboolean settings_model_real_iter_has_child (GtkTreeModel* base, GtkTreeIter* iter) {
3503
3529
SettingsModel * self;
3504
3530
gboolean result = FALSE;
3505
GtkTreeIter _tmp0_ = {0};
3506
3532
Directory* _tmp1_ = NULL;
3507
Directory* _tmp2_ = NULL;
3508
GList* _tmp3_ = NULL;
3509
GList* _tmp4_ = NULL;
3510
3536
guint _tmp5_ = 0U;
3511
gboolean _tmp6_ = FALSE;
3512
3538
self = (SettingsModel*) base;
3513
3539
g_return_val_if_fail (iter != NULL, FALSE);
3514
3540
_tmp0_ = *iter;
3527
3553
static gint settings_model_real_iter_n_children (GtkTreeModel* base, GtkTreeIter* iter) {
3528
3554
SettingsModel * self;
3529
3555
gint result = 0;
3530
GtkTreeIter* _tmp0_ = NULL;
3556
GtkTreeIter* _tmp0_;
3531
3557
Directory* _tmp1_ = NULL;
3532
Directory* _tmp2_ = NULL;
3533
GList* _tmp3_ = NULL;
3534
GList* _tmp4_ = NULL;
3535
3561
guint _tmp5_ = 0U;
3537
3563
self = (SettingsModel*) base;
3539
3565
_tmp1_ = settings_model_get_directory (self, _tmp0_);
3552
3578
SettingsModel * self;
3553
3579
GtkTreeIter _vala_iter = {0};
3554
3580
gboolean result = FALSE;
3555
Directory* directory = NULL;
3556
GtkTreeIter* _tmp0_ = NULL;
3581
GtkTreeIter* _tmp0_;
3557
3582
Directory* _tmp1_ = NULL;
3559
Directory* _tmp3_ = NULL;
3560
GList* _tmp4_ = NULL;
3561
GList* _tmp5_ = NULL;
3583
Directory* directory;
3562
3588
guint _tmp6_ = 0U;
3563
Directory* _tmp7_ = NULL;
3564
GList* _tmp8_ = NULL;
3565
GList* _tmp9_ = NULL;
3567
3593
gconstpointer _tmp11_ = NULL;
3568
3594
self = (SettingsModel*) base;
3569
3595
memset (&_vala_iter, 0, sizeof (GtkTreeIter));
3602
3628
SettingsModel * self;
3603
3629
GtkTreeIter _vala_iter = {0};
3604
3630
gboolean result = FALSE;
3605
Directory* directory = NULL;
3606
GtkTreeIter _tmp0_ = {0};
3607
3632
Directory* _tmp1_ = NULL;
3608
Directory* _tmp2_ = NULL;
3609
Directory* _tmp3_ = NULL;
3610
Directory* _tmp4_ = NULL;
3611
Directory* _tmp5_ = NULL;
3612
Directory* _tmp6_ = NULL;
3633
Directory* directory;
3613
3639
self = (SettingsModel*) base;
3614
3640
g_return_val_if_fail (child != NULL, FALSE);
3615
3641
memset (&_vala_iter, 0, sizeof (GtkTreeIter));