~ubuntu-branches/ubuntu/trusty/d-conf/trusty-proposed

« back to all changes in this revision

Viewing changes to editor/dconf-model.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-03-24 21:08:24 UTC
  • mfrom: (1.1.34) (6.2.7 experimental)
  • Revision ID: package-import@ubuntu.com-20140324210824-7ptw8y51yr0z7qpf
Tags: 0.20.0-1
[ Jackson Doak ]
* New upstream release
* Bump valac build-depend to 0.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* dconf-model.c generated by valac 0.23.3, the Vala compiler
 
1
/* dconf-model.c generated by valac 0.18.1, the Vala compiler
2
2
 * generated from dconf-model.vala, do not modify */
3
3
 
4
4
 
531
531
 
532
532
GVariant* key_get_min (Key* self) {
533
533
        GVariant* result = NULL;
534
 
        GVariant* _tmp0_ = NULL;
535
 
        GVariant* _tmp1_ = NULL;
 
534
        GVariant* _tmp0_;
 
535
        GVariant* _tmp1_;
536
536
        GVariantClass _tmp2_ = 0;
537
537
        g_return_val_if_fail (self != NULL, NULL);
538
538
        _tmp0_ = key_get_value (self);
541
541
        switch (_tmp2_) {
542
542
                case G_VARIANT_CLASS_BYTE:
543
543
                {
544
 
                        GVariant* _tmp3_ = NULL;
 
544
                        GVariant* _tmp3_;
545
545
                        _tmp3_ = g_variant_new_byte ((guchar) 0);
546
546
                        g_variant_ref_sink (_tmp3_);
547
547
                        result = _tmp3_;
549
549
                }
550
550
                case G_VARIANT_CLASS_INT16:
551
551
                {
552
 
                        gint16 _tmp4_ = 0;
553
 
                        GVariant* _tmp5_ = NULL;
 
552
                        gint16 _tmp4_;
 
553
                        GVariant* _tmp5_;
554
554
                        _tmp4_ = G_MININT16;
555
555
                        _tmp5_ = g_variant_new_int16 (_tmp4_);
556
556
                        g_variant_ref_sink (_tmp5_);
559
559
                }
560
560
                case G_VARIANT_CLASS_UINT16:
561
561
                {
562
 
                        guint16 _tmp6_ = 0U;
563
 
                        GVariant* _tmp7_ = NULL;
 
562
                        guint16 _tmp6_;
 
563
                        GVariant* _tmp7_;
564
564
                        _tmp6_ = 0U;
565
565
                        _tmp7_ = g_variant_new_uint16 (_tmp6_);
566
566
                        g_variant_ref_sink (_tmp7_);
569
569
                }
570
570
                case G_VARIANT_CLASS_INT32:
571
571
                {
572
 
                        gint32 _tmp8_ = 0;
573
 
                        GVariant* _tmp9_ = NULL;
 
572
                        gint32 _tmp8_;
 
573
                        GVariant* _tmp9_;
574
574
                        _tmp8_ = G_MININT32;
575
575
                        _tmp9_ = g_variant_new_int32 (_tmp8_);
576
576
                        g_variant_ref_sink (_tmp9_);
579
579
                }
580
580
                case G_VARIANT_CLASS_UINT32:
581
581
                {
582
 
                        guint32 _tmp10_ = 0U;
583
 
                        GVariant* _tmp11_ = NULL;
 
582
                        guint32 _tmp10_;
 
583
                        GVariant* _tmp11_;
584
584
                        _tmp10_ = 0U;
585
585
                        _tmp11_ = g_variant_new_uint32 (_tmp10_);
586
586
                        g_variant_ref_sink (_tmp11_);
589
589
                }
590
590
                case G_VARIANT_CLASS_INT64:
591
591
                {
592
 
                        gint64 _tmp12_ = 0LL;
593
 
                        GVariant* _tmp13_ = NULL;
 
592
                        gint64 _tmp12_;
 
593
                        GVariant* _tmp13_;
594
594
                        _tmp12_ = G_MININT64;
595
595
                        _tmp13_ = g_variant_new_int64 (_tmp12_);
596
596
                        g_variant_ref_sink (_tmp13_);
599
599
                }
600
600
                case G_VARIANT_CLASS_UINT64:
601
601
                {
602
 
                        guint64 _tmp14_ = 0ULL;
603
 
                        GVariant* _tmp15_ = NULL;
 
602
                        guint64 _tmp14_;
 
603
                        GVariant* _tmp15_;
604
604
                        _tmp14_ = 0ULL;
605
605
                        _tmp15_ = g_variant_new_uint64 (_tmp14_);
606
606
                        g_variant_ref_sink (_tmp15_);
609
609
                }
610
610
                case G_VARIANT_CLASS_DOUBLE:
611
611
                {
612
 
                        gdouble _tmp16_ = 0.0;
613
 
                        GVariant* _tmp17_ = NULL;
 
612
                        gdouble _tmp16_;
 
613
                        GVariant* _tmp17_;
614
614
                        _tmp16_ = DBL_MIN;
615
615
                        _tmp17_ = g_variant_new_double (_tmp16_);
616
616
                        g_variant_ref_sink (_tmp17_);
628
628
 
629
629
GVariant* key_get_max (Key* self) {
630
630
        GVariant* result = NULL;
631
 
        GVariant* _tmp0_ = NULL;
632
 
        GVariant* _tmp1_ = NULL;
 
631
        GVariant* _tmp0_;
 
632
        GVariant* _tmp1_;
633
633
        GVariantClass _tmp2_ = 0;
634
634
        g_return_val_if_fail (self != NULL, NULL);
635
635
        _tmp0_ = key_get_value (self);
638
638
        switch (_tmp2_) {
639
639
                case G_VARIANT_CLASS_BYTE:
640
640
                {
641
 
                        GVariant* _tmp3_ = NULL;
 
641
                        GVariant* _tmp3_;
642
642
                        _tmp3_ = g_variant_new_byte ((guchar) 255);
643
643
                        g_variant_ref_sink (_tmp3_);
644
644
                        result = _tmp3_;
646
646
                }
647
647
                case G_VARIANT_CLASS_INT16:
648
648
                {
649
 
                        gint16 _tmp4_ = 0;
650
 
                        GVariant* _tmp5_ = NULL;
 
649
                        gint16 _tmp4_;
 
650
                        GVariant* _tmp5_;
651
651
                        _tmp4_ = G_MAXINT16;
652
652
                        _tmp5_ = g_variant_new_int16 (_tmp4_);
653
653
                        g_variant_ref_sink (_tmp5_);
656
656
                }
657
657
                case G_VARIANT_CLASS_UINT16:
658
658
                {
659
 
                        guint16 _tmp6_ = 0U;
660
 
                        GVariant* _tmp7_ = NULL;
 
659
                        guint16 _tmp6_;
 
660
                        GVariant* _tmp7_;
661
661
                        _tmp6_ = G_MAXUINT16;
662
662
                        _tmp7_ = g_variant_new_uint16 (_tmp6_);
663
663
                        g_variant_ref_sink (_tmp7_);
666
666
                }
667
667
                case G_VARIANT_CLASS_INT32:
668
668
                {
669
 
                        gint32 _tmp8_ = 0;
670
 
                        GVariant* _tmp9_ = NULL;
 
669
                        gint32 _tmp8_;
 
670
                        GVariant* _tmp9_;
671
671
                        _tmp8_ = G_MAXINT32;
672
672
                        _tmp9_ = g_variant_new_int32 (_tmp8_);
673
673
                        g_variant_ref_sink (_tmp9_);
676
676
                }
677
677
                case G_VARIANT_CLASS_UINT32:
678
678
                {
679
 
                        guint32 _tmp10_ = 0U;
680
 
                        GVariant* _tmp11_ = NULL;
 
679
                        guint32 _tmp10_;
 
680
                        GVariant* _tmp11_;
681
681
                        _tmp10_ = G_MAXUINT32;
682
682
                        _tmp11_ = g_variant_new_uint32 (_tmp10_);
683
683
                        g_variant_ref_sink (_tmp11_);
686
686
                }
687
687
                case G_VARIANT_CLASS_INT64:
688
688
                {
689
 
                        gint64 _tmp12_ = 0LL;
690
 
                        GVariant* _tmp13_ = NULL;
 
689
                        gint64 _tmp12_;
 
690
                        GVariant* _tmp13_;
691
691
                        _tmp12_ = G_MAXINT64;
692
692
                        _tmp13_ = g_variant_new_int64 (_tmp12_);
693
693
                        g_variant_ref_sink (_tmp13_);
696
696
                }
697
697
                case G_VARIANT_CLASS_UINT64:
698
698
                {
699
 
                        guint64 _tmp14_ = 0ULL;
700
 
                        GVariant* _tmp15_ = NULL;
 
699
                        guint64 _tmp14_;
 
700
                        GVariant* _tmp15_;
701
701
                        _tmp14_ = G_MAXUINT64;
702
702
                        _tmp15_ = g_variant_new_uint64 (_tmp14_);
703
703
                        g_variant_ref_sink (_tmp15_);
706
706
                }
707
707
                case G_VARIANT_CLASS_DOUBLE:
708
708
                {
709
 
                        gdouble _tmp16_ = 0.0;
710
 
                        GVariant* _tmp17_ = NULL;
 
709
                        gdouble _tmp16_;
 
710
                        GVariant* _tmp17_;
711
711
                        _tmp16_ = DBL_MAX;
712
712
                        _tmp17_ = g_variant_new_double (_tmp16_);
713
713
                        g_variant_ref_sink (_tmp17_);
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;
 
729
        const gchar* _tmp2_;
730
730
        gboolean _tmp3_ = FALSE;
 
731
        gboolean _tmp7_;
 
732
        gboolean _tmp10_;
731
733
        g_return_if_fail (self != NULL);
732
734
        g_return_if_fail (key != NULL);
733
735
        _tmp2_ = key;
734
736
        _tmp3_ = g_str_has_suffix (_tmp2_, "/");
735
737
        if (_tmp3_) {
736
 
                const gchar* _tmp4_ = NULL;
737
 
                const gchar* _tmp5_ = NULL;
 
738
                const gchar* _tmp4_;
 
739
                const gchar* _tmp5_;
738
740
                gboolean _tmp6_ = FALSE;
739
741
                _tmp4_ = self->full_name;
740
742
                _tmp5_ = key;
743
745
        } else {
744
746
                _tmp1_ = FALSE;
745
747
        }
746
 
        if (_tmp1_) {
 
748
        _tmp7_ = _tmp1_;
 
749
        if (_tmp7_) {
747
750
                _tmp0_ = TRUE;
748
751
        } else {
749
 
                const gchar* _tmp7_ = NULL;
750
 
                const gchar* _tmp8_ = NULL;
751
 
                _tmp7_ = key;
752
 
                _tmp8_ = self->full_name;
753
 
                _tmp0_ = g_strcmp0 (_tmp7_, _tmp8_) == 0;
 
752
                const gchar* _tmp8_;
 
753
                const gchar* _tmp9_;
 
754
                _tmp8_ = key;
 
755
                _tmp9_ = self->full_name;
 
756
                _tmp0_ = g_strcmp0 (_tmp8_, _tmp9_) == 0;
754
757
        }
755
 
        if (_tmp0_) {
 
758
        _tmp10_ = _tmp0_;
 
759
        if (_tmp10_) {
756
760
                g_signal_emit_by_name (self, "value-changed");
757
761
        }
758
762
}
769
773
 
770
774
 
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);
773
777
}
774
778
 
775
779
 
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_;
 
784
        Directory* _tmp2_;
 
785
        Directory* _tmp3_;
 
786
        const gchar* _tmp4_;
 
787
        gchar* _tmp5_;
 
788
        const gchar* _tmp6_;
 
789
        gchar* _tmp7_;
 
790
        SettingsModel* _tmp8_;
 
791
        SchemaList* _tmp9_;
 
792
        GHashTable* _tmp10_;
 
793
        const gchar* _tmp11_;
790
794
        gconstpointer _tmp12_ = NULL;
791
 
        SchemaKey* _tmp13_ = NULL;
792
 
        SettingsModel* _tmp14_ = NULL;
 
795
        SchemaKey* _tmp13_;
 
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);
831
835
 
832
836
 
833
837
void key_set_to_default (Key* self) {
834
 
        gboolean _tmp0_ = FALSE;
835
 
        gboolean _tmp1_ = FALSE;
 
838
        gboolean _tmp0_;
 
839
        gboolean _tmp1_;
836
840
        GError * _inner_error_ = NULL;
837
841
        g_return_if_fail (self != NULL);
838
842
        _tmp0_ = key_get_has_schema (self);
843
847
        _g_variant_unref0 (self->priv->_value);
844
848
        self->priv->_value = NULL;
845
849
        {
846
 
                SettingsModel* _tmp2_ = NULL;
847
 
                DConfClient* _tmp3_ = NULL;
848
 
                const gchar* _tmp4_ = NULL;
 
850
                SettingsModel* _tmp2_;
 
851
                DConfClient* _tmp3_;
 
852
                const gchar* _tmp4_;
849
853
                _tmp2_ = self->priv->model;
850
854
                _tmp3_ = _tmp2_->client;
851
855
                _tmp4_ = self->full_name;
873
877
 
874
878
 
875
879
static void key_update_value (Key* self) {
876
 
        SettingsModel* _tmp0_ = NULL;
877
 
        DConfClient* _tmp1_ = NULL;
878
 
        const gchar* _tmp2_ = NULL;
 
880
        SettingsModel* _tmp0_;
 
881
        DConfClient* _tmp1_;
 
882
        const gchar* _tmp2_;
879
883
        GVariant* _tmp3_ = NULL;
880
884
        g_return_if_fail (self != NULL);
881
885
        _tmp0_ = self->priv->model;
889
893
 
890
894
gboolean key_get_has_schema (Key* self) {
891
895
        gboolean result;
892
 
        SchemaKey* _tmp0_ = NULL;
 
896
        SchemaKey* _tmp0_;
893
897
        g_return_val_if_fail (self != NULL, FALSE);
894
898
        _tmp0_ = self->schema;
895
899
        result = _tmp0_ != NULL;
899
903
 
900
904
gint key_get_index (Key* self) {
901
905
        gint result;
902
 
        Directory* _tmp0_ = NULL;
903
 
        GList* _tmp1_ = NULL;
904
 
        GList* _tmp2_ = NULL;
 
906
        Directory* _tmp0_;
 
907
        GList* _tmp1_;
 
908
        GList* _tmp2_;
905
909
        gint _tmp3_ = 0;
906
910
        g_return_val_if_fail (self != NULL, 0);
907
911
        _tmp0_ = self->parent;
915
919
 
916
920
const gchar* key_get_type_string (Key* self) {
917
921
        const gchar* result;
918
 
        GVariant* _tmp0_ = NULL;
919
 
        GVariant* _tmp1_ = NULL;
 
922
        GVariant* _tmp0_;
 
923
        GVariant* _tmp1_;
920
924
        g_return_val_if_fail (self != NULL, NULL);
921
925
        _tmp0_ = key_get_value (self);
922
926
        _tmp1_ = _tmp0_;
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;
 
930
                GVariant* _tmp4_;
 
931
                GVariant* _tmp5_;
 
932
                const GVariantType* _tmp6_;
929
933
                gboolean _tmp7_ = FALSE;
 
934
                gboolean _tmp10_;
 
935
                gboolean _tmp13_;
930
936
                _tmp4_ = key_get_value (self);
931
937
                _tmp5_ = _tmp4_;
932
938
                _tmp6_ = G_VARIANT_TYPE_STRING;
933
939
                _tmp7_ = g_variant_is_of_type (_tmp5_, _tmp6_);
934
940
                if (_tmp7_) {
935
 
                        gboolean _tmp8_ = FALSE;
936
 
                        gboolean _tmp9_ = FALSE;
 
941
                        gboolean _tmp8_;
 
942
                        gboolean _tmp9_;
937
943
                        _tmp8_ = key_get_has_schema (self);
938
944
                        _tmp9_ = _tmp8_;
939
945
                        _tmp3_ = _tmp9_;
940
946
                } else {
941
947
                        _tmp3_ = FALSE;
942
948
                }
943
 
                if (_tmp3_) {
944
 
                        SchemaKey* _tmp10_ = NULL;
945
 
                        const gchar* _tmp11_ = NULL;
946
 
                        _tmp10_ = self->schema;
947
 
                        _tmp11_ = _tmp10_->enum_name;
948
 
                        _tmp2_ = _tmp11_ != NULL;
 
949
                _tmp10_ = _tmp3_;
 
950
                if (_tmp10_) {
 
951
                        SchemaKey* _tmp11_;
 
952
                        const gchar* _tmp12_;
 
953
                        _tmp11_ = self->schema;
 
954
                        _tmp12_ = _tmp11_->enum_name;
 
955
                        _tmp2_ = _tmp12_ != NULL;
949
956
                } else {
950
957
                        _tmp2_ = FALSE;
951
958
                }
952
 
                if (_tmp2_) {
 
959
                _tmp13_ = _tmp2_;
 
960
                if (_tmp13_) {
953
961
                        result = "<enum>";
954
962
                        return result;
955
963
                } else {
956
 
                        GVariant* _tmp12_ = NULL;
957
 
                        GVariant* _tmp13_ = NULL;
958
 
                        const gchar* _tmp14_ = NULL;
959
 
                        _tmp12_ = key_get_value (self);
960
 
                        _tmp13_ = _tmp12_;
961
 
                        _tmp14_ = g_variant_get_type_string (_tmp13_);
962
 
                        result = _tmp14_;
 
964
                        GVariant* _tmp14_;
 
965
                        GVariant* _tmp15_;
 
966
                        const gchar* _tmp16_ = NULL;
 
967
                        _tmp14_ = key_get_value (self);
 
968
                        _tmp15_ = _tmp14_;
 
969
                        _tmp16_ = g_variant_get_type_string (_tmp15_);
 
970
                        result = _tmp16_;
963
971
                        return result;
964
972
                }
965
973
        } else {
966
 
                SchemaKey* _tmp15_ = NULL;
967
 
                const gchar* _tmp16_ = NULL;
968
 
                _tmp15_ = self->schema;
969
 
                _tmp16_ = _tmp15_->type;
970
 
                result = _tmp16_;
 
974
                SchemaKey* _tmp17_;
 
975
                const gchar* _tmp18_;
 
976
                _tmp17_ = self->schema;
 
977
                _tmp18_ = _tmp17_->type;
 
978
                result = _tmp18_;
971
979
                return result;
972
980
        }
973
981
}
981
989
 
982
990
GVariant* key_get_value (Key* self) {
983
991
        GVariant* result;
984
 
        GVariant* _tmp0_ = NULL;
 
992
        GVariant* _tmp0_;
985
993
        g_return_val_if_fail (self != NULL, NULL);
986
994
        key_update_value (self);
987
995
        _tmp0_ = self->priv->_value;
988
996
        if (_tmp0_ != NULL) {
989
 
                GVariant* _tmp1_ = NULL;
 
997
                GVariant* _tmp1_;
990
998
                _tmp1_ = self->priv->_value;
991
999
                result = _tmp1_;
992
1000
                return result;
993
1001
        } else {
994
 
                SchemaKey* _tmp2_ = NULL;
995
 
                GVariant* _tmp3_ = NULL;
 
1002
                SchemaKey* _tmp2_;
 
1003
                GVariant* _tmp3_;
996
1004
                _tmp2_ = self->schema;
997
1005
                _tmp3_ = _tmp2_->default_value;
998
1006
                result = _tmp3_;
1007
1015
 
1008
1016
 
1009
1017
void key_set_value (Key* self, GVariant* value) {
1010
 
        GVariant* _tmp0_ = NULL;
1011
 
        GVariant* _tmp1_ = NULL;
 
1018
        GVariant* _tmp0_;
 
1019
        GVariant* _tmp1_;
1012
1020
        GError * _inner_error_ = NULL;
1013
1021
        g_return_if_fail (self != NULL);
1014
1022
        _tmp0_ = value;
1016
1024
        _g_variant_unref0 (self->priv->_value);
1017
1025
        self->priv->_value = _tmp1_;
1018
1026
        {
1019
 
                SettingsModel* _tmp2_ = NULL;
1020
 
                DConfClient* _tmp3_ = NULL;
1021
 
                const gchar* _tmp4_ = NULL;
1022
 
                GVariant* _tmp5_ = NULL;
 
1027
                SettingsModel* _tmp2_;
 
1028
                DConfClient* _tmp3_;
 
1029
                const gchar* _tmp4_;
 
1030
                GVariant* _tmp5_;
1023
1031
                _tmp2_ = self->priv->model;
1024
1032
                _tmp3_ = _tmp2_->client;
1025
1033
                _tmp4_ = self->full_name;
1050
1058
 
1051
1059
gboolean key_get_is_default (Key* self) {
1052
1060
        gboolean result;
1053
 
        GVariant* _tmp0_ = NULL;
 
1061
        GVariant* _tmp0_;
1054
1062
        g_return_val_if_fail (self != NULL, FALSE);
1055
1063
        key_update_value (self);
1056
1064
        _tmp0_ = self->priv->_value;
1165
1173
 
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_;
 
1178
        Directory* _tmp2_;
 
1179
        Directory* _tmp3_;
 
1180
        const gchar* _tmp4_;
 
1181
        gchar* _tmp5_;
 
1182
        const gchar* _tmp6_;
 
1183
        gchar* _tmp7_;
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);
1204
1212
 
1205
1213
static gint _directory_compare_directories_gcompare_func (gconstpointer a, gconstpointer b) {
1206
1214
        gint result;
1207
 
        result = directory_compare_directories ((Directory*) a, (Directory*) b);
 
1215
        result = directory_compare_directories (a, b);
1208
1216
        return result;
1209
1217
}
1210
1218
 
1211
1219
 
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;
 
1222
        GHashTable* _tmp0_;
 
1223
        const gchar* _tmp1_;
1217
1224
        gconstpointer _tmp2_ = NULL;
1218
 
        Directory* _tmp3_ = NULL;
1219
 
        Directory* _tmp4_ = NULL;
 
1225
        Directory* _tmp3_;
 
1226
        Directory* directory;
 
1227
        Directory* _tmp4_;
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_;
 
1241
                gchar* _tmp9_;
 
1242
                gchar* _tmp10_;
 
1243
                gchar* _tmp11_;
 
1244
                gchar* _tmp12_;
 
1245
                Directory* _tmp13_;
 
1246
                Directory* _tmp14_;
 
1247
                Directory* _tmp15_;
 
1248
                GHashTable* _tmp16_;
 
1249
                const gchar* _tmp17_;
 
1250
                gchar* _tmp18_;
 
1251
                Directory* _tmp19_;
 
1252
                Directory* _tmp20_;
1245
1253
                _tmp5_ = self->priv->model;
1246
1254
                _tmp6_ = name;
1247
1255
                _tmp7_ = self->full_name;
1272
1280
 
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_;
 
1284
        Directory* _tmp1_;
 
1285
        const gchar* _tmp2_;
 
1286
        Directory* _tmp3_;
 
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);
1293
1301
 
1294
1302
static gint _directory_compare_keys_gcompare_func (gconstpointer a, gconstpointer b) {
1295
1303
        gint result;
1296
 
        result = directory_compare_keys ((Key*) a, (Key*) b);
 
1304
        result = directory_compare_keys (a, b);
1297
1305
        return result;
1298
1306
}
1299
1307
 
1300
1308
 
1301
1309
Key* directory_get_key (Directory* self, const gchar* name) {
1302
1310
        Key* result = NULL;
1303
 
        Key* key = NULL;
1304
 
        GHashTable* _tmp0_ = NULL;
1305
 
        const gchar* _tmp1_ = NULL;
 
1311
        GHashTable* _tmp0_;
 
1312
        const gchar* _tmp1_;
1306
1313
        gconstpointer _tmp2_ = NULL;
1307
 
        Key* _tmp3_ = NULL;
1308
 
        Key* _tmp4_ = NULL;
 
1314
        Key* _tmp3_;
 
1315
        Key* key;
 
1316
        Key* _tmp4_;
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;
1315
1323
        key = _tmp3_;
1316
1324
        _tmp4_ = key;
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_;
 
1330
                gchar* _tmp9_;
 
1331
                gchar* _tmp10_;
 
1332
                Key* _tmp11_;
 
1333
                Key* _tmp12_;
 
1334
                Key* _tmp13_;
 
1335
                GHashTable* _tmp14_;
 
1336
                const gchar* _tmp15_;
 
1337
                gchar* _tmp16_;
 
1338
                Key* _tmp17_;
 
1339
                Key* _tmp18_;
1332
1340
                _tmp5_ = self->priv->model;
1333
1341
                _tmp6_ = name;
1334
1342
                _tmp7_ = self->full_name;
1356
1364
 
1357
1365
gint directory_compare_keys (Key* a, Key* b) {
1358
1366
        gint result = 0;
1359
 
        GCompareFunc _tmp0_ = NULL;
1360
 
        Key* _tmp1_ = NULL;
1361
 
        const gchar* _tmp2_ = NULL;
1362
 
        Key* _tmp3_ = NULL;
1363
 
        const gchar* _tmp4_ = NULL;
 
1367
        GCompareFunc _tmp0_;
 
1368
        Key* _tmp1_;
 
1369
        const gchar* _tmp2_;
 
1370
        Key* _tmp3_;
 
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);
1376
1384
 
1377
1385
 
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);
1383
1391
        _tmp0_ = path;
1384
1392
        if (g_strcmp0 (_tmp0_, "") == 0) {
1385
 
                Schema* _tmp1_ = NULL;
1386
 
                GHashTable* _tmp2_ = NULL;
 
1393
                Schema* _tmp1_;
 
1394
                GHashTable* _tmp2_;
1387
1395
                GList* _tmp3_ = NULL;
1388
1396
                _tmp1_ = schema;
1389
1397
                _tmp2_ = _tmp1_->keys;
1396
1404
                                SchemaKey* schema_key = NULL;
1397
1405
                                schema_key = (SchemaKey*) schema_key_it->data;
1398
1406
                                {
1399
 
                                        SchemaKey* _tmp4_ = NULL;
1400
 
                                        const gchar* _tmp5_ = NULL;
 
1407
                                        SchemaKey* _tmp4_;
 
1408
                                        const gchar* _tmp5_;
1401
1409
                                        Key* _tmp6_ = NULL;
1402
 
                                        Key* _tmp7_ = NULL;
 
1410
                                        Key* _tmp7_;
1403
1411
                                        _tmp4_ = schema_key;
1404
1412
                                        _tmp5_ = _tmp4_->name;
1405
1413
                                        _tmp6_ = directory_get_key (self, _tmp5_);
1410
1418
                        _g_list_free0 (schema_key_collection);
1411
1419
                }
1412
1420
        } else {
1413
 
                gchar** tokens = NULL;
1414
 
                const gchar* _tmp8_ = NULL;
1415
 
                gchar** _tmp9_ = NULL;
 
1421
                const gchar* _tmp8_;
 
1422
                gchar** _tmp9_;
1416
1423
                gchar** _tmp10_ = NULL;
1417
 
                gint tokens_length1 = 0;
1418
 
                gint _tokens_size_ = 0;
1419
 
                gchar* name = NULL;
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;
 
1424
                gchar** tokens;
 
1425
                gint tokens_length1;
 
1426
                gint _tokens_size_;
 
1427
                gchar** _tmp11_;
 
1428
                gint _tmp11__length1;
 
1429
                const gchar* _tmp12_;
 
1430
                gchar* _tmp13_;
 
1431
                gchar* name;
 
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;
 
1435
                Directory* _tmp16_;
 
1436
                Schema* _tmp17_;
 
1437
                gchar** _tmp18_;
 
1438
                gint _tmp18__length1;
 
1439
                const gchar* _tmp19_;
1432
1440
                _tmp8_ = path;
1433
1441
                _tmp10_ = _tmp9_ = g_strsplit (_tmp8_, "/", 2);
1434
1442
                tokens = _tmp10_;
1457
1465
 
1458
1466
static gchar* string_slice (const gchar* self, glong start, glong end) {
1459
1467
        gchar* result = NULL;
1460
 
        glong string_length = 0L;
1461
 
        gint _tmp0_ = 0;
1462
 
        gint _tmp1_ = 0;
1463
 
        glong _tmp2_ = 0L;
1464
 
        glong _tmp5_ = 0L;
 
1468
        gint _tmp0_;
 
1469
        gint _tmp1_;
 
1470
        glong string_length;
 
1471
        glong _tmp2_;
 
1472
        glong _tmp5_;
1465
1473
        gboolean _tmp8_ = FALSE;
1466
 
        glong _tmp9_ = 0L;
1467
 
        gboolean _tmp12_ = FALSE;
1468
 
        glong _tmp13_ = 0L;
1469
 
        glong _tmp16_ = 0L;
1470
 
        glong _tmp17_ = 0L;
1471
 
        glong _tmp18_ = 0L;
1472
 
        glong _tmp19_ = 0L;
1473
 
        glong _tmp20_ = 0L;
1474
 
        gchar* _tmp21_ = NULL;
 
1474
        glong _tmp9_;
 
1475
        gboolean _tmp12_;
 
1476
        gboolean _tmp13_ = FALSE;
 
1477
        glong _tmp14_;
 
1478
        gboolean _tmp17_;
 
1479
        glong _tmp18_;
 
1480
        glong _tmp19_;
 
1481
        glong _tmp20_;
 
1482
        glong _tmp21_;
 
1483
        glong _tmp22_;
 
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)) {
1481
 
                glong _tmp3_ = 0L;
1482
 
                glong _tmp4_ = 0L;
 
1491
                glong _tmp3_;
 
1492
                glong _tmp4_;
1483
1493
                _tmp3_ = string_length;
1484
1494
                _tmp4_ = start;
1485
1495
                start = _tmp3_ + _tmp4_;
1486
1496
        }
1487
1497
        _tmp5_ = end;
1488
1498
        if (_tmp5_ < ((glong) 0)) {
1489
 
                glong _tmp6_ = 0L;
1490
 
                glong _tmp7_ = 0L;
 
1499
                glong _tmp6_;
 
1500
                glong _tmp7_;
1491
1501
                _tmp6_ = string_length;
1492
1502
                _tmp7_ = end;
1493
1503
                end = _tmp6_ + _tmp7_;
1494
1504
        }
1495
1505
        _tmp9_ = start;
1496
1506
        if (_tmp9_ >= ((glong) 0)) {
1497
 
                glong _tmp10_ = 0L;
1498
 
                glong _tmp11_ = 0L;
 
1507
                glong _tmp10_;
 
1508
                glong _tmp11_;
1499
1509
                _tmp10_ = start;
1500
1510
                _tmp11_ = string_length;
1501
1511
                _tmp8_ = _tmp10_ <= _tmp11_;
1502
1512
        } else {
1503
1513
                _tmp8_ = FALSE;
1504
1514
        }
1505
 
        g_return_val_if_fail (_tmp8_, NULL);
1506
 
        _tmp13_ = end;
1507
 
        if (_tmp13_ >= ((glong) 0)) {
1508
 
                glong _tmp14_ = 0L;
1509
 
                glong _tmp15_ = 0L;
1510
 
                _tmp14_ = end;
1511
 
                _tmp15_ = string_length;
1512
 
                _tmp12_ = _tmp14_ <= _tmp15_;
1513
 
        } else {
1514
 
                _tmp12_ = FALSE;
1515
 
        }
 
1515
        _tmp12_ = _tmp8_;
1516
1516
        g_return_val_if_fail (_tmp12_, NULL);
1517
 
        _tmp16_ = start;
1518
 
        _tmp17_ = end;
1519
 
        g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
 
1517
        _tmp14_ = end;
 
1518
        if (_tmp14_ >= ((glong) 0)) {
 
1519
                glong _tmp15_;
 
1520
                glong _tmp16_;
 
1521
                _tmp15_ = end;
 
1522
                _tmp16_ = string_length;
 
1523
                _tmp13_ = _tmp15_ <= _tmp16_;
 
1524
        } else {
 
1525
                _tmp13_ = FALSE;
 
1526
        }
 
1527
        _tmp17_ = _tmp13_;
 
1528
        g_return_val_if_fail (_tmp17_, NULL);
1520
1529
        _tmp18_ = start;
1521
1530
        _tmp19_ = end;
 
1531
        g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
1522
1532
        _tmp20_ = start;
1523
 
        _tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
1524
 
        result = _tmp21_;
 
1533
        _tmp21_ = end;
 
1534
        _tmp22_ = start;
 
1535
        _tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
 
1536
        result = _tmp23_;
1525
1537
        return result;
1526
1538
}
1527
1539
 
1528
1540
 
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;
 
1542
        gboolean _tmp0_;
 
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;
 
1548
        gchar** items;
 
1549
        gint items_length1;
 
1550
        gint _items_size_;
1539
1551
        g_return_if_fail (self != NULL);
1540
1552
        _tmp0_ = self->priv->have_children;
1541
1553
        if (_tmp0_) {
1550
1562
        items_length1 = _tmp4_;
1551
1563
        _items_size_ = items_length1;
1552
1564
        {
1553
 
                gint i = 0;
 
1565
                gint i;
1554
1566
                i = 0;
1555
1567
                {
1556
 
                        gboolean _tmp6_ = FALSE;
 
1568
                        gboolean _tmp6_;
1557
1569
                        _tmp6_ = TRUE;
1558
1570
                        while (TRUE) {
1559
 
                                gint _tmp8_ = 0;
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;
1566
 
                                gint _tmp12_ = 0;
1567
 
                                const gchar* _tmp13_ = NULL;
1568
 
                                gchar* _tmp14_ = NULL;
1569
 
                                const gchar* _tmp15_ = NULL;
1570
 
                                gboolean _tmp16_ = FALSE;
1571
 
                                if (!_tmp6_) {
1572
 
                                        gint _tmp7_ = 0;
1573
 
                                        _tmp7_ = i;
1574
 
                                        i = _tmp7_ + 1;
 
1571
                                gboolean _tmp7_;
 
1572
                                gint _tmp9_;
 
1573
                                gchar** _tmp10_;
 
1574
                                gint _tmp10__length1;
 
1575
                                const gchar* _tmp11_;
 
1576
                                gchar** _tmp12_;
 
1577
                                gint _tmp12__length1;
 
1578
                                gint _tmp13_;
 
1579
                                const gchar* _tmp14_;
 
1580
                                gchar* _tmp15_;
 
1581
                                gchar* item_name;
 
1582
                                const gchar* _tmp16_;
 
1583
                                gboolean _tmp17_ = FALSE;
 
1584
                                _tmp7_ = _tmp6_;
 
1585
                                if (!_tmp7_) {
 
1586
                                        gint _tmp8_;
 
1587
                                        _tmp8_ = i;
 
1588
                                        i = _tmp8_ + 1;
1575
1589
                                }
1576
1590
                                _tmp6_ = FALSE;
1577
 
                                _tmp8_ = i;
1578
 
                                _tmp9_ = items;
1579
 
                                _tmp9__length1 = items_length1;
1580
 
                                if (!(_tmp8_ < _tmp9__length1)) {
 
1591
                                _tmp9_ = i;
 
1592
                                _tmp10_ = items;
 
1593
                                _tmp10__length1 = items_length1;
 
1594
                                if (!(_tmp9_ < _tmp10__length1)) {
1581
1595
                                        break;
1582
1596
                                }
1583
 
                                _tmp10_ = self->full_name;
1584
 
                                _tmp11_ = items;
1585
 
                                _tmp11__length1 = items_length1;
1586
 
                                _tmp12_ = i;
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);
1592
 
                                if (_tmp16_) {
1593
 
                                        gchar* dir_name = NULL;
1594
 
                                        gchar** _tmp17_ = NULL;
1595
 
                                        gint _tmp17__length1 = 0;
1596
 
                                        gint _tmp18_ = 0;
1597
 
                                        const gchar* _tmp19_ = NULL;
1598
 
                                        gchar* _tmp20_ = NULL;
1599
 
                                        const gchar* _tmp21_ = NULL;
1600
 
                                        Directory* _tmp22_ = NULL;
 
1597
                                _tmp11_ = self->full_name;
 
1598
                                _tmp12_ = items;
 
1599
                                _tmp12__length1 = items_length1;
 
1600
                                _tmp13_ = i;
 
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);
 
1606
                                if (_tmp17_) {
 
1607
                                        gchar** _tmp18_;
 
1608
                                        gint _tmp18__length1;
 
1609
                                        gint _tmp19_;
 
1610
                                        const gchar* _tmp20_;
 
1611
                                        gchar* _tmp21_ = NULL;
 
1612
                                        gchar* dir_name;
 
1613
                                        const gchar* _tmp22_;
1601
1614
                                        Directory* _tmp23_ = NULL;
1602
 
                                        _tmp17_ = items;
1603
 
                                        _tmp17__length1 = items_length1;
1604
 
                                        _tmp18_ = i;
1605
 
                                        _tmp19_ = _tmp17_[_tmp18_];
1606
 
                                        _tmp20_ = string_slice (_tmp19_, (glong) 0, (glong) (-1));
1607
 
                                        dir_name = _tmp20_;
1608
 
                                        _tmp21_ = dir_name;
1609
 
                                        _tmp22_ = directory_get_child (self, _tmp21_);
1610
 
                                        _tmp23_ = _tmp22_;
1611
 
                                        _g_object_unref0 (_tmp23_);
 
1615
                                        Directory* _tmp24_;
 
1616
                                        _tmp18_ = items;
 
1617
                                        _tmp18__length1 = items_length1;
 
1618
                                        _tmp19_ = i;
 
1619
                                        _tmp20_ = _tmp18_[_tmp19_];
 
1620
                                        _tmp21_ = string_slice (_tmp20_, (glong) 0, (glong) (-1));
 
1621
                                        dir_name = _tmp21_;
 
1622
                                        _tmp22_ = dir_name;
 
1623
                                        _tmp23_ = directory_get_child (self, _tmp22_);
 
1624
                                        _tmp24_ = _tmp23_;
 
1625
                                        _g_object_unref0 (_tmp24_);
1612
1626
                                        _g_free0 (dir_name);
1613
1627
                                } else {
1614
 
                                        gchar** _tmp24_ = NULL;
1615
 
                                        gint _tmp24__length1 = 0;
1616
 
                                        gint _tmp25_ = 0;
1617
 
                                        const gchar* _tmp26_ = NULL;
1618
 
                                        Key* _tmp27_ = NULL;
 
1628
                                        gchar** _tmp25_;
 
1629
                                        gint _tmp25__length1;
 
1630
                                        gint _tmp26_;
 
1631
                                        const gchar* _tmp27_;
1619
1632
                                        Key* _tmp28_ = NULL;
1620
 
                                        _tmp24_ = items;
1621
 
                                        _tmp24__length1 = items_length1;
1622
 
                                        _tmp25_ = i;
1623
 
                                        _tmp26_ = _tmp24_[_tmp25_];
1624
 
                                        _tmp27_ = directory_get_key (self, _tmp26_);
1625
 
                                        _tmp28_ = _tmp27_;
1626
 
                                        _g_object_unref0 (_tmp28_);
 
1633
                                        Key* _tmp29_;
 
1634
                                        _tmp25_ = items;
 
1635
                                        _tmp25__length1 = items_length1;
 
1636
                                        _tmp26_ = i;
 
1637
                                        _tmp27_ = _tmp25_[_tmp26_];
 
1638
                                        _tmp28_ = directory_get_key (self, _tmp27_);
 
1639
                                        _tmp29_ = _tmp28_;
 
1640
                                        _g_object_unref0 (_tmp29_);
1627
1641
                                }
1628
1642
                                _g_free0 (item_name);
1629
1643
                        }
1635
1649
 
1636
1650
KeyModel* directory_get_key_model (Directory* self) {
1637
1651
        KeyModel* result;
1638
 
        KeyModel* _tmp0_ = NULL;
1639
 
        KeyModel* _tmp2_ = NULL;
 
1652
        KeyModel* _tmp0_;
 
1653
        KeyModel* _tmp2_;
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;
 
1658
                KeyModel* _tmp1_;
1645
1659
                _tmp1_ = key_model_new (self);
1646
1660
                _g_object_unref0 (self->priv->_key_model);
1647
1661
                self->priv->_key_model = _tmp1_;
1660
1674
 
1661
1675
gint directory_get_index (Directory* self) {
1662
1676
        gint result;
1663
 
        Directory* _tmp0_ = NULL;
1664
 
        GList* _tmp1_ = NULL;
1665
 
        GList* _tmp2_ = NULL;
 
1677
        Directory* _tmp0_;
 
1678
        GList* _tmp1_;
 
1679
        GList* _tmp2_;
1666
1680
        gint _tmp3_ = 0;
1667
1681
        g_return_val_if_fail (self != NULL, 0);
1668
1682
        _tmp0_ = self->parent;
1676
1690
 
1677
1691
GList* directory_get_children (Directory* self) {
1678
1692
        GList* result;
1679
 
        GList* _tmp0_ = NULL;
 
1693
        GList* _tmp0_;
1680
1694
        g_return_val_if_fail (self != NULL, NULL);
1681
1695
        directory_update_children (self);
1682
1696
        _tmp0_ = self->_children;
1693
1707
 
1694
1708
GList* directory_get_keys (Directory* self) {
1695
1709
        GList* result;
1696
 
        GList* _tmp0_ = NULL;
 
1710
        GList* _tmp0_;
1697
1711
        g_return_val_if_fail (self != NULL, NULL);
1698
1712
        directory_update_children (self);
1699
1713
        _tmp0_ = self->priv->_keys;
1722
1736
 
1723
1737
 
1724
1738
static void directory_instance_init (Directory * self) {
1725
 
        GHashFunc _tmp0_ = NULL;
1726
 
        GEqualFunc _tmp1_ = NULL;
1727
 
        GHashTable* _tmp2_ = NULL;
1728
 
        GHashFunc _tmp3_ = NULL;
1729
 
        GEqualFunc _tmp4_ = NULL;
1730
 
        GHashTable* _tmp5_ = NULL;
 
1739
        GHashFunc _tmp0_;
 
1740
        GEqualFunc _tmp1_;
 
1741
        GHashTable* _tmp2_;
 
1742
        GHashFunc _tmp3_;
 
1743
        GEqualFunc _tmp4_;
 
1744
        GHashTable* _tmp5_;
1731
1745
        self->priv = DIRECTORY_GET_PRIVATE (self);
1732
1746
        _tmp0_ = g_str_hash;
1733
1747
        _tmp1_ = g_str_equal;
1814
1828
 
1815
1829
 
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);
1818
1832
}
1819
1833
 
1820
1834
 
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;
 
1837
        Directory* _tmp0_;
 
1838
        Directory* _tmp1_;
 
1839
        Directory* _tmp2_;
 
1840
        GList* _tmp3_;
 
1841
        GList* _tmp4_;
1828
1842
        g_return_val_if_fail (directory != NULL, NULL);
1829
1843
        self = (KeyModel*) g_object_new (object_type, NULL);
1830
1844
        _tmp0_ = directory;
1839
1853
                GList* key_it = NULL;
1840
1854
                key_collection = _tmp4_;
1841
1855
                for (key_it = key_collection; key_it != NULL; key_it = key_it->next) {
1842
 
                        Key* _tmp5_ = NULL;
 
1856
                        Key* _tmp5_;
1843
1857
                        Key* key = NULL;
1844
1858
                        _tmp5_ = _g_object_ref0 ((Key*) key_it->data);
1845
1859
                        key = _tmp5_;
1846
1860
                        {
1847
 
                                Key* _tmp6_ = NULL;
 
1861
                                Key* _tmp6_;
1848
1862
                                _tmp6_ = key;
1849
1863
                                g_signal_connect_object (_tmp6_, "value-changed", (GCallback) _key_model_key_changed_cb_key_value_changed, self, 0);
1850
1864
                                _g_object_unref0 (key);
1872
1886
                return;
1873
1887
        }
1874
1888
        {
1875
 
                gboolean _tmp2_ = FALSE;
 
1889
                gboolean _tmp2_;
1876
1890
                _tmp2_ = TRUE;
1877
1891
                while (TRUE) {
1878
 
                        GtkTreeIter _tmp4_ = {0};
1879
 
                        Key* _tmp5_ = NULL;
 
1892
                        gboolean _tmp3_;
 
1893
                        GtkTreeIter _tmp5_;
1880
1894
                        Key* _tmp6_ = NULL;
1881
 
                        Key* _tmp7_ = NULL;
1882
 
                        gboolean _tmp8_ = FALSE;
1883
 
                        if (!_tmp2_) {
1884
 
                                gboolean _tmp3_ = FALSE;
1885
 
                                _tmp3_ = gtk_tree_model_iter_next ((GtkTreeModel*) self, &iter);
1886
 
                                if (!_tmp3_) {
 
1895
                        Key* _tmp7_;
 
1896
                        Key* _tmp8_;
 
1897
                        gboolean _tmp9_;
 
1898
                        _tmp3_ = _tmp2_;
 
1899
                        if (!_tmp3_) {
 
1900
                                gboolean _tmp4_ = FALSE;
 
1901
                                _tmp4_ = gtk_tree_model_iter_next ((GtkTreeModel*) self, &iter);
 
1902
                                if (!_tmp4_) {
1887
1903
                                        break;
1888
1904
                                }
1889
1905
                        }
1890
1906
                        _tmp2_ = FALSE;
1891
 
                        _tmp4_ = iter;
1892
 
                        _tmp5_ = key_model_get_key (self, &_tmp4_);
1893
 
                        _tmp6_ = _tmp5_;
1894
 
                        _tmp7_ = key;
1895
 
                        _tmp8_ = _tmp6_ == _tmp7_;
1896
 
                        _g_object_unref0 (_tmp6_);
1897
 
                        if (_tmp8_) {
1898
 
                                GtkTreeIter _tmp9_ = {0};
1899
 
                                GtkTreePath* _tmp10_ = NULL;
 
1907
                        _tmp5_ = iter;
 
1908
                        _tmp6_ = key_model_get_key (self, &_tmp5_);
 
1909
                        _tmp7_ = _tmp6_;
 
1910
                        _tmp8_ = key;
 
1911
                        _tmp9_ = _tmp7_ == _tmp8_;
 
1912
                        _g_object_unref0 (_tmp7_);
 
1913
                        if (_tmp9_) {
 
1914
                                GtkTreeIter _tmp10_;
1900
1915
                                GtkTreePath* _tmp11_ = NULL;
1901
 
                                GtkTreeIter _tmp12_ = {0};
1902
 
                                _tmp9_ = iter;
1903
 
                                _tmp10_ = gtk_tree_model_get_path ((GtkTreeModel*) self, &_tmp9_);
1904
 
                                _tmp11_ = _tmp10_;
1905
 
                                _tmp12_ = iter;
1906
 
                                gtk_tree_model_row_changed ((GtkTreeModel*) self, _tmp11_, &_tmp12_);
1907
 
                                _gtk_tree_path_free0 (_tmp11_);
 
1916
                                GtkTreePath* _tmp12_;
 
1917
                                GtkTreeIter _tmp13_;
 
1918
                                _tmp10_ = iter;
 
1919
                                _tmp11_ = gtk_tree_model_get_path ((GtkTreeModel*) self, &_tmp10_);
 
1920
                                _tmp12_ = _tmp11_;
 
1921
                                _tmp13_ = iter;
 
1922
                                gtk_tree_model_row_changed ((GtkTreeModel*) self, _tmp12_, &_tmp13_);
 
1923
                                _gtk_tree_path_free0 (_tmp12_);
1908
1924
                                return;
1909
1925
                        }
1910
1926
                }
1933
1949
static GType key_model_real_get_column_type (GtkTreeModel* base, gint index) {
1934
1950
        KeyModel * self;
1935
1951
        GType result = 0UL;
1936
 
        gint _tmp0_ = 0;
 
1952
        gint _tmp0_;
1937
1953
        self = (KeyModel*) base;
1938
1954
        _tmp0_ = index;
1939
1955
        if (_tmp0_ == 0) {
1947
1963
 
1948
1964
 
1949
1965
static void key_model_set_iter (KeyModel* self, GtkTreeIter* iter, Key* key) {
1950
 
        Key* _tmp0_ = NULL;
1951
 
        Key* _tmp1_ = NULL;
1952
 
        Key* _tmp2_ = NULL;
 
1966
        Key* _tmp0_;
 
1967
        Key* _tmp1_;
 
1968
        Key* _tmp2_;
1953
1969
        g_return_if_fail (self != NULL);
1954
1970
        g_return_if_fail (iter != NULL);
1955
1971
        g_return_if_fail (key != NULL);
1965
1981
 
1966
1982
Key* key_model_get_key (KeyModel* self, GtkTreeIter* iter) {
1967
1983
        Key* result = NULL;
1968
 
        GtkTreeIter _tmp0_ = {0};
1969
 
        void* _tmp1_ = NULL;
1970
 
        Key* _tmp2_ = NULL;
 
1984
        GtkTreeIter _tmp0_;
 
1985
        void* _tmp1_;
 
1986
        Key* _tmp2_;
1971
1987
        g_return_val_if_fail (self != NULL, NULL);
1972
1988
        g_return_val_if_fail (iter != NULL, NULL);
1973
1989
        _tmp0_ = *iter;
1982
1998
        KeyModel * self;
1983
1999
        GtkTreeIter _vala_iter = {0};
1984
2000
        gboolean result = FALSE;
1985
 
        GtkTreePath* _tmp0_ = NULL;
 
2001
        GtkTreePath* _tmp0_;
1986
2002
        gint _tmp1_ = 0;
1987
 
        GtkTreePath* _tmp2_ = NULL;
 
2003
        GtkTreePath* _tmp2_;
1988
2004
        gint _tmp3_ = 0;
1989
2005
        gint* _tmp4_ = NULL;
1990
 
        gint _tmp5_ = 0;
 
2006
        gint _tmp5_;
1991
2007
        GtkTreeIter _tmp6_ = {0};
1992
2008
        gboolean _tmp7_ = FALSE;
1993
2009
        self = (KeyModel*) base;
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_;
 
2038
        GtkTreePath* path;
 
2039
        GtkTreeIter _tmp1_;
2024
2040
        Key* _tmp2_ = NULL;
2025
 
        Key* _tmp3_ = NULL;
2026
 
        gint _tmp4_ = 0;
2027
 
        gint _tmp5_ = 0;
 
2041
        Key* _tmp3_;
 
2042
        gint _tmp4_;
 
2043
        gint _tmp5_;
2028
2044
        self = (KeyModel*) base;
2029
2045
        g_return_val_if_fail (iter != NULL, NULL);
2030
2046
        _tmp0_ = gtk_tree_path_new ();
2044
2060
static void key_model_real_get_value (GtkTreeModel* base, GtkTreeIter* iter, gint column, GValue* value) {
2045
2061
        KeyModel * self;
2046
2062
        GValue _vala_value = {0};
2047
 
        Key* key = NULL;
2048
 
        GtkTreeIter _tmp0_ = {0};
 
2063
        GtkTreeIter _tmp0_;
2049
2064
        Key* _tmp1_ = NULL;
2050
 
        gint _tmp2_ = 0;
 
2065
        Key* key;
 
2066
        gint _tmp2_;
2051
2067
        self = (KeyModel*) base;
2052
2068
        g_return_if_fail (iter != NULL);
2053
2069
        _tmp0_ = *iter;
2055
2071
        key = _tmp1_;
2056
2072
        _tmp2_ = column;
2057
2073
        if (_tmp2_ == 0) {
2058
 
                Key* _tmp3_ = NULL;
 
2074
                Key* _tmp3_;
2059
2075
                GValue _tmp4_ = {0};
2060
2076
                _tmp3_ = key;
2061
2077
                g_value_init (&_tmp4_, TYPE_KEY);
2063
2079
                G_IS_VALUE (&_vala_value) ? (g_value_unset (&_vala_value), NULL) : NULL;
2064
2080
                _vala_value = _tmp4_;
2065
2081
        } else {
2066
 
                gint _tmp5_ = 0;
 
2082
                gint _tmp5_;
2067
2083
                _tmp5_ = column;
2068
2084
                if (_tmp5_ == 1) {
2069
 
                        Key* _tmp6_ = NULL;
2070
 
                        const gchar* _tmp7_ = NULL;
 
2085
                        Key* _tmp6_;
 
2086
                        const gchar* _tmp7_;
2071
2087
                        GValue _tmp8_ = {0};
2072
2088
                        _tmp6_ = key;
2073
2089
                        _tmp7_ = _tmp6_->name;
2076
2092
                        G_IS_VALUE (&_vala_value) ? (g_value_unset (&_vala_value), NULL) : NULL;
2077
2093
                        _vala_value = _tmp8_;
2078
2094
                } else {
2079
 
                        gint _tmp9_ = 0;
 
2095
                        gint _tmp9_;
2080
2096
                        _tmp9_ = column;
2081
2097
                        if (_tmp9_ == 2) {
2082
 
                                Key* _tmp10_ = NULL;
2083
 
                                GVariant* _tmp11_ = NULL;
2084
 
                                GVariant* _tmp12_ = NULL;
 
2098
                                Key* _tmp10_;
 
2099
                                GVariant* _tmp11_;
 
2100
                                GVariant* _tmp12_;
2085
2101
                                _tmp10_ = key;
2086
2102
                                _tmp11_ = key_get_value (_tmp10_);
2087
2103
                                _tmp12_ = _tmp11_;
2088
2104
                                if (_tmp12_ != NULL) {
2089
 
                                        Key* _tmp13_ = NULL;
2090
 
                                        GVariant* _tmp14_ = NULL;
2091
 
                                        GVariant* _tmp15_ = NULL;
 
2105
                                        Key* _tmp13_;
 
2106
                                        GVariant* _tmp14_;
 
2107
                                        GVariant* _tmp15_;
2092
2108
                                        gchar* _tmp16_ = NULL;
2093
2109
                                        GValue _tmp17_ = {0};
2094
2110
                                        _tmp13_ = key;
2107
2123
                                        _vala_value = _tmp18_;
2108
2124
                                }
2109
2125
                        } else {
2110
 
                                gint _tmp19_ = 0;
 
2126
                                gint _tmp19_;
2111
2127
                                _tmp19_ = column;
2112
2128
                                if (_tmp19_ == 4) {
2113
 
                                        Key* _tmp20_ = NULL;
2114
 
                                        gboolean _tmp21_ = FALSE;
2115
 
                                        gboolean _tmp22_ = FALSE;
 
2129
                                        Key* _tmp20_;
 
2130
                                        gboolean _tmp21_;
 
2131
                                        gboolean _tmp22_;
2116
2132
                                        _tmp20_ = key;
2117
2133
                                        _tmp21_ = key_get_is_default (_tmp20_);
2118
2134
                                        _tmp22_ = _tmp21_;
2151
2167
static gboolean key_model_real_iter_next (GtkTreeModel* base, GtkTreeIter* iter) {
2152
2168
        KeyModel * self;
2153
2169
        gboolean result = FALSE;
2154
 
        gint index = 0;
2155
 
        GtkTreeIter _tmp0_ = {0};
 
2170
        GtkTreeIter _tmp0_;
2156
2171
        Key* _tmp1_ = NULL;
2157
 
        Key* _tmp2_ = NULL;
2158
 
        gint _tmp3_ = 0;
2159
 
        gint _tmp4_ = 0;
2160
 
        gint _tmp5_ = 0;
2161
 
        gint _tmp6_ = 0;
2162
 
        Directory* _tmp7_ = NULL;
2163
 
        GList* _tmp8_ = NULL;
2164
 
        GList* _tmp9_ = NULL;
 
2172
        Key* _tmp2_;
 
2173
        gint _tmp3_;
 
2174
        gint _tmp4_;
 
2175
        gint _tmp5_;
 
2176
        gint index;
 
2177
        gint _tmp6_;
 
2178
        Directory* _tmp7_;
 
2179
        GList* _tmp8_;
 
2180
        GList* _tmp9_;
2165
2181
        guint _tmp10_ = 0U;
2166
 
        Directory* _tmp11_ = NULL;
2167
 
        GList* _tmp12_ = NULL;
2168
 
        GList* _tmp13_ = NULL;
2169
 
        gint _tmp14_ = 0;
 
2182
        Directory* _tmp11_;
 
2183
        GList* _tmp12_;
 
2184
        GList* _tmp13_;
 
2185
        gint _tmp14_;
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_;
 
2223
        gboolean _tmp6_;
 
2224
        Directory* _tmp7_;
 
2225
        GList* _tmp8_;
 
2226
        GList* _tmp9_;
 
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) {
2215
2232
                _tmp0_ = TRUE;
2216
2233
        } else {
2217
 
                Directory* _tmp2_ = NULL;
2218
 
                GList* _tmp3_ = NULL;
2219
 
                GList* _tmp4_ = NULL;
 
2234
                Directory* _tmp2_;
 
2235
                GList* _tmp3_;
 
2236
                GList* _tmp4_;
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);
2226
2243
        }
2227
 
        if (_tmp0_) {
 
2244
        _tmp6_ = _tmp0_;
 
2245
        if (_tmp6_) {
2228
2246
                result = FALSE;
2229
2247
                if (iter) {
2230
2248
                        *iter = _vala_iter;
2231
2249
                }
2232
2250
                return result;
2233
2251
        }
2234
 
        _tmp6_ = self->priv->directory;
2235
 
        _tmp7_ = directory_get_keys (_tmp6_);
2236
 
        _tmp8_ = _tmp7_;
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_);
 
2254
        _tmp9_ = _tmp8_;
 
2255
        _tmp10_ = g_list_nth_data (_tmp9_, (guint) 0);
 
2256
        key_model_set_iter (self, &_vala_iter, (Key*) _tmp10_);
2239
2257
        result = TRUE;
2240
2258
        if (iter) {
2241
2259
                *iter = _vala_iter;
2257
2275
static gint key_model_real_iter_n_children (GtkTreeModel* base, GtkTreeIter* iter) {
2258
2276
        KeyModel * self;
2259
2277
        gint result = 0;
2260
 
        GtkTreeIter* _tmp0_ = NULL;
 
2278
        GtkTreeIter* _tmp0_;
2261
2279
        self = (KeyModel*) base;
2262
2280
        _tmp0_ = iter;
2263
2281
        if (_tmp0_ == NULL) {
2264
 
                Directory* _tmp1_ = NULL;
2265
 
                GList* _tmp2_ = NULL;
2266
 
                GList* _tmp3_ = NULL;
 
2282
                Directory* _tmp1_;
 
2283
                GList* _tmp2_;
 
2284
                GList* _tmp3_;
2267
2285
                guint _tmp4_ = 0U;
2268
2286
                _tmp1_ = self->priv->directory;
2269
2287
                _tmp2_ = directory_get_keys (_tmp1_);
2282
2300
        KeyModel * self;
2283
2301
        GtkTreeIter _vala_iter = {0};
2284
2302
        gboolean result = FALSE;
2285
 
        GtkTreeIter* _tmp0_ = NULL;
2286
 
        gint _tmp1_ = 0;
2287
 
        Directory* _tmp2_ = NULL;
2288
 
        GList* _tmp3_ = NULL;
2289
 
        GList* _tmp4_ = NULL;
 
2303
        GtkTreeIter* _tmp0_;
 
2304
        gint _tmp1_;
 
2305
        Directory* _tmp2_;
 
2306
        GList* _tmp3_;
 
2307
        GList* _tmp4_;
2290
2308
        guint _tmp5_ = 0U;
2291
 
        Directory* _tmp6_ = NULL;
2292
 
        GList* _tmp7_ = NULL;
2293
 
        GList* _tmp8_ = NULL;
2294
 
        gint _tmp9_ = 0;
 
2309
        Directory* _tmp6_;
 
2310
        GList* _tmp7_;
 
2311
        GList* _tmp8_;
 
2312
        gint _tmp9_;
2295
2313
        gconstpointer _tmp10_ = NULL;
2296
2314
        self = (KeyModel*) base;
2297
2315
        memset (&_vala_iter, 0, sizeof (GtkTreeIter));
2346
2364
 
2347
2365
static void key_model_real_ref_node (GtkTreeModel* base, GtkTreeIter* iter) {
2348
2366
        KeyModel * self;
2349
 
        GtkTreeIter _tmp0_ = {0};
 
2367
        GtkTreeIter _tmp0_;
2350
2368
        Key* _tmp1_ = NULL;
2351
 
        Key* _tmp2_ = NULL;
 
2369
        Key* _tmp2_;
2352
2370
        self = (KeyModel*) base;
2353
2371
        g_return_if_fail (iter != NULL);
2354
2372
        _tmp0_ = *iter;
2361
2379
 
2362
2380
static void key_model_real_unref_node (GtkTreeModel* base, GtkTreeIter* iter) {
2363
2381
        KeyModel * self;
2364
 
        GtkTreeIter _tmp0_ = {0};
 
2382
        GtkTreeIter _tmp0_;
2365
2383
        Key* _tmp1_ = NULL;
2366
 
        Key* _tmp2_ = NULL;
 
2384
        Key* _tmp2_;
2367
2385
        self = (KeyModel*) base;
2368
2386
        g_return_if_fail (iter != NULL);
2369
2387
        _tmp0_ = *iter;
2434
2452
 
2435
2453
EnumModel* enum_model_construct (GType object_type, SchemaEnum* schema_enum) {
2436
2454
        EnumModel * self = NULL;
2437
 
        SchemaEnum* _tmp0_ = NULL;
2438
 
        SchemaEnum* _tmp1_ = NULL;
 
2455
        SchemaEnum* _tmp0_;
 
2456
        SchemaEnum* _tmp1_;
2439
2457
        g_return_val_if_fail (schema_enum != NULL, NULL);
2440
2458
        self = (EnumModel*) g_object_new (object_type, NULL);
2441
2459
        _tmp0_ = schema_enum;
2472
2490
static GType enum_model_real_get_column_type (GtkTreeModel* base, gint index) {
2473
2491
        EnumModel * self;
2474
2492
        GType result = 0UL;
2475
 
        gint _tmp0_ = 0;
 
2493
        gint _tmp0_;
2476
2494
        self = (EnumModel*) base;
2477
2495
        _tmp0_ = index;
2478
2496
        if (_tmp0_ == 0) {
2486
2504
 
2487
2505
 
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);
2504
2522
 
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;
 
2525
        GtkTreeIter _tmp0_;
 
2526
        void* _tmp1_;
 
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;
2521
2539
        EnumModel * self;
2522
2540
        GtkTreeIter _vala_iter = {0};
2523
2541
        gboolean result = FALSE;
2524
 
        GtkTreePath* _tmp0_ = NULL;
 
2542
        GtkTreePath* _tmp0_;
2525
2543
        gint _tmp1_ = 0;
2526
 
        GtkTreePath* _tmp2_ = NULL;
 
2544
        GtkTreePath* _tmp2_;
2527
2545
        gint _tmp3_ = 0;
2528
2546
        gint* _tmp4_ = NULL;
2529
 
        gint _tmp5_ = 0;
 
2547
        gint _tmp5_;
2530
2548
        GtkTreeIter _tmp6_ = {0};
2531
2549
        gboolean _tmp7_ = FALSE;
2532
2550
        self = (EnumModel*) base;
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_;
 
2579
        GtkTreePath* path;
 
2580
        GtkTreeIter _tmp1_;
2563
2581
        SchemaValue* _tmp2_ = NULL;
2564
 
        SchemaValue* _tmp3_ = NULL;
2565
 
        guint _tmp4_ = 0U;
 
2582
        SchemaValue* _tmp3_;
 
2583
        guint _tmp4_;
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};
2584
 
        gint _tmp0_ = 0;
 
2602
        gint _tmp0_;
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};
 
2607
                GtkTreeIter _tmp1_;
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_);
2601
2619
                _vala_value = _tmp5_;
2602
2620
                _g_object_unref0 (_tmp3_);
2603
2621
        } else {
2604
 
                gint _tmp6_ = 0;
 
2622
                gint _tmp6_;
2605
2623
                _tmp6_ = column;
2606
2624
                if (_tmp6_ == 1) {
2607
 
                        GtkTreeIter _tmp7_ = {0};
 
2625
                        GtkTreeIter _tmp7_;
2608
2626
                        SchemaValue* _tmp8_ = NULL;
2609
 
                        SchemaValue* _tmp9_ = NULL;
2610
 
                        gint _tmp10_ = 0;
 
2627
                        SchemaValue* _tmp9_;
 
2628
                        gint _tmp10_;
2611
2629
                        GValue _tmp11_ = {0};
2612
2630
                        _tmp7_ = *iter;
2613
2631
                        _tmp8_ = enum_model_get_enum_value (self, &_tmp7_);
2637
2655
static gboolean enum_model_real_iter_next (GtkTreeModel* base, GtkTreeIter* iter) {
2638
2656
        EnumModel * self;
2639
2657
        gboolean result = FALSE;
2640
 
        guint index = 0U;
2641
 
        GtkTreeIter _tmp0_ = {0};
 
2658
        GtkTreeIter _tmp0_;
2642
2659
        SchemaValue* _tmp1_ = NULL;
2643
 
        SchemaValue* _tmp2_ = NULL;
2644
 
        guint _tmp3_ = 0U;
2645
 
        guint _tmp4_ = 0U;
2646
 
        guint _tmp5_ = 0U;
2647
 
        SchemaEnum* _tmp6_ = NULL;
2648
 
        GList* _tmp7_ = NULL;
 
2660
        SchemaValue* _tmp2_;
 
2661
        guint _tmp3_;
 
2662
        guint _tmp4_;
 
2663
        guint index;
 
2664
        guint _tmp5_;
 
2665
        SchemaEnum* _tmp6_;
 
2666
        GList* _tmp7_;
2649
2667
        guint _tmp8_ = 0U;
2650
 
        SchemaEnum* _tmp9_ = NULL;
2651
 
        GList* _tmp10_ = NULL;
2652
 
        guint _tmp11_ = 0U;
 
2668
        SchemaEnum* _tmp9_;
 
2669
        GList* _tmp10_;
 
2670
        guint _tmp11_;
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_;
 
2705
        gboolean _tmp5_;
 
2706
        SchemaEnum* _tmp6_;
 
2707
        GList* _tmp7_;
 
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) {
2694
2713
                _tmp0_ = TRUE;
2695
2714
        } else {
2696
 
                SchemaEnum* _tmp2_ = NULL;
2697
 
                GList* _tmp3_ = NULL;
 
2715
                SchemaEnum* _tmp2_;
 
2716
                GList* _tmp3_;
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);
2703
2722
        }
2704
 
        if (_tmp0_) {
 
2723
        _tmp5_ = _tmp0_;
 
2724
        if (_tmp5_) {
2705
2725
                result = FALSE;
2706
2726
                if (iter) {
2707
2727
                        *iter = _vala_iter;
2708
2728
                }
2709
2729
                return result;
2710
2730
        }
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_);
2715
2735
        result = TRUE;
2716
2736
        if (iter) {
2717
2737
                *iter = _vala_iter;
2733
2753
static gint enum_model_real_iter_n_children (GtkTreeModel* base, GtkTreeIter* iter) {
2734
2754
        EnumModel * self;
2735
2755
        gint result = 0;
2736
 
        GtkTreeIter* _tmp0_ = NULL;
 
2756
        GtkTreeIter* _tmp0_;
2737
2757
        self = (EnumModel*) base;
2738
2758
        _tmp0_ = iter;
2739
2759
        if (_tmp0_ == NULL) {
2740
 
                SchemaEnum* _tmp1_ = NULL;
2741
 
                GList* _tmp2_ = NULL;
 
2760
                SchemaEnum* _tmp1_;
 
2761
                GList* _tmp2_;
2742
2762
                guint _tmp3_ = 0U;
2743
2763
                _tmp1_ = self->priv->schema_enum;
2744
2764
                _tmp2_ = _tmp1_->values;
2756
2776
        EnumModel * self;
2757
2777
        GtkTreeIter _vala_iter = {0};
2758
2778
        gboolean result = FALSE;
2759
 
        GtkTreeIter* _tmp0_ = NULL;
2760
 
        gint _tmp1_ = 0;
2761
 
        SchemaEnum* _tmp2_ = NULL;
2762
 
        GList* _tmp3_ = NULL;
 
2779
        GtkTreeIter* _tmp0_;
 
2780
        gint _tmp1_;
 
2781
        SchemaEnum* _tmp2_;
 
2782
        GList* _tmp3_;
2763
2783
        guint _tmp4_ = 0U;
2764
 
        SchemaEnum* _tmp5_ = NULL;
2765
 
        GList* _tmp6_ = NULL;
2766
 
        gint _tmp7_ = 0;
 
2784
        SchemaEnum* _tmp5_;
 
2785
        GList* _tmp6_;
 
2786
        gint _tmp7_;
2767
2787
        gconstpointer _tmp8_ = NULL;
2768
2788
        self = (EnumModel*) base;
2769
2789
        memset (&_vala_iter, 0, sizeof (GtkTreeIter));
2816
2836
 
2817
2837
static void enum_model_real_ref_node (GtkTreeModel* base, GtkTreeIter* iter) {
2818
2838
        EnumModel * self;
2819
 
        GtkTreeIter _tmp0_ = {0};
 
2839
        GtkTreeIter _tmp0_;
2820
2840
        SchemaValue* _tmp1_ = NULL;
2821
 
        SchemaValue* _tmp2_ = NULL;
 
2841
        SchemaValue* _tmp2_;
2822
2842
        self = (EnumModel*) base;
2823
2843
        g_return_if_fail (iter != NULL);
2824
2844
        _tmp0_ = *iter;
2831
2851
 
2832
2852
static void enum_model_real_unref_node (GtkTreeModel* base, GtkTreeIter* iter) {
2833
2853
        EnumModel * self;
2834
 
        GtkTreeIter _tmp0_ = {0};
 
2854
        GtkTreeIter _tmp0_;
2835
2855
        SchemaValue* _tmp1_ = NULL;
2836
 
        SchemaValue* _tmp2_ = NULL;
 
2856
        SchemaValue* _tmp2_;
2837
2857
        self = (EnumModel*) base;
2838
2858
        g_return_if_fail (iter != NULL);
2839
2859
        _tmp0_ = *iter;
2898
2918
 
2899
2919
 
2900
2920
static void settings_model_watch_func (SettingsModel* self, DConfClient* client, const gchar* path, gchar** items, int items_length1, const gchar* tag) {
2901
 
        gchar** _tmp0_ = NULL;
2902
 
        gint _tmp0__length1 = 0;
 
2921
        gchar** _tmp0_;
 
2922
        gint _tmp0__length1;
2903
2923
        g_return_if_fail (self != NULL);
2904
2924
        g_return_if_fail (client != NULL);
2905
2925
        g_return_if_fail (path != NULL);
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;
 
2936
                        gchar* _tmp1_;
2917
2937
                        gchar* item = NULL;
2918
2938
                        _tmp1_ = g_strdup (item_collection[item_it]);
2919
2939
                        item = _tmp1_;
2920
2940
                        {
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_;
 
2943
                                gchar* _tmp4_;
 
2944
                                gchar* _tmp5_;
2925
2945
                                _tmp2_ = path;
2926
2946
                                _tmp3_ = item;
2927
2947
                                _tmp4_ = g_strconcat (_tmp2_, _tmp3_, NULL);
2936
2956
 
2937
2957
 
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);
2940
2960
}
2941
2961
 
2942
2962
 
2945
2965
        int i;
2946
2966
        result = g_new0 (gchar*, length + 1);
2947
2967
        for (i = 0; i < length; i++) {
2948
 
                gchar* _tmp0_ = NULL;
 
2968
                gchar* _tmp0_;
2949
2969
                _tmp0_ = g_strdup (self[i]);
2950
2970
                result[i] = _tmp0_;
2951
2971
        }
2955
2975
 
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_;
 
2980
        Directory* _tmp2_;
 
2981
        DConfClient* _tmp3_;
 
2982
        SchemaList* _tmp4_;
 
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_;
2981
3001
        {
2982
 
                gchar** dirs = NULL;
2983
 
                gchar** _tmp5_ = NULL;
 
3002
                gchar** _tmp5_;
2984
3003
                gchar** _tmp6_ = NULL;
2985
 
                gchar** _tmp7_ = NULL;
2986
 
                gint _tmp7__length1 = 0;
2987
 
                gint dirs_length1 = 0;
2988
 
                gint _dirs_size_ = 0;
2989
 
                gchar* dir = NULL;
2990
 
                const gchar* _tmp23_ = NULL;
2991
 
                gchar* _tmp24_ = NULL;
2992
 
                const gchar* _tmp25_ = NULL;
 
3004
                gchar** _tmp7_;
 
3005
                gint _tmp7__length1;
 
3006
                gchar** dirs;
 
3007
                gint dirs_length1;
 
3008
                gint _dirs_size_;
 
3009
                const gchar* _tmp24_ = NULL;
 
3010
                gchar* _tmp25_;
 
3011
                gchar* dir;
 
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;
2999
3019
                {
3000
 
                        gint i = 0;
3001
 
                        gchar** _tmp8_ = NULL;
3002
 
                        gint _tmp8__length1 = 0;
 
3020
                        gchar** _tmp8_;
 
3021
                        gint _tmp8__length1;
 
3022
                        gint i;
3003
3023
                        _tmp8_ = dirs;
3004
3024
                        _tmp8__length1 = dirs_length1;
3005
3025
                        i = _tmp8__length1 - 1;
3006
3026
                        {
3007
 
                                gboolean _tmp9_ = FALSE;
 
3027
                                gboolean _tmp9_;
3008
3028
                                _tmp9_ = TRUE;
3009
3029
                                while (TRUE) {
3010
 
                                        gint _tmp11_ = 0;
3011
 
                                        gchar* path = NULL;
3012
 
                                        gchar** _tmp12_ = NULL;
3013
 
                                        gint _tmp12__length1 = 0;
3014
 
                                        gint _tmp13_ = 0;
3015
 
                                        const gchar* _tmp14_ = NULL;
3016
 
                                        gchar* _tmp15_ = NULL;
3017
 
                                        const gchar* _tmp16_ = NULL;
3018
 
                                        GFile* _tmp17_ = NULL;
 
3030
                                        gboolean _tmp10_;
 
3031
                                        gint _tmp12_;
 
3032
                                        gchar** _tmp13_;
 
3033
                                        gint _tmp13__length1;
 
3034
                                        gint _tmp14_;
 
3035
                                        const gchar* _tmp15_;
 
3036
                                        gchar* _tmp16_ = NULL;
 
3037
                                        gchar* path;
 
3038
                                        const gchar* _tmp17_;
3019
3039
                                        GFile* _tmp18_ = NULL;
3020
 
                                        gboolean _tmp19_ = FALSE;
 
3040
                                        GFile* _tmp19_;
3021
3041
                                        gboolean _tmp20_ = FALSE;
3022
 
                                        if (!_tmp9_) {
3023
 
                                                gint _tmp10_ = 0;
3024
 
                                                _tmp10_ = i;
3025
 
                                                i = _tmp10_ - 1;
 
3042
                                        gboolean _tmp21_;
 
3043
                                        _tmp10_ = _tmp9_;
 
3044
                                        if (!_tmp10_) {
 
3045
                                                gint _tmp11_;
 
3046
                                                _tmp11_ = i;
 
3047
                                                i = _tmp11_ - 1;
3026
3048
                                        }
3027
3049
                                        _tmp9_ = FALSE;
3028
 
                                        _tmp11_ = i;
3029
 
                                        if (!(_tmp11_ >= 0)) {
 
3050
                                        _tmp12_ = i;
 
3051
                                        if (!(_tmp12_ >= 0)) {
3030
3052
                                                break;
3031
3053
                                        }
3032
 
                                        _tmp12_ = dirs;
3033
 
                                        _tmp12__length1 = dirs_length1;
3034
 
                                        _tmp13_ = i;
3035
 
                                        _tmp14_ = _tmp12_[_tmp13_];
3036
 
                                        _tmp15_ = g_build_filename (_tmp14_, "glib-2.0", "schemas", NULL);
3037
 
                                        path = _tmp15_;
3038
 
                                        _tmp16_ = path;
3039
 
                                        _tmp17_ = g_file_new_for_path (_tmp16_);
3040
 
                                        _tmp18_ = _tmp17_;
3041
 
                                        _tmp19_ = g_file_query_exists (_tmp18_, NULL);
3042
 
                                        _tmp20_ = _tmp19_;
3043
 
                                        _g_object_unref0 (_tmp18_);
3044
 
                                        if (_tmp20_) {
3045
 
                                                SchemaList* _tmp21_ = NULL;
3046
 
                                                const gchar* _tmp22_ = NULL;
3047
 
                                                _tmp21_ = self->schemas;
3048
 
                                                _tmp22_ = path;
3049
 
                                                schema_list_load_directory (_tmp21_, _tmp22_, &_inner_error_);
 
3054
                                        _tmp13_ = dirs;
 
3055
                                        _tmp13__length1 = dirs_length1;
 
3056
                                        _tmp14_ = i;
 
3057
                                        _tmp15_ = _tmp13_[_tmp14_];
 
3058
                                        _tmp16_ = g_build_filename (_tmp15_, "glib-2.0", "schemas", NULL);
 
3059
                                        path = _tmp16_;
 
3060
                                        _tmp17_ = path;
 
3061
                                        _tmp18_ = g_file_new_for_path (_tmp17_);
 
3062
                                        _tmp19_ = _tmp18_;
 
3063
                                        _tmp20_ = g_file_query_exists (_tmp19_, NULL);
 
3064
                                        _tmp21_ = _tmp20_;
 
3065
                                        _g_object_unref0 (_tmp19_);
 
3066
                                        if (_tmp21_) {
 
3067
                                                SchemaList* _tmp22_;
 
3068
                                                const gchar* _tmp23_;
 
3069
                                                _tmp22_ = self->schemas;
 
3070
                                                _tmp23_ = path;
 
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);
3057
3079
                                }
3058
3080
                        }
3059
3081
                }
3060
 
                _tmp23_ = g_getenv ("GSETTINGS_SCHEMA_DIR");
3061
 
                _tmp24_ = g_strdup (_tmp23_);
3062
 
                dir = _tmp24_;
3063
 
                _tmp25_ = dir;
3064
 
                if (_tmp25_ != NULL) {
3065
 
                        SchemaList* _tmp26_ = NULL;
3066
 
                        const gchar* _tmp27_ = NULL;
3067
 
                        _tmp26_ = self->schemas;
3068
 
                        _tmp27_ = dir;
3069
 
                        schema_list_load_directory (_tmp26_, _tmp27_, &_inner_error_);
 
3082
                _tmp24_ = g_getenv ("GSETTINGS_SCHEMA_DIR");
 
3083
                _tmp25_ = g_strdup (_tmp24_);
 
3084
                dir = _tmp25_;
 
3085
                _tmp26_ = dir;
 
3086
                if (_tmp26_ != NULL) {
 
3087
                        SchemaList* _tmp27_;
 
3088
                        const gchar* _tmp28_;
 
3089
                        _tmp27_ = self->schemas;
 
3090
                        _tmp28_ = dir;
 
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);
3080
3102
        __catch4_g_error:
3081
3103
        {
3082
3104
                GError* e = NULL;
3083
 
                GError* _tmp28_ = NULL;
3084
 
                const gchar* _tmp29_ = NULL;
 
3105
                GError* _tmp29_;
 
3106
                const gchar* _tmp30_;
3085
3107
                e = _inner_error_;
3086
3108
                _inner_error_ = NULL;
3087
 
                _tmp28_ = e;
3088
 
                _tmp29_ = _tmp28_->message;
3089
 
                g_warning ("dconf-model.vala:622: Failed to parse schemas: %s", _tmp29_);
 
3109
                _tmp29_ = e;
 
3110
                _tmp30_ = _tmp29_->message;
 
3111
                g_warning ("dconf-model.vala:622: Failed to parse schemas: %s", _tmp30_);
3090
3112
                _g_error_free0 (e);
3091
3113
        }
3092
3114
        __finally4:
3095
3117
                g_clear_error (&_inner_error_);
3096
3118
                return NULL;
3097
3119
        }
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_);
3101
3123
        {
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;
3108
3130
                        {
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;
3115
 
                                gint _tmp39_ = 0;
3116
 
                                gint _tmp40_ = 0;
3117
 
                                gchar* _tmp41_ = NULL;
 
3131
                                Directory* _tmp34_;
 
3132
                                Schema* _tmp35_;
 
3133
                                Schema* _tmp36_;
 
3134
                                const gchar* _tmp37_;
 
3135
                                Schema* _tmp38_;
 
3136
                                const gchar* _tmp39_;
 
3137
                                gint _tmp40_;
 
3138
                                gint _tmp41_;
3118
3139
                                gchar* _tmp42_ = NULL;
3119
 
                                _tmp33_ = self->priv->root;
3120
 
                                _tmp34_ = schema;
 
3140
                                gchar* _tmp43_;
 
3141
                                _tmp34_ = self->priv->root;
3121
3142
                                _tmp35_ = schema;
3122
 
                                _tmp36_ = _tmp35_->path;
3123
 
                                _tmp37_ = schema;
3124
 
                                _tmp38_ = _tmp37_->path;
3125
 
                                _tmp39_ = strlen (_tmp38_);
3126
 
                                _tmp40_ = _tmp39_;
3127
 
                                _tmp41_ = string_slice (_tmp36_, (glong) 1, (glong) _tmp40_);
3128
 
                                _tmp42_ = _tmp41_;
3129
 
                                directory_load_schema (_tmp33_, _tmp34_, _tmp42_);
3130
 
                                _g_free0 (_tmp42_);
 
3143
                                _tmp36_ = schema;
 
3144
                                _tmp37_ = _tmp36_->path;
 
3145
                                _tmp38_ = schema;
 
3146
                                _tmp39_ = _tmp38_->path;
 
3147
                                _tmp40_ = strlen (_tmp39_);
 
3148
                                _tmp41_ = _tmp40_;
 
3149
                                _tmp42_ = string_slice (_tmp37_, (glong) 1, (glong) _tmp41_);
 
3150
                                _tmp43_ = _tmp42_;
 
3151
                                directory_load_schema (_tmp34_, _tmp35_, _tmp43_);
 
3152
                                _g_free0 (_tmp43_);
3131
3153
                        }
3132
3154
                }
3133
3155
                _g_list_free0 (schema_collection);
3162
3184
static GType settings_model_real_get_column_type (GtkTreeModel* base, gint index) {
3163
3185
        SettingsModel * self;
3164
3186
        GType result = 0UL;
3165
 
        gint _tmp0_ = 0;
 
3187
        gint _tmp0_;
3166
3188
        self = (SettingsModel*) base;
3167
3189
        _tmp0_ = index;
3168
3190
        if (_tmp0_ == 0) {
3176
3198
 
3177
3199
 
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;
 
3201
        Directory* _tmp0_;
 
3202
        Directory* _tmp1_;
 
3203
        Directory* _tmp2_;
3182
3204
        g_return_if_fail (self != NULL);
3183
3205
        g_return_if_fail (iter != NULL);
3184
3206
        g_return_if_fail (directory != NULL);
3194
3216
 
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);
3199
3221
        _tmp0_ = iter;
3200
3222
        if (_tmp0_ == NULL) {
3201
 
                Directory* _tmp1_ = NULL;
3202
 
                Directory* _tmp2_ = NULL;
 
3223
                Directory* _tmp1_;
 
3224
                Directory* _tmp2_;
3203
3225
                _tmp1_ = self->priv->root;
3204
3226
                _tmp2_ = _g_object_ref0 (_tmp1_);
3205
3227
                result = _tmp2_;
3206
3228
                return result;
3207
3229
        } else {
3208
 
                GtkTreeIter* _tmp3_ = NULL;
3209
 
                void* _tmp4_ = NULL;
3210
 
                Directory* _tmp5_ = NULL;
 
3230
                GtkTreeIter* _tmp3_;
 
3231
                void* _tmp4_;
 
3232
                Directory* _tmp5_;
3211
3233
                _tmp3_ = iter;
3212
3234
                _tmp4_ = (*_tmp3_).user_data;
3213
3235
                _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_DIRECTORY, Directory));
3221
3243
        SettingsModel * self;
3222
3244
        GtkTreeIter _vala_iter = {0};
3223
3245
        gboolean result = FALSE;
3224
 
        GtkTreePath* _tmp0_ = NULL;
 
3246
        GtkTreePath* _tmp0_;
3225
3247
        gint _tmp1_ = 0;
3226
3248
        gint* _tmp2_ = NULL;
3227
 
        gint _tmp3_ = 0;
 
3249
        gint _tmp3_;
3228
3250
        GtkTreeIter _tmp4_ = {0};
3229
3251
        gboolean _tmp5_ = FALSE;
3230
3252
        self = (SettingsModel*) base;
3243
3265
                return result;
3244
3266
        }
3245
3267
        {
3246
 
                gint i = 0;
 
3268
                gint i;
3247
3269
                i = 1;
3248
3270
                {
3249
 
                        gboolean _tmp6_ = FALSE;
 
3271
                        gboolean _tmp6_;
3250
3272
                        _tmp6_ = TRUE;
3251
3273
                        while (TRUE) {
3252
 
                                gint _tmp8_ = 0;
3253
 
                                GtkTreePath* _tmp9_ = NULL;
3254
 
                                gint _tmp10_ = 0;
3255
 
                                GtkTreeIter parent = {0};
3256
 
                                GtkTreeIter _tmp11_ = {0};
3257
 
                                GtkTreeIter _tmp12_ = {0};
3258
 
                                GtkTreePath* _tmp13_ = NULL;
3259
 
                                gint _tmp14_ = 0;
3260
 
                                gint* _tmp15_ = NULL;
3261
 
                                gint _tmp16_ = 0;
3262
 
                                gint _tmp17_ = 0;
3263
 
                                GtkTreeIter _tmp18_ = {0};
3264
 
                                gboolean _tmp19_ = FALSE;
3265
 
                                if (!_tmp6_) {
3266
 
                                        gint _tmp7_ = 0;
3267
 
                                        _tmp7_ = i;
3268
 
                                        i = _tmp7_ + 1;
 
3274
                                gboolean _tmp7_;
 
3275
                                gint _tmp9_;
 
3276
                                GtkTreePath* _tmp10_;
 
3277
                                gint _tmp11_ = 0;
 
3278
                                GtkTreeIter _tmp12_;
 
3279
                                GtkTreeIter parent;
 
3280
                                GtkTreeIter _tmp13_;
 
3281
                                GtkTreePath* _tmp14_;
 
3282
                                gint _tmp15_ = 0;
 
3283
                                gint* _tmp16_ = NULL;
 
3284
                                gint _tmp17_;
 
3285
                                gint _tmp18_;
 
3286
                                GtkTreeIter _tmp19_ = {0};
 
3287
                                gboolean _tmp20_ = FALSE;
 
3288
                                _tmp7_ = _tmp6_;
 
3289
                                if (!_tmp7_) {
 
3290
                                        gint _tmp8_;
 
3291
                                        _tmp8_ = i;
 
3292
                                        i = _tmp8_ + 1;
3269
3293
                                }
3270
3294
                                _tmp6_ = FALSE;
3271
 
                                _tmp8_ = i;
3272
 
                                _tmp9_ = path;
3273
 
                                _tmp10_ = gtk_tree_path_get_depth (_tmp9_);
3274
 
                                if (!(_tmp8_ < _tmp10_)) {
 
3295
                                _tmp9_ = i;
 
3296
                                _tmp10_ = path;
 
3297
                                _tmp11_ = gtk_tree_path_get_depth (_tmp10_);
 
3298
                                if (!(_tmp9_ < _tmp11_)) {
3275
3299
                                        break;
3276
3300
                                }
3277
 
                                _tmp11_ = _vala_iter;
3278
 
                                parent = _tmp11_;
3279
 
                                _tmp12_ = parent;
3280
 
                                _tmp13_ = path;
3281
 
                                _tmp15_ = gtk_tree_path_get_indices_with_depth (_tmp13_, &_tmp14_);
3282
 
                                _tmp16_ = i;
3283
 
                                _tmp17_ = _tmp15_[_tmp16_];
3284
 
                                _tmp19_ = gtk_tree_model_iter_nth_child ((GtkTreeModel*) self, &_tmp18_, &_tmp12_, _tmp17_);
3285
 
                                _vala_iter = _tmp18_;
3286
 
                                if (!_tmp19_) {
 
3301
                                _tmp12_ = _vala_iter;
 
3302
                                parent = _tmp12_;
 
3303
                                _tmp13_ = parent;
 
3304
                                _tmp14_ = path;
 
3305
                                _tmp16_ = gtk_tree_path_get_indices_with_depth (_tmp14_, &_tmp15_);
 
3306
                                _tmp17_ = i;
 
3307
                                _tmp18_ = _tmp16_[_tmp17_];
 
3308
                                _tmp20_ = gtk_tree_model_iter_nth_child ((GtkTreeModel*) self, &_tmp19_, &_tmp13_, _tmp18_);
 
3309
                                _vala_iter = _tmp19_;
 
3310
                                if (!_tmp20_) {
3287
3311
                                        result = FALSE;
3288
3312
                                        if (iter) {
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_;
 
3332
        GtkTreePath* path;
3309
3333
        self = (SettingsModel*) base;
3310
3334
        g_return_val_if_fail (iter != NULL, NULL);
3311
3335
        _tmp0_ = gtk_tree_path_new ();
3312
3336
        path = _tmp0_;
3313
3337
        {
3314
 
                Directory* d = NULL;
3315
 
                GtkTreeIter _tmp1_ = {0};
 
3338
                GtkTreeIter _tmp1_;
3316
3339
                Directory* _tmp2_ = NULL;
 
3340
                Directory* d;
3317
3341
                _tmp1_ = *iter;
3318
3342
                _tmp2_ = settings_model_get_directory (self, &_tmp1_);
3319
3343
                d = _tmp2_;
3320
3344
                {
3321
 
                        gboolean _tmp3_ = FALSE;
 
3345
                        gboolean _tmp3_;
3322
3346
                        _tmp3_ = TRUE;
3323
3347
                        while (TRUE) {
3324
 
                                Directory* _tmp7_ = NULL;
3325
 
                                Directory* _tmp8_ = NULL;
3326
 
                                GtkTreePath* _tmp9_ = NULL;
3327
 
                                Directory* _tmp10_ = NULL;
3328
 
                                gint _tmp11_ = 0;
3329
 
                                gint _tmp12_ = 0;
3330
 
                                if (!_tmp3_) {
3331
 
                                        Directory* _tmp4_ = NULL;
3332
 
                                        Directory* _tmp5_ = NULL;
3333
 
                                        Directory* _tmp6_ = NULL;
3334
 
                                        _tmp4_ = d;
3335
 
                                        _tmp5_ = _tmp4_->parent;
3336
 
                                        _tmp6_ = _g_object_ref0 (_tmp5_);
 
3348
                                gboolean _tmp4_;
 
3349
                                Directory* _tmp8_;
 
3350
                                Directory* _tmp9_;
 
3351
                                GtkTreePath* _tmp10_;
 
3352
                                Directory* _tmp11_;
 
3353
                                gint _tmp12_;
 
3354
                                gint _tmp13_;
 
3355
                                _tmp4_ = _tmp3_;
 
3356
                                if (!_tmp4_) {
 
3357
                                        Directory* _tmp5_;
 
3358
                                        Directory* _tmp6_;
 
3359
                                        Directory* _tmp7_;
 
3360
                                        _tmp5_ = d;
 
3361
                                        _tmp6_ = _tmp5_->parent;
 
3362
                                        _tmp7_ = _g_object_ref0 (_tmp6_);
3337
3363
                                        _g_object_unref0 (d);
3338
 
                                        d = _tmp6_;
 
3364
                                        d = _tmp7_;
3339
3365
                                }
3340
3366
                                _tmp3_ = FALSE;
3341
 
                                _tmp7_ = d;
3342
 
                                _tmp8_ = self->priv->root;
3343
 
                                if (!(_tmp7_ != _tmp8_)) {
 
3367
                                _tmp8_ = d;
 
3368
                                _tmp9_ = self->priv->root;
 
3369
                                if (!(_tmp8_ != _tmp9_)) {
3344
3370
                                        break;
3345
3371
                                }
3346
 
                                _tmp9_ = path;
3347
 
                                _tmp10_ = d;
3348
 
                                _tmp11_ = directory_get_index (_tmp10_);
3349
 
                                _tmp12_ = _tmp11_;
3350
 
                                gtk_tree_path_prepend_index (_tmp9_, (gint) _tmp12_);
 
3372
                                _tmp10_ = path;
 
3373
                                _tmp11_ = d;
 
3374
                                _tmp12_ = directory_get_index (_tmp11_);
 
3375
                                _tmp13_ = _tmp12_;
 
3376
                                gtk_tree_path_prepend_index (_tmp10_, (gint) _tmp13_);
3351
3377
                        }
3352
3378
                }
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};
3363
 
        gint _tmp0_ = 0;
 
3389
        gint _tmp0_;
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};
 
3394
                GtkTreeIter _tmp1_;
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_;
3377
3403
        } else {
3378
 
                GtkTreeIter _tmp4_ = {0};
 
3404
                GtkTreeIter _tmp4_;
3379
3405
                Directory* _tmp5_ = NULL;
3380
 
                Directory* _tmp6_ = NULL;
3381
 
                const gchar* _tmp7_ = NULL;
 
3406
                Directory* _tmp6_;
 
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};
 
3430
        GtkTreeIter _tmp0_;
3406
3431
        Directory* _tmp1_ = NULL;
3407
 
        Directory* _tmp2_ = NULL;
3408
 
        gint _tmp3_ = 0;
3409
 
        gint _tmp4_ = 0;
3410
 
        Directory* _tmp5_ = NULL;
3411
 
        Directory* _tmp6_ = NULL;
3412
 
        GList* _tmp7_ = NULL;
3413
 
        GList* _tmp8_ = NULL;
 
3432
        Directory* directory;
 
3433
        Directory* _tmp2_;
 
3434
        gint _tmp3_;
 
3435
        gint _tmp4_;
 
3436
        Directory* _tmp5_;
 
3437
        Directory* _tmp6_;
 
3438
        GList* _tmp7_;
 
3439
        GList* _tmp8_;
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;
3420
 
        gint _tmp15_ = 0;
3421
 
        gint _tmp16_ = 0;
 
3441
        Directory* _tmp10_;
 
3442
        Directory* _tmp11_;
 
3443
        GList* _tmp12_;
 
3444
        GList* _tmp13_;
 
3445
        Directory* _tmp14_;
 
3446
        gint _tmp15_;
 
3447
        gint _tmp16_;
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;
 
3489
        Directory* _tmp2_;
 
3490
        GList* _tmp3_;
 
3491
        GList* _tmp4_;
3466
3492
        guint _tmp5_ = 0U;
3467
 
        Directory* _tmp6_ = NULL;
3468
 
        GList* _tmp7_ = NULL;
3469
 
        GList* _tmp8_ = NULL;
 
3493
        Directory* _tmp6_;
 
3494
        GList* _tmp7_;
 
3495
        GList* _tmp8_;
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};
 
3531
        GtkTreeIter _tmp0_;
3506
3532
        Directory* _tmp1_ = NULL;
3507
 
        Directory* _tmp2_ = NULL;
3508
 
        GList* _tmp3_ = NULL;
3509
 
        GList* _tmp4_ = NULL;
 
3533
        Directory* _tmp2_;
 
3534
        GList* _tmp3_;
 
3535
        GList* _tmp4_;
3510
3536
        guint _tmp5_ = 0U;
3511
 
        gboolean _tmp6_ = FALSE;
 
3537
        gboolean _tmp6_;
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;
 
3558
        Directory* _tmp2_;
 
3559
        GList* _tmp3_;
 
3560
        GList* _tmp4_;
3535
3561
        guint _tmp5_ = 0U;
3536
 
        gint _tmp6_ = 0;
 
3562
        gint _tmp6_;
3537
3563
        self = (SettingsModel*) base;
3538
3564
        _tmp0_ = iter;
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;
3558
 
        gint _tmp2_ = 0;
3559
 
        Directory* _tmp3_ = NULL;
3560
 
        GList* _tmp4_ = NULL;
3561
 
        GList* _tmp5_ = NULL;
 
3583
        Directory* directory;
 
3584
        gint _tmp2_;
 
3585
        Directory* _tmp3_;
 
3586
        GList* _tmp4_;
 
3587
        GList* _tmp5_;
3562
3588
        guint _tmp6_ = 0U;
3563
 
        Directory* _tmp7_ = NULL;
3564
 
        GList* _tmp8_ = NULL;
3565
 
        GList* _tmp9_ = NULL;
3566
 
        gint _tmp10_ = 0;
 
3589
        Directory* _tmp7_;
 
3590
        GList* _tmp8_;
 
3591
        GList* _tmp9_;
 
3592
        gint _tmp10_;
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};
 
3631
        GtkTreeIter _tmp0_;
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;
 
3634
        Directory* _tmp2_;
 
3635
        Directory* _tmp3_;
 
3636
        Directory* _tmp4_;
 
3637
        Directory* _tmp5_;
 
3638
        Directory* _tmp6_;
3613
3639
        self = (SettingsModel*) base;
3614
3640
        g_return_val_if_fail (child != NULL, FALSE);
3615
3641
        memset (&_vala_iter, 0, sizeof (GtkTreeIter));
3641
3667
 
3642
3668
static void settings_model_real_ref_node (GtkTreeModel* base, GtkTreeIter* iter) {
3643
3669
        SettingsModel * self;
3644
 
        GtkTreeIter _tmp0_ = {0};
 
3670
        GtkTreeIter _tmp0_;
3645
3671
        Directory* _tmp1_ = NULL;
3646
 
        Directory* _tmp2_ = NULL;
 
3672
        Directory* _tmp2_;
3647
3673
        self = (SettingsModel*) base;
3648
3674
        g_return_if_fail (iter != NULL);
3649
3675
        _tmp0_ = *iter;
3656
3682
 
3657
3683
static void settings_model_real_unref_node (GtkTreeModel* base, GtkTreeIter* iter) {
3658
3684
        SettingsModel * self;
3659
 
        GtkTreeIter _tmp0_ = {0};
 
3685
        GtkTreeIter _tmp0_;
3660
3686
        Directory* _tmp1_ = NULL;
3661
 
        Directory* _tmp2_ = NULL;
 
3687
        Directory* _tmp2_;
3662
3688
        self = (SettingsModel*) base;
3663
3689
        g_return_if_fail (iter != NULL);
3664
3690
        _tmp0_ = *iter;