420
420
SchemaKey* schema_key_construct_from_xml (GType object_type, xmlNode* node, Schema* schema, const gchar* gettext_domain) {
421
421
SchemaKey* self = NULL;
424
426
GError * _inner_error_ = NULL;
425
427
g_return_val_if_fail (schema != NULL, NULL);
426
428
self = (SchemaKey*) g_type_create_instance (object_type);
427
_tmp0_ = _schema_ref0 (schema);
430
_tmp1_ = _schema_ref0 (_tmp0_);
428
431
_schema_unref0 (self->schema);
429
self->schema = _tmp0_;
430
_tmp1_ = g_strdup (gettext_domain);
432
self->schema = _tmp1_;
433
_tmp2_ = gettext_domain;
434
_tmp3_ = g_strdup (_tmp2_);
431
435
_g_free0 (self->gettext_domain);
432
self->gettext_domain = _tmp1_;
436
self->gettext_domain = _tmp3_;
435
prop = node->properties;
442
_tmp5_ = _tmp4_->properties;
451
const gchar* _tmp12_;
457
_tmp9_ = _tmp8_->next;
444
if (!(prop != NULL)) {
462
if (!(_tmp10_ != NULL)) {
447
if (g_strcmp0 (prop->name, "name") == 0) {
449
_tmp3_ = g_strdup (prop->children->content);
466
_tmp12_ = _tmp11_->name;
467
if (g_strcmp0 (_tmp12_, "name") == 0) {
470
const gchar* _tmp15_;
473
_tmp14_ = _tmp13_->children;
474
_tmp15_ = _tmp14_->content;
475
_tmp16_ = g_strdup (_tmp15_);
450
476
_g_free0 (self->name);
477
self->name = _tmp16_;
453
if (g_strcmp0 (prop->name, "type") == 0) {
455
_tmp4_ = g_strdup (prop->children->content);
480
const gchar* _tmp18_;
482
_tmp18_ = _tmp17_->name;
483
if (g_strcmp0 (_tmp18_, "type") == 0) {
486
const gchar* _tmp21_;
489
_tmp20_ = _tmp19_->children;
490
_tmp21_ = _tmp20_->content;
491
_tmp22_ = g_strdup (_tmp21_);
456
492
_g_free0 (self->type);
493
self->type = _tmp22_;
459
if (g_strcmp0 (prop->name, "enum") == 0) {
462
_tmp5_ = g_strdup ("s");
496
const gchar* _tmp24_;
498
_tmp24_ = _tmp23_->name;
499
if (g_strcmp0 (_tmp24_, "enum") == 0) {
503
const gchar* _tmp28_;
505
_tmp25_ = g_strdup ("s");
463
506
_g_free0 (self->type);
465
_tmp6_ = g_strdup (prop->children->content);
507
self->type = _tmp25_;
509
_tmp27_ = _tmp26_->children;
510
_tmp28_ = _tmp27_->content;
511
_tmp29_ = g_strdup (_tmp28_);
466
512
_g_free0 (self->enum_name);
467
self->enum_name = _tmp6_;
513
self->enum_name = _tmp29_;
469
if (g_strcmp0 (prop->name, "flags") == 0) {
471
_tmp7_ = g_strdup ("as");
516
const gchar* _tmp31_;
518
_tmp31_ = _tmp30_->name;
519
if (g_strcmp0 (_tmp31_, "flags") == 0) {
521
_tmp32_ = g_strdup ("as");
472
522
_g_free0 (self->type);
523
self->type = _tmp32_;
475
g_warning ("dconf-schema.vala:35: Unknown property on <key>, %s", prop->name);
526
const gchar* _tmp34_;
528
_tmp34_ = _tmp33_->name;
529
g_warning ("dconf-schema.vala:35: Unknown property on <key>, %s", _tmp34_);
485
child = node->children;
542
_tmp36_ = _tmp35_->children;
551
const gchar* _tmp43_;
557
_tmp40_ = _tmp39_->next;
494
if (!(child != NULL)) {
562
if (!(_tmp41_ != NULL)) {
497
if (g_strcmp0 (child->name, "default") == 0) {
498
GVariantType* _tmp9_ = NULL;
499
GVariantType* _tmp10_;
500
GVariant* _tmp11_ = NULL;
503
_tmp9_ = g_variant_type_new (self->type);
505
_tmp11_ = g_variant_parse (_tmp10_, child->children->content, NULL, NULL, &_inner_error_);
507
_g_variant_type_free0 (_tmp10_);
509
if (_inner_error_ != NULL) {
510
if (_inner_error_->domain == G_VARIANT_PARSE_ERROR) {
511
goto __catch4_g_variant_parse_error;
566
_tmp43_ = _tmp42_->name;
567
if (g_strcmp0 (_tmp43_, "default") == 0) {
569
const gchar* _tmp44_;
570
GVariantType* _tmp45_;
571
GVariantType* _tmp46_;
574
const gchar* _tmp49_;
575
GVariant* _tmp50_ = NULL;
578
_tmp44_ = self->type;
579
_tmp45_ = g_variant_type_new (_tmp44_);
582
_tmp48_ = _tmp47_->children;
583
_tmp49_ = _tmp48_->content;
584
_tmp50_ = g_variant_parse (_tmp46_, _tmp49_, NULL, NULL, &_inner_error_);
586
_g_variant_type_free0 (_tmp46_);
588
if (_inner_error_ != NULL) {
589
if (_inner_error_->domain == G_VARIANT_PARSE_ERROR) {
590
goto __catch5_g_variant_parse_error;
592
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
593
g_clear_error (&_inner_error_);
513
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
514
g_clear_error (&_inner_error_);
596
_g_variant_unref0 (self->default_value);
597
self->default_value = _tmp52_;
517
_g_variant_unref0 (self->default_value);
518
self->default_value = _tmp13_;
520
__catch4_g_variant_parse_error:
600
__catch5_g_variant_parse_error:
523
603
e = _inner_error_;
524
604
_inner_error_ = NULL;
525
605
_g_error_free0 (e);
528
608
if (_inner_error_ != NULL) {
529
609
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);
530
610
g_clear_error (&_inner_error_);
534
if (g_strcmp0 (child->name, "summary") == 0) {
535
const gchar* _tmp14_ = NULL;
537
if (child->children == NULL) {
615
const gchar* _tmp54_;
617
_tmp54_ = _tmp53_->name;
618
if (g_strcmp0 (_tmp54_, "summary") == 0) {
619
const gchar* _tmp55_ = NULL;
622
const gchar* _tmp61_;
625
_tmp57_ = _tmp56_->children;
626
if (_tmp57_ == NULL) {
540
_tmp14_ = child->children->content;
631
const gchar* _tmp60_;
633
_tmp59_ = _tmp58_->children;
634
_tmp60_ = _tmp59_->content;
542
_tmp15_ = g_strdup (_tmp14_);
638
_tmp62_ = g_strdup (_tmp61_);
543
639
_g_free0 (self->summary);
544
self->summary = _tmp15_;
640
self->summary = _tmp62_;
546
if (g_strcmp0 (child->name, "description") == 0) {
547
const gchar* _tmp16_ = NULL;
549
if (child->children == NULL) {
643
const gchar* _tmp64_;
645
_tmp64_ = _tmp63_->name;
646
if (g_strcmp0 (_tmp64_, "description") == 0) {
647
const gchar* _tmp65_ = NULL;
650
const gchar* _tmp71_;
653
_tmp67_ = _tmp66_->children;
654
if (_tmp67_ == NULL) {
552
_tmp16_ = child->children->content;
659
const gchar* _tmp70_;
661
_tmp69_ = _tmp68_->children;
662
_tmp70_ = _tmp69_->content;
554
_tmp17_ = g_strdup (_tmp16_);
666
_tmp72_ = g_strdup (_tmp71_);
555
667
_g_free0 (self->description);
556
self->description = _tmp17_;
668
self->description = _tmp72_;
558
if (g_strcmp0 (child->name, "range") == 0) {
559
SchemaValueRange* _tmp18_ = NULL;
560
_tmp18_ = schema_value_range_new_from_xml (self->type, child);
671
const gchar* _tmp74_;
673
_tmp74_ = _tmp73_->name;
674
if (g_strcmp0 (_tmp74_, "range") == 0) {
675
const gchar* _tmp75_;
677
SchemaValueRange* _tmp77_;
678
_tmp75_ = self->type;
680
_tmp77_ = schema_value_range_new_from_xml (_tmp75_, _tmp76_);
561
681
_schema_value_range_unref0 (self->range);
562
self->range = _tmp18_;
682
self->range = _tmp77_;
564
if (g_strcmp0 (child->name, "choices") == 0) {
685
const gchar* _tmp79_;
687
_tmp79_ = _tmp78_->name;
688
if (g_strcmp0 (_tmp79_, "choices") == 0) {
694
_tmp81_ = _tmp80_->children;
703
xmlElementType _tmp88_;
705
const gchar* _tmp90_;
707
const gchar* _tmp108_;
573
708
GVariant* v = NULL;
574
GVariant* _tmp22_ = NULL;
575
SchemaChoice* _tmp23_ = NULL;
714
_tmp85_ = _tmp84_->next;
719
if (!(_tmp86_ != NULL)) {
583
if (n->type != XML_ELEMENT_NODE) {
723
_tmp88_ = _tmp87_->type;
724
if (_tmp88_ != XML_ELEMENT_NODE) {
586
if (g_strcmp0 (n->name, "choice") != 0) {
587
g_warning ("dconf-schema.vala:68: Unknown child tag in <choices>, <%s>", n->name);
728
_tmp90_ = _tmp89_->name;
729
if (g_strcmp0 (_tmp90_, "choice") != 0) {
731
const gchar* _tmp92_;
733
_tmp92_ = _tmp91_->name;
734
g_warning ("dconf-schema.vala:68: Unknown child tag in <choices>, <%s>", _tmp92_);
593
prop = n->properties;
743
_tmp94_ = _tmp93_->properties;
752
const gchar* _tmp101_;
758
_tmp98_ = _tmp97_->next;
602
if (!(prop != NULL)) {
763
if (!(_tmp99_ != NULL)) {
605
if (g_strcmp0 (prop->name, "value") == 0) {
607
_tmp21_ = g_strdup (prop->children->content);
767
_tmp101_ = _tmp100_->name;
768
if (g_strcmp0 (_tmp101_, "value") == 0) {
771
const gchar* _tmp104_;
774
_tmp103_ = _tmp102_->children;
775
_tmp104_ = _tmp103_->content;
776
_tmp105_ = g_strdup (_tmp104_);
608
777
_g_free0 (value);
611
g_warning ("dconf-schema.vala:78: Unknown property on <choice>, %s", prop->name);
781
const gchar* _tmp107_;
783
_tmp107_ = _tmp106_->name;
784
g_warning ("dconf-schema.vala:78: Unknown property on <choice>, %s", _tmp107_);
790
if (_tmp108_ == NULL) {
617
791
g_warning ("dconf-schema.vala:83: Ignoring <choice> with no value");
618
792
_g_free0 (value);
621
_tmp22_ = g_variant_new_string (value);
622
_g_variant_unref0 (v);
623
v = g_variant_ref_sink (_tmp22_);
624
_tmp23_ = schema_choice_new (value, v);
625
self->choices = g_list_append (self->choices, _tmp23_);
627
__catch5_g_variant_parse_error:
796
const gchar* _tmp109_;
799
const gchar* _tmp112_;
801
SchemaChoice* _tmp114_;
803
_tmp110_ = g_variant_new_string (_tmp109_);
804
_tmp111_ = g_variant_ref_sink (_tmp110_);
805
_g_variant_unref0 (v);
809
_tmp114_ = schema_choice_new (_tmp112_, _tmp113_);
810
self->choices = g_list_append (self->choices, _tmp114_);
813
__catch6_g_variant_parse_error:
816
const gchar* _tmp115_;
630
817
e = _inner_error_;
631
818
_inner_error_ = NULL;
632
g_warning ("dconf-schema.vala:95: Invalid choice value '%s'", value);
820
g_warning ("dconf-schema.vala:95: Invalid choice value '%s'", _tmp115_);
633
821
_g_error_free0 (e);
636
824
if (_inner_error_ != NULL) {
637
825
_g_variant_unref0 (v);
638
826
_g_free0 (value);
649
if (g_strcmp0 (child->name, "aliases") == 0) {
838
const gchar* _tmp117_;
840
_tmp117_ = _tmp116_->name;
841
if (g_strcmp0 (_tmp117_, "aliases") == 0) {
847
_tmp119_ = _tmp118_->children;
856
xmlElementType _tmp126_;
858
const gchar* _tmp128_;
861
const gchar* _tmp152_;
862
const gchar* _tmp153_;
659
863
GVariant* v = NULL;
660
GVariant* _tmp28_ = NULL;
661
SchemaChoice* _tmp29_ = NULL;
869
_tmp123_ = _tmp122_->next;
874
if (!(_tmp124_ != NULL)) {
669
if (n->type != XML_ELEMENT_NODE) {
878
_tmp126_ = _tmp125_->type;
879
if (_tmp126_ != XML_ELEMENT_NODE) {
672
if (g_strcmp0 (n->name, "alias") != 0) {
673
g_warning ("dconf-schema.vala:107: Unknown child tag in <aliases>, <%s>", n->name);
883
_tmp128_ = _tmp127_->name;
884
if (g_strcmp0 (_tmp128_, "alias") != 0) {
886
const gchar* _tmp130_;
888
_tmp130_ = _tmp129_->name;
889
g_warning ("dconf-schema.vala:107: Unknown child tag in <aliases>, <%s>", _tmp130_);
680
prop = n->properties;
899
_tmp132_ = _tmp131_->properties;
908
const gchar* _tmp139_;
914
_tmp136_ = _tmp135_->next;
689
if (!(prop != NULL)) {
919
if (!(_tmp137_ != NULL)) {
692
if (g_strcmp0 (prop->name, "value") == 0) {
694
_tmp26_ = g_strdup (prop->children->content);
923
_tmp139_ = _tmp138_->name;
924
if (g_strcmp0 (_tmp139_, "value") == 0) {
927
const gchar* _tmp142_;
930
_tmp141_ = _tmp140_->children;
931
_tmp142_ = _tmp141_->content;
932
_tmp143_ = g_strdup (_tmp142_);
695
933
_g_free0 (value);
698
if (g_strcmp0 (prop->name, "target") == 0) {
700
_tmp27_ = g_strdup (prop->children->content);
937
const gchar* _tmp145_;
939
_tmp145_ = _tmp144_->name;
940
if (g_strcmp0 (_tmp145_, "target") == 0) {
943
const gchar* _tmp148_;
946
_tmp147_ = _tmp146_->children;
947
_tmp148_ = _tmp147_->content;
948
_tmp149_ = g_strdup (_tmp148_);
701
949
_g_free0 (target);
704
g_warning ("dconf-schema.vala:119: Unknown property on <alias>, %s", prop->name);
953
const gchar* _tmp151_;
955
_tmp151_ = _tmp150_->name;
956
g_warning ("dconf-schema.vala:119: Unknown property on <alias>, %s", _tmp151_);
963
if (_tmp152_ == NULL) {
711
964
g_warning ("dconf-schema.vala:124: Ignoring <alias> with no value");
712
965
_g_free0 (target);
713
966
_g_free0 (value);
716
if (target == NULL) {
970
if (_tmp153_ == NULL) {
717
971
g_warning ("dconf-schema.vala:129: Ignoring <alias> with no target");
718
972
_g_free0 (target);
719
973
_g_free0 (value);
722
_tmp28_ = g_variant_new_string (target);
723
_g_variant_unref0 (v);
724
v = g_variant_ref_sink (_tmp28_);
725
_tmp29_ = schema_choice_new (value, v);
726
self->choices = g_list_append (self->choices, _tmp29_);
728
__catch6_g_variant_parse_error:
977
const gchar* _tmp154_;
980
const gchar* _tmp157_;
982
SchemaChoice* _tmp159_;
984
_tmp155_ = g_variant_new_string (_tmp154_);
985
_tmp156_ = g_variant_ref_sink (_tmp155_);
986
_g_variant_unref0 (v);
990
_tmp159_ = schema_choice_new (_tmp157_, _tmp158_);
991
self->choices = g_list_append (self->choices, _tmp159_);
994
__catch7_g_variant_parse_error:
997
const gchar* _tmp160_;
731
998
e = _inner_error_;
732
999
_inner_error_ = NULL;
733
g_warning ("dconf-schema.vala:141: Invalid alias value '%s'", target);
1001
g_warning ("dconf-schema.vala:141: Invalid alias value '%s'", _tmp160_);
734
1002
_g_error_free0 (e);
737
1005
if (_inner_error_ != NULL) {
738
1006
_g_variant_unref0 (v);
739
1007
_g_free0 (target);
1201
1493
g_return_val_if_fail (type != NULL, NULL);
1202
1494
self = (SchemaValueRange*) g_type_create_instance (object_type);
1205
prop = node->properties;
1500
_tmp1_ = _tmp0_->properties;
1509
const gchar* _tmp8_;
1515
_tmp5_ = _tmp4_->next;
1214
if (!(prop != NULL)) {
1520
if (!(_tmp6_ != NULL)) {
1217
if (g_strcmp0 (prop->name, "min") == 0) {
1218
GVariantType* _tmp1_ = NULL;
1219
GVariantType* _tmp2_;
1220
GVariant* _tmp3_ = NULL;
1223
_tmp1_ = g_variant_type_new (type);
1225
_tmp3_ = g_variant_parse (_tmp2_, prop->children->content, NULL, NULL, &_inner_error_);
1227
_g_variant_type_free0 (_tmp2_);
1229
if (_inner_error_ != NULL) {
1230
if (_inner_error_->domain == G_VARIANT_PARSE_ERROR) {
1231
goto __catch7_g_variant_parse_error;
1233
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1234
g_clear_error (&_inner_error_);
1237
_g_variant_unref0 (self->min);
1240
__catch7_g_variant_parse_error:
1524
_tmp8_ = _tmp7_->name;
1525
if (g_strcmp0 (_tmp8_, "min") == 0) {
1244
_inner_error_ = NULL;
1248
if (_inner_error_ != NULL) {
1249
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);
1250
g_clear_error (&_inner_error_);
1254
if (g_strcmp0 (prop->name, "max") == 0) {
1255
GVariantType* _tmp6_ = NULL;
1256
GVariantType* _tmp7_;
1257
GVariant* _tmp8_ = NULL;
1260
_tmp6_ = g_variant_type_new (type);
1262
_tmp8_ = g_variant_parse (_tmp7_, prop->children->content, NULL, NULL, &_inner_error_);
1264
_g_variant_type_free0 (_tmp7_);
1527
const gchar* _tmp9_;
1528
GVariantType* _tmp10_;
1529
GVariantType* _tmp11_;
1532
const gchar* _tmp14_;
1533
GVariant* _tmp15_ = NULL;
1537
_tmp10_ = g_variant_type_new (_tmp9_);
1540
_tmp13_ = _tmp12_->children;
1541
_tmp14_ = _tmp13_->content;
1542
_tmp15_ = g_variant_parse (_tmp11_, _tmp14_, NULL, NULL, &_inner_error_);
1544
_g_variant_type_free0 (_tmp11_);
1266
1546
if (_inner_error_ != NULL) {
1267
1547
if (_inner_error_->domain == G_VARIANT_PARSE_ERROR) {
1268
1548
goto __catch8_g_variant_parse_error;
1271
1551
g_clear_error (&_inner_error_);
1274
_g_variant_unref0 (self->max);
1275
self->max = _tmp10_;
1277
__catch8_g_variant_parse_error:
1554
_g_variant_unref0 (self->min);
1555
self->min = _tmp17_;
1558
__catch8_g_variant_parse_error:
1562
_inner_error_ = NULL;
1566
if (_inner_error_ != NULL) {
1567
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);
1568
g_clear_error (&_inner_error_);
1573
const gchar* _tmp19_;
1575
_tmp19_ = _tmp18_->name;
1576
if (g_strcmp0 (_tmp19_, "max") == 0) {
1578
const gchar* _tmp20_;
1579
GVariantType* _tmp21_;
1580
GVariantType* _tmp22_;
1583
const gchar* _tmp25_;
1584
GVariant* _tmp26_ = NULL;
1588
_tmp21_ = g_variant_type_new (_tmp20_);
1591
_tmp24_ = _tmp23_->children;
1592
_tmp25_ = _tmp24_->content;
1593
_tmp26_ = g_variant_parse (_tmp22_, _tmp25_, NULL, NULL, &_inner_error_);
1595
_g_variant_type_free0 (_tmp22_);
1597
if (_inner_error_ != NULL) {
1598
if (_inner_error_->domain == G_VARIANT_PARSE_ERROR) {
1599
goto __catch9_g_variant_parse_error;
1601
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1602
g_clear_error (&_inner_error_);
1605
_g_variant_unref0 (self->max);
1606
self->max = _tmp28_;
1609
__catch9_g_variant_parse_error:
1280
1612
e = _inner_error_;
1281
1613
_inner_error_ = NULL;
1282
1614
_g_error_free0 (e);
1285
1617
if (_inner_error_ != NULL) {
1286
1618
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);
1287
1619
g_clear_error (&_inner_error_);
1291
g_warning ("dconf-schema.vala:212: Unknown property in <range>, %s", prop->name);
1624
const gchar* _tmp30_;
1626
_tmp30_ = _tmp29_->name;
1627
g_warning ("dconf-schema.vala:212: Unknown property in <range>, %s", _tmp30_);
1500
1836
SchemaEnum* schema_enum_construct_from_xml (GType object_type, SchemaList* list, xmlNode* node) {
1501
1837
SchemaEnum* self = NULL;
1502
1838
SchemaList* _tmp0_;
1503
1840
g_return_val_if_fail (list != NULL, NULL);
1504
1841
self = (SchemaEnum*) g_type_create_instance (object_type);
1505
_tmp0_ = _schema_list_ref0 (list);
1843
_tmp1_ = _schema_list_ref0 (_tmp0_);
1506
1844
_schema_list_unref0 (self->list);
1507
self->list = _tmp0_;
1845
self->list = _tmp1_;
1510
prop = node->properties;
1851
_tmp3_ = _tmp2_->properties;
1860
const gchar* _tmp10_;
1866
_tmp7_ = _tmp6_->next;
1519
if (!(prop != NULL)) {
1871
if (!(_tmp8_ != NULL)) {
1522
if (g_strcmp0 (prop->name, "id") == 0) {
1524
_tmp2_ = g_strdup (prop->children->content);
1875
_tmp10_ = _tmp9_->name;
1876
if (g_strcmp0 (_tmp10_, "id") == 0) {
1879
const gchar* _tmp13_;
1882
_tmp12_ = _tmp11_->children;
1883
_tmp13_ = _tmp12_->content;
1884
_tmp14_ = g_strdup (_tmp13_);
1525
1885
_g_free0 (self->id);
1528
g_warning ("dconf-schema.vala:235: Unknown property in <enum>, %s", prop->name);
1889
const gchar* _tmp16_;
1891
_tmp16_ = _tmp15_->name;
1892
g_warning ("dconf-schema.vala:235: Unknown property in <enum>, %s", _tmp16_);
1534
1900
xmlNode* child;
1535
child = node->children;
1902
_tmp18_ = _tmp17_->children;
1541
child = child->next;
1911
const gchar* _tmp25_;
1917
_tmp22_ = _tmp21_->next;
1544
if (!(child != NULL)) {
1922
if (!(_tmp23_ != NULL)) {
1547
if (g_strcmp0 (child->name, "value") == 0) {
1926
_tmp25_ = _tmp24_->name;
1927
if (g_strcmp0 (_tmp25_, "value") == 0) {
1551
SchemaValue* _tmp8_ = NULL;
1932
const gchar* _tmp49_;
1934
SchemaValue* _tmp51_;
1552
1935
SchemaValue* schema_value;
1553
SchemaValue* _tmp9_;
1936
SchemaValue* _tmp52_;
1937
SchemaValue* _tmp53_;
1558
prop = child->properties;
1945
_tmp27_ = _tmp26_->properties;
1954
const gchar* _tmp34_;
1960
_tmp31_ = _tmp30_->next;
1567
if (!(prop != NULL)) {
1965
if (!(_tmp32_ != NULL)) {
1570
if (g_strcmp0 (prop->name, "value") == 0) {
1572
_tmp5_ = atoi (prop->children->content);
1969
_tmp34_ = _tmp33_->name;
1970
if (g_strcmp0 (_tmp34_, "value") == 0) {
1973
const gchar* _tmp37_;
1976
_tmp36_ = _tmp35_->children;
1977
_tmp37_ = _tmp36_->content;
1978
_tmp38_ = atoi (_tmp37_);
1575
if (g_strcmp0 (prop->name, "nick") == 0) {
1577
_tmp6_ = g_strdup (prop->children->content);
1982
const gchar* _tmp40_;
1984
_tmp40_ = _tmp39_->name;
1985
if (g_strcmp0 (_tmp40_, "nick") == 0) {
1988
const gchar* _tmp43_;
1991
_tmp42_ = _tmp41_->children;
1992
_tmp43_ = _tmp42_->content;
1993
_tmp44_ = g_strdup (_tmp43_);
1578
1994
_g_free0 (nick);
1581
g_warning ("dconf-schema.vala:255: Unknown property in enum <value>, %s", prop->name);
1998
const gchar* _tmp46_;
2000
_tmp46_ = _tmp45_->name;
2001
g_warning ("dconf-schema.vala:255: Unknown property in enum <value>, %s", _tmp46_);
1587
_tmp7_ = g_list_length (self->values);
1588
_tmp8_ = schema_value_new (_tmp7_, nick, value);
1589
schema_value = _tmp8_;
1590
_tmp9_ = _g_object_ref0 (schema_value);
1591
self->values = g_list_append (self->values, _tmp9_);
2007
_tmp47_ = self->values;
2008
_tmp48_ = g_list_length (_tmp47_);
2011
_tmp51_ = schema_value_new (_tmp48_, _tmp49_, _tmp50_);
2012
schema_value = _tmp51_;
2013
_tmp52_ = schema_value;
2014
_tmp53_ = _g_object_ref0 (_tmp52_);
2015
self->values = g_list_append (self->values, _tmp53_);
1592
2016
_g_object_unref0 (schema_value);
1593
2017
_g_free0 (nick);
1595
gboolean _tmp10_ = FALSE;
1596
if (child->type != XML_TEXT_NODE) {
1597
_tmp10_ = child->type != XML_COMMENT_NODE;
2019
gboolean _tmp54_ = FALSE;
2021
xmlElementType _tmp56_;
2024
_tmp56_ = _tmp55_->type;
2025
if (_tmp56_ != XML_TEXT_NODE) {
2027
xmlElementType _tmp58_;
2029
_tmp58_ = _tmp57_->type;
2030
_tmp54_ = _tmp58_ != XML_COMMENT_NODE;
1602
g_warning ("dconf-schema.vala:265: Unknown tag in <enum>, <%s>", child->name);
2037
const gchar* _tmp61_;
2039
_tmp61_ = _tmp60_->name;
2040
g_warning ("dconf-schema.vala:265: Unknown tag in <enum>, <%s>", _tmp61_);
1792
2230
SchemaFlags* schema_flags_construct_from_xml (GType object_type, SchemaList* list, xmlNode* node) {
1793
2231
SchemaFlags* self = NULL;
1794
2232
SchemaList* _tmp0_;
1795
2234
g_return_val_if_fail (list != NULL, NULL);
1796
2235
self = (SchemaFlags*) g_type_create_instance (object_type);
1797
_tmp0_ = _schema_list_ref0 (list);
2237
_tmp1_ = _schema_list_ref0 (_tmp0_);
1798
2238
_schema_list_unref0 (self->list);
1799
self->list = _tmp0_;
2239
self->list = _tmp1_;
1802
prop = node->properties;
2245
_tmp3_ = _tmp2_->properties;
2254
const gchar* _tmp10_;
2260
_tmp7_ = _tmp6_->next;
1811
if (!(prop != NULL)) {
2265
if (!(_tmp8_ != NULL)) {
1814
if (g_strcmp0 (prop->name, "id") == 0) {
1816
_tmp2_ = g_strdup (prop->children->content);
2269
_tmp10_ = _tmp9_->name;
2270
if (g_strcmp0 (_tmp10_, "id") == 0) {
2273
const gchar* _tmp13_;
2276
_tmp12_ = _tmp11_->children;
2277
_tmp13_ = _tmp12_->content;
2278
_tmp14_ = g_strdup (_tmp13_);
1817
2279
_g_free0 (self->id);
1820
g_warning ("dconf-schema.vala:288: Unknown property in <flags>, %s", prop->name);
2283
const gchar* _tmp16_;
2285
_tmp16_ = _tmp15_->name;
2286
g_warning ("dconf-schema.vala:288: Unknown property in <flags>, %s", _tmp16_);
1826
2294
xmlNode* child;
1827
child = node->children;
2296
_tmp18_ = _tmp17_->children;
1833
child = child->next;
2305
const gchar* _tmp25_;
2311
_tmp22_ = _tmp21_->next;
1836
if (!(child != NULL)) {
2316
if (!(_tmp23_ != NULL)) {
1839
if (g_strcmp0 (child->name, "value") == 0) {
2320
_tmp25_ = _tmp24_->name;
2321
if (g_strcmp0 (_tmp25_, "value") == 0) {
1843
SchemaValue* _tmp8_ = NULL;
2326
const gchar* _tmp49_;
2328
SchemaValue* _tmp51_;
1844
2329
SchemaValue* schema_value;
1845
SchemaValue* _tmp9_;
2330
SchemaValue* _tmp52_;
2331
SchemaValue* _tmp53_;
1850
prop = child->properties;
2339
_tmp27_ = _tmp26_->properties;
2348
const gchar* _tmp34_;
2354
_tmp31_ = _tmp30_->next;
1859
if (!(prop != NULL)) {
2359
if (!(_tmp32_ != NULL)) {
1862
if (g_strcmp0 (prop->name, "value") == 0) {
1864
_tmp5_ = atoi (prop->children->content);
2363
_tmp34_ = _tmp33_->name;
2364
if (g_strcmp0 (_tmp34_, "value") == 0) {
2367
const gchar* _tmp37_;
2370
_tmp36_ = _tmp35_->children;
2371
_tmp37_ = _tmp36_->content;
2372
_tmp38_ = atoi (_tmp37_);
1867
if (g_strcmp0 (prop->name, "nick") == 0) {
1869
_tmp6_ = g_strdup (prop->children->content);
2376
const gchar* _tmp40_;
2378
_tmp40_ = _tmp39_->name;
2379
if (g_strcmp0 (_tmp40_, "nick") == 0) {
2382
const gchar* _tmp43_;
2385
_tmp42_ = _tmp41_->children;
2386
_tmp43_ = _tmp42_->content;
2387
_tmp44_ = g_strdup (_tmp43_);
1870
2388
_g_free0 (nick);
1873
g_warning ("dconf-schema.vala:308: Unknown property in flags <value>, %s", prop->name);
2392
const gchar* _tmp46_;
2394
_tmp46_ = _tmp45_->name;
2395
g_warning ("dconf-schema.vala:308: Unknown property in flags <value>, %s", _tmp46_);
1879
_tmp7_ = g_list_length (self->values);
1880
_tmp8_ = schema_value_new (_tmp7_, nick, value);
1881
schema_value = _tmp8_;
1882
_tmp9_ = _g_object_ref0 (schema_value);
1883
self->values = g_list_append (self->values, _tmp9_);
2401
_tmp47_ = self->values;
2402
_tmp48_ = g_list_length (_tmp47_);
2405
_tmp51_ = schema_value_new (_tmp48_, _tmp49_, _tmp50_);
2406
schema_value = _tmp51_;
2407
_tmp52_ = schema_value;
2408
_tmp53_ = _g_object_ref0 (_tmp52_);
2409
self->values = g_list_append (self->values, _tmp53_);
1884
2410
_g_object_unref0 (schema_value);
1885
2411
_g_free0 (nick);
1887
gboolean _tmp10_ = FALSE;
1888
if (child->type != XML_TEXT_NODE) {
1889
_tmp10_ = child->type != XML_COMMENT_NODE;
2413
gboolean _tmp54_ = FALSE;
2415
xmlElementType _tmp56_;
2418
_tmp56_ = _tmp55_->type;
2419
if (_tmp56_ != XML_TEXT_NODE) {
2421
xmlElementType _tmp58_;
2423
_tmp58_ = _tmp57_->type;
2424
_tmp54_ = _tmp58_ != XML_COMMENT_NODE;
1894
g_warning ("dconf-schema.vala:318: Unknown tag in <flags>, <%s>", child->name);
2431
const gchar* _tmp61_;
2433
_tmp61_ = _tmp60_->name;
2434
g_warning ("dconf-schema.vala:318: Unknown tag in <flags>, <%s>", _tmp61_);
2099
2639
Schema* schema_construct_from_xml (GType object_type, SchemaList* list, xmlNode* node, const gchar* gettext_domain) {
2100
2640
Schema* self = NULL;
2101
2641
SchemaList* _tmp0_;
2102
2643
g_return_val_if_fail (list != NULL, NULL);
2103
2644
self = (Schema*) g_type_create_instance (object_type);
2104
_tmp0_ = _schema_list_ref0 (list);
2646
_tmp1_ = _schema_list_ref0 (_tmp0_);
2105
2647
_schema_list_unref0 (self->list);
2106
self->list = _tmp0_;
2648
self->list = _tmp1_;
2109
prop = node->properties;
2654
_tmp3_ = _tmp2_->properties;
2663
const gchar* _tmp10_;
2669
_tmp7_ = _tmp6_->next;
2118
if (!(prop != NULL)) {
2674
if (!(_tmp8_ != NULL)) {
2121
if (g_strcmp0 (prop->name, "id") == 0) {
2123
_tmp2_ = g_strdup (prop->children->content);
2678
_tmp10_ = _tmp9_->name;
2679
if (g_strcmp0 (_tmp10_, "id") == 0) {
2682
const gchar* _tmp13_;
2685
_tmp12_ = _tmp11_->children;
2686
_tmp13_ = _tmp12_->content;
2687
_tmp14_ = g_strdup (_tmp13_);
2124
2688
_g_free0 (self->id);
2127
if (g_strcmp0 (prop->name, "path") == 0) {
2129
_tmp3_ = g_strdup (prop->children->content);
2692
const gchar* _tmp16_;
2694
_tmp16_ = _tmp15_->name;
2695
if (g_strcmp0 (_tmp16_, "path") == 0) {
2698
const gchar* _tmp19_;
2701
_tmp18_ = _tmp17_->children;
2702
_tmp19_ = _tmp18_->content;
2703
_tmp20_ = g_strdup (_tmp19_);
2130
2704
_g_free0 (self->path);
2131
self->path = _tmp3_;
2705
self->path = _tmp20_;
2133
if (g_strcmp0 (prop->name, "gettext-domain") == 0) {
2134
gettext_domain = prop->children->content;
2708
const gchar* _tmp22_;
2710
_tmp22_ = _tmp21_->name;
2711
if (g_strcmp0 (_tmp22_, "gettext-domain") == 0) {
2714
const gchar* _tmp25_;
2716
_tmp24_ = _tmp23_->children;
2717
_tmp25_ = _tmp24_->content;
2718
gettext_domain = _tmp25_;
2136
g_warning ("dconf-schema.vala:346: Unknown property on <schema>, %s", prop->name);
2721
const gchar* _tmp27_;
2723
_tmp27_ = _tmp26_->name;
2724
g_warning ("dconf-schema.vala:346: Unknown property on <schema>, %s", _tmp27_);
2391
3011
void schema_list_parse_file (SchemaList* self, const gchar* path) {
2392
xmlDoc* _tmp0_ = NULL;
3012
const gchar* _tmp0_;
3013
xmlDoc* _tmp1_ = NULL;
2394
xmlNode* _tmp1_ = NULL;
3017
xmlNode* _tmp4_ = NULL;
3021
const gchar* _tmp7_;
2396
3022
gchar* gettext_domain;
2397
3024
g_return_if_fail (self != NULL);
2398
3025
g_return_if_fail (path != NULL);
2399
_tmp0_ = xmlParseFile (path);
2404
_tmp1_ = xmlDocGetRootElement (doc);
2409
if (g_strcmp0 (root->name, "schemalist") != 0) {
3027
_tmp1_ = xmlParseFile (_tmp0_);
3030
if (_tmp2_ == NULL) {
3034
_tmp4_ = xmlDocGetRootElement (_tmp3_);
3037
if (_tmp5_ == NULL) {
3041
_tmp7_ = _tmp6_->name;
3042
if (g_strcmp0 (_tmp7_, "schemalist") != 0) {
2412
3045
gettext_domain = NULL;
2415
prop = root->properties;
3051
_tmp9_ = _tmp8_->properties;
3060
const gchar* _tmp16_;
3066
_tmp13_ = _tmp12_->next;
2424
if (!(prop != NULL)) {
3071
if (!(_tmp14_ != NULL)) {
2427
if (g_strcmp0 (prop->name, "gettext-domain") == 0) {
2429
_tmp3_ = g_strdup (prop->children->content);
3075
_tmp16_ = _tmp15_->name;
3076
if (g_strcmp0 (_tmp16_, "gettext-domain") == 0) {
3079
const gchar* _tmp19_;
3082
_tmp18_ = _tmp17_->children;
3083
_tmp19_ = _tmp18_->content;
3084
_tmp20_ = g_strdup (_tmp19_);
2430
3085
_g_free0 (gettext_domain);
2431
gettext_domain = _tmp3_;
3086
gettext_domain = _tmp20_;
2438
node = root->children;
3096
_tmp22_ = _tmp21_->children;
3105
const gchar* _tmp29_;
3111
_tmp26_ = _tmp25_->next;
2447
if (!(node != NULL)) {
3116
if (!(_tmp27_ != NULL)) {
2450
if (g_strcmp0 (node->name, "schema") == 0) {
2451
Schema* _tmp5_ = NULL;
3120
_tmp29_ = _tmp28_->name;
3121
if (g_strcmp0 (_tmp29_, "schema") == 0) {
3123
const gchar* _tmp31_;
2452
3125
Schema* schema;
2453
GList* _tmp6_ = NULL;
2455
_tmp5_ = schema_new_from_xml (self, node, gettext_domain);
2457
if (schema->path == NULL) {
3127
const gchar* _tmp34_;
3129
GHashTable* _tmp36_;
3130
GList* _tmp37_ = NULL;
3134
_tmp31_ = gettext_domain;
3135
_tmp32_ = schema_new_from_xml (self, _tmp30_, _tmp31_);
3138
_tmp34_ = _tmp33_->path;
3139
if (_tmp34_ == NULL) {
2458
3140
_schema_unref0 (schema);
2461
_tmp6_ = g_hash_table_get_values (schema->keys);
3144
_tmp36_ = _tmp35_->keys;
3145
_tmp37_ = g_hash_table_get_values (_tmp36_);
2463
GList* key_collection;
2465
key_collection = _tmp6_;
3147
GList* key_collection = NULL;
3148
GList* key_it = NULL;
3149
key_collection = _tmp37_;
2466
3150
for (key_it = key_collection; key_it != NULL; key_it = key_it->next) {
3151
SchemaKey* key = NULL;
2468
3152
key = (SchemaKey*) key_it->data;
3155
const gchar* _tmp39_;
3157
const gchar* _tmp41_;
2471
3159
gchar* full_name;
2474
_tmp7_ = g_strconcat (schema->path, key->name, NULL);
2476
_tmp8_ = g_strdup (full_name);
2477
_tmp9_ = _schema_key_ref0 (key);
2478
g_hash_table_insert (self->keys, _tmp8_, _tmp9_);
3160
GHashTable* _tmp43_;
3161
const gchar* _tmp44_;
3166
_tmp39_ = _tmp38_->path;
3168
_tmp41_ = _tmp40_->name;
3169
_tmp42_ = g_strconcat (_tmp39_, _tmp41_, NULL);
3170
full_name = _tmp42_;
3171
_tmp43_ = self->keys;
3172
_tmp44_ = full_name;
3173
_tmp45_ = g_strdup (_tmp44_);
3175
_tmp47_ = _schema_key_ref0 (_tmp46_);
3176
g_hash_table_insert (_tmp43_, _tmp45_, _tmp47_);
2479
3177
_g_free0 (full_name);
2482
3180
_g_list_free0 (key_collection);
2484
_tmp10_ = _schema_ref0 (schema);
2485
self->schemas = g_list_append (self->schemas, _tmp10_);
3183
_tmp49_ = _schema_ref0 (_tmp48_);
3184
self->schemas = g_list_append (self->schemas, _tmp49_);
2486
3185
_schema_unref0 (schema);
2488
if (g_strcmp0 (node->name, "enum") == 0) {
2489
SchemaEnum* _tmp11_ = NULL;
3188
const gchar* _tmp51_;
3190
_tmp51_ = _tmp50_->name;
3191
if (g_strcmp0 (_tmp51_, "enum") == 0) {
3193
SchemaEnum* _tmp53_;
2490
3194
SchemaEnum* _enum_;
2492
SchemaEnum* _tmp13_;
2493
_tmp11_ = schema_enum_new_from_xml (self, node);
2495
_tmp12_ = g_strdup (_enum_->id);
2496
_tmp13_ = _schema_enum_ref0 (_enum_);
2497
g_hash_table_insert (self->enums, _tmp12_, _tmp13_);
3195
GHashTable* _tmp54_;
3196
SchemaEnum* _tmp55_;
3197
const gchar* _tmp56_;
3199
SchemaEnum* _tmp58_;
3200
SchemaEnum* _tmp59_;
3202
_tmp53_ = schema_enum_new_from_xml (self, _tmp52_);
3204
_tmp54_ = self->enums;
3206
_tmp56_ = _tmp55_->id;
3207
_tmp57_ = g_strdup (_tmp56_);
3209
_tmp59_ = _schema_enum_ref0 (_tmp58_);
3210
g_hash_table_insert (_tmp54_, _tmp57_, _tmp59_);
2498
3211
_schema_enum_unref0 (_enum_);
2500
if (g_strcmp0 (node->name, "flags") == 0) {
2501
SchemaFlags* _tmp14_ = NULL;
3214
const gchar* _tmp61_;
3216
_tmp61_ = _tmp60_->name;
3217
if (g_strcmp0 (_tmp61_, "flags") == 0) {
3219
SchemaFlags* _tmp63_;
2502
3220
SchemaFlags* f;
2504
SchemaFlags* _tmp16_;
2505
_tmp14_ = schema_flags_new_from_xml (self, node);
2507
_tmp15_ = g_strdup (f->id);
2508
_tmp16_ = _schema_flags_ref0 (f);
2509
g_hash_table_insert (self->flags, _tmp15_, _tmp16_);
3221
GHashTable* _tmp64_;
3222
SchemaFlags* _tmp65_;
3223
const gchar* _tmp66_;
3225
SchemaFlags* _tmp68_;
3226
SchemaFlags* _tmp69_;
3228
_tmp63_ = schema_flags_new_from_xml (self, _tmp62_);
3230
_tmp64_ = self->flags;
3232
_tmp66_ = _tmp65_->id;
3233
_tmp67_ = g_strdup (_tmp66_);
3235
_tmp69_ = _schema_flags_ref0 (_tmp68_);
3236
g_hash_table_insert (_tmp64_, _tmp67_, _tmp69_);
2510
3237
_schema_flags_unref0 (f);
2512
if (node->type != XML_TEXT_NODE) {
2513
g_warning ("dconf-schema.vala:417: Unknown tag <%s>", node->name);
3240
xmlElementType _tmp71_;
3242
_tmp71_ = _tmp70_->type;
3243
if (_tmp71_ != XML_TEXT_NODE) {
3245
const gchar* _tmp73_;
3247
_tmp73_ = _tmp72_->name;
3248
g_warning ("dconf-schema.vala:417: Unknown tag <%s>", _tmp73_);
3257
xmlFreeDoc (_tmp74_);
2522
3258
_g_free0 (gettext_domain);
2526
3262
void schema_list_load_directory (SchemaList* self, const gchar* dir, GError** error) {
2527
GFile* _tmp0_ = NULL;
3263
const gchar* _tmp0_;
3264
GFile* _tmp1_ = NULL;
2528
3265
GFile* directory;
2529
GFileEnumerator* _tmp1_ = NULL;
3267
GFileEnumerator* _tmp3_ = NULL;
2530
3268
GFileEnumerator* i;
2531
3269
GFileInfo* info = NULL;
2532
3270
GError * _inner_error_ = NULL;
2533
3271
g_return_if_fail (self != NULL);
2534
3272
g_return_if_fail (dir != NULL);
2535
_tmp0_ = g_file_new_for_path (dir);
2537
_tmp1_ = g_file_enumerate_children (directory, G_FILE_ATTRIBUTE_STANDARD_NAME, 0, NULL, &_inner_error_);
3274
_tmp1_ = g_file_new_for_path (_tmp0_);
3277
_tmp3_ = g_file_enumerate_children (_tmp2_, G_FILE_ATTRIBUTE_STANDARD_NAME, 0, NULL, &_inner_error_);
2539
3279
if (_inner_error_ != NULL) {
2540
3280
g_propagate_error (error, _inner_error_);
2541
3281
_g_object_unref0 (directory);
2545
GFileInfo* _tmp2_ = NULL;
2547
const gchar* _tmp4_ = NULL;
3285
GFileEnumerator* _tmp4_;
3286
GFileInfo* _tmp5_ = NULL;
3290
const gchar* _tmp9_ = NULL;
2550
gboolean _tmp6_ = FALSE;
2552
gchar* _tmp9_ = NULL;
3293
gboolean _tmp11_ = FALSE;
3294
const gchar* _tmp12_;
3295
gboolean _tmp13_ = FALSE;
3297
const gchar* _tmp17_;
3298
const gchar* _tmp18_;
3299
gchar* _tmp19_ = NULL;
2554
_tmp2_ = g_file_enumerator_next_file (i, NULL, &_inner_error_);
3301
const gchar* _tmp20_;
3303
_tmp5_ = g_file_enumerator_next_file (_tmp4_, NULL, &_inner_error_);
2556
3305
if (_inner_error_ != NULL) {
2557
3306
g_propagate_error (error, _inner_error_);
2558
3307
_g_object_unref0 (info);