~ubuntu-branches/ubuntu/precise/folks/precise-201306070638

« back to all changes in this revision

Viewing changes to tools/inspect/signal-manager.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-03-18 16:49:27 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110318164927-ho97ckhsq73glhm4
Tags: 0.4.1-0ubuntu1
* New upstream release
  - Fixed crasher when reconnecting a Telepathy account

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* signal-manager.c generated by valac 0.11.6, the Vala compiler
 
1
/* signal-manager.c generated by valac 0.11.7, the Vala compiler
2
2
 * generated from signal-manager.vala, do not modify */
3
3
 
4
4
/*
90
90
FolksInspectSignalManager* folks_inspect_signal_manager_construct (GType object_type) {
91
91
        FolksInspectSignalManager * self = NULL;
92
92
        GeeHashMap* _tmp0_ = NULL;
93
 
        GeeHashMap* _tmp1_;
94
 
        GeeHashMap* _tmp2_ = NULL;
95
 
        GeeHashMap* _tmp3_;
 
93
        GeeHashMap* _tmp1_ = NULL;
96
94
        self = (FolksInspectSignalManager*) g_object_new (object_type, NULL);
97
95
        _tmp0_ = gee_hash_map_new (G_TYPE_GTYPE, NULL, NULL, GEE_TYPE_HASH_MAP, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
98
 
        _tmp1_ = _tmp0_;
99
96
        _g_object_unref0 (self->priv->signals_by_class_type);
100
 
        self->priv->signals_by_class_type = _tmp1_;
101
 
        _tmp2_ = gee_hash_map_new (G_TYPE_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, GEE_TYPE_HASH_MAP, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
102
 
        _tmp3_ = _tmp2_;
 
97
        self->priv->signals_by_class_type = _tmp0_;
 
98
        _tmp1_ = gee_hash_map_new (G_TYPE_OBJECT, (GBoxedCopyFunc) g_object_ref, g_object_unref, GEE_TYPE_HASH_MAP, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
103
99
        _g_object_unref0 (self->priv->signals_by_class_instance);
104
 
        self->priv->signals_by_class_instance = _tmp3_;
 
100
        self->priv->signals_by_class_instance = _tmp1_;
105
101
        return self;
106
102
}
107
103
 
220
216
                                _tmp22_ = G_TYPE_FROM_INSTANCE (_tmp21_);
221
217
                                _tmp23_ = g_type_name (_tmp22_);
222
218
                                _tmp24_ = g_strdup (_tmp23_);
223
 
                                class_name = (_tmp25_ = _tmp24_, _g_object_unref0 (_tmp21_), _tmp25_);
 
219
                                _tmp25_ = _tmp24_;
 
220
                                _g_object_unref0 (_tmp21_);
 
221
                                class_name = _tmp25_;
224
222
                                while (TRUE) {
225
223
                                        gboolean _tmp26_;
226
224
                                        gpointer _tmp27_ = NULL;
709
707
        signal_handler_ids = (GeeHashMap*) _tmp3_;
710
708
        if (signal_handler_ids == NULL) {
711
709
                GeeHashMap* _tmp4_ = NULL;
712
 
                GeeHashMap* _tmp5_;
713
710
                _tmp4_ = gee_hash_map_new (G_TYPE_UINT, NULL, NULL, G_TYPE_ULONG, NULL, NULL, NULL, NULL, NULL);
714
 
                _tmp5_ = _tmp4_;
715
711
                _g_object_unref0 (signal_handler_ids);
716
 
                signal_handler_ids = _tmp5_;
 
712
                signal_handler_ids = _tmp4_;
717
713
                gee_abstract_map_set ((GeeAbstractMap*) self->priv->signals_by_class_instance, class_instance, signal_handler_ids);
718
714
        }
719
715
        gee_abstract_map_set ((GeeAbstractMap*) signal_handler_ids, GUINT_TO_POINTER (signal_id), GUINT_TO_POINTER (signal_handler_id));
780
776
                        GValue _tmp2_;
781
777
                        GValue _tmp3_ = {0};
782
778
                        GValue param_value;
783
 
                        _tmp2_ = G_IS_VALUE (&param_value_collection[param_value_it]) ? (g_value_init (&_tmp3_, G_VALUE_TYPE (&param_value_collection[param_value_it])), g_value_copy (&param_value_collection[param_value_it], &_tmp3_), _tmp3_) : param_value_collection[param_value_it];
 
779
                        if (G_IS_VALUE (&param_value_collection[param_value_it])) {
 
780
                                g_value_init (&_tmp3_, G_VALUE_TYPE (&param_value_collection[param_value_it]));
 
781
                                g_value_copy (&param_value_collection[param_value_it], &_tmp3_);
 
782
                        } else {
 
783
                                _tmp3_ = param_value_collection[param_value_it];
 
784
                        }
 
785
                        _tmp2_ = _tmp3_;
784
786
                        param_value = _tmp2_;
785
787
                        {
786
788
                                guint _tmp4_;
844
846
        hook_ids = (GeeHashMap*) _tmp3_;
845
847
        if (hook_ids == NULL) {
846
848
                GeeHashMap* _tmp4_ = NULL;
847
 
                GeeHashMap* _tmp5_;
848
849
                _tmp4_ = gee_hash_map_new (G_TYPE_UINT, NULL, NULL, G_TYPE_ULONG, NULL, NULL, NULL, NULL, NULL);
849
 
                _tmp5_ = _tmp4_;
850
850
                _g_object_unref0 (hook_ids);
851
 
                hook_ids = _tmp5_;
 
851
                hook_ids = _tmp4_;
852
852
                gee_abstract_map_set ((GeeAbstractMap*) self->priv->signals_by_class_type, GINT_TO_POINTER (class_type), hook_ids);
853
853
        }
854
854
        gee_abstract_map_set ((GeeAbstractMap*) hook_ids, GUINT_TO_POINTER (signal_id), GUINT_TO_POINTER (hook_id));
913
913
                        GValue _tmp2_;
914
914
                        GValue _tmp3_ = {0};
915
915
                        GValue param_value;
916
 
                        _tmp2_ = G_IS_VALUE (&param_value_collection[param_value_it]) ? (g_value_init (&_tmp3_, G_VALUE_TYPE (&param_value_collection[param_value_it])), g_value_copy (&param_value_collection[param_value_it], &_tmp3_), _tmp3_) : param_value_collection[param_value_it];
 
916
                        if (G_IS_VALUE (&param_value_collection[param_value_it])) {
 
917
                                g_value_init (&_tmp3_, G_VALUE_TYPE (&param_value_collection[param_value_it]));
 
918
                                g_value_copy (&param_value_collection[param_value_it], &_tmp3_);
 
919
                        } else {
 
920
                                _tmp3_ = param_value_collection[param_value_it];
 
921
                        }
 
922
                        _tmp2_ = _tmp3_;
917
923
                        param_value = _tmp2_;
918
924
                        {
919
925
                                guint _tmp4_;
955
961
                const gchar* _tmp2_ = NULL;
956
962
                gchar* _tmp3_;
957
963
                gchar* _tmp4_;
 
964
                gchar* _tmp5_;
958
965
                if (g_strcmp0 (output, "") != 0) {
959
966
                        _tmp2_ = " | ";
960
967
                } else {
961
968
                        _tmp2_ = "";
962
969
                }
963
970
                _tmp3_ = g_strconcat (_tmp2_, "G_SIGNAL_RUN_LAST", NULL);
964
 
                _tmp4_ = g_strconcat (output, _tmp3_, NULL);
 
971
                _tmp4_ = _tmp3_;
 
972
                _tmp5_ = g_strconcat (output, _tmp4_, NULL);
965
973
                _g_free0 (output);
966
 
                output = _tmp4_;
967
 
                _g_free0 (_tmp3_);
 
974
                output = _tmp5_;
 
975
                _g_free0 (_tmp4_);
968
976
        }
969
977
        if ((flags & G_SIGNAL_RUN_CLEANUP) != 0) {
970
 
                const gchar* _tmp5_ = NULL;
971
 
                gchar* _tmp6_;
 
978
                const gchar* _tmp6_ = NULL;
972
979
                gchar* _tmp7_;
 
980
                gchar* _tmp8_;
 
981
                gchar* _tmp9_;
973
982
                if (g_strcmp0 (output, "") != 0) {
974
 
                        _tmp5_ = " | ";
 
983
                        _tmp6_ = " | ";
975
984
                } else {
976
 
                        _tmp5_ = "";
 
985
                        _tmp6_ = "";
977
986
                }
978
 
                _tmp6_ = g_strconcat (_tmp5_, "G_SIGNAL_RUN_CLEANUP", NULL);
979
 
                _tmp7_ = g_strconcat (output, _tmp6_, NULL);
 
987
                _tmp7_ = g_strconcat (_tmp6_, "G_SIGNAL_RUN_CLEANUP", NULL);
 
988
                _tmp8_ = _tmp7_;
 
989
                _tmp9_ = g_strconcat (output, _tmp8_, NULL);
980
990
                _g_free0 (output);
981
 
                output = _tmp7_;
982
 
                _g_free0 (_tmp6_);
 
991
                output = _tmp9_;
 
992
                _g_free0 (_tmp8_);
983
993
        }
984
994
        if ((flags & G_SIGNAL_DETAILED) != 0) {
985
 
                const gchar* _tmp8_ = NULL;
986
 
                gchar* _tmp9_;
987
 
                gchar* _tmp10_;
988
 
                if (g_strcmp0 (output, "") != 0) {
989
 
                        _tmp8_ = " | ";
990
 
                } else {
991
 
                        _tmp8_ = "";
992
 
                }
993
 
                _tmp9_ = g_strconcat (_tmp8_, "G_SIGNAL_DETAILED", NULL);
994
 
                _tmp10_ = g_strconcat (output, _tmp9_, NULL);
995
 
                _g_free0 (output);
996
 
                output = _tmp10_;
997
 
                _g_free0 (_tmp9_);
998
 
        }
999
 
        if ((flags & G_SIGNAL_ACTION) != 0) {
1000
 
                const gchar* _tmp11_ = NULL;
 
995
                const gchar* _tmp10_ = NULL;
 
996
                gchar* _tmp11_;
1001
997
                gchar* _tmp12_;
1002
998
                gchar* _tmp13_;
1003
999
                if (g_strcmp0 (output, "") != 0) {
1004
 
                        _tmp11_ = " | ";
 
1000
                        _tmp10_ = " | ";
1005
1001
                } else {
1006
 
                        _tmp11_ = "";
 
1002
                        _tmp10_ = "";
1007
1003
                }
1008
 
                _tmp12_ = g_strconcat (_tmp11_, "G_SIGNAL_ACTION", NULL);
 
1004
                _tmp11_ = g_strconcat (_tmp10_, "G_SIGNAL_DETAILED", NULL);
 
1005
                _tmp12_ = _tmp11_;
1009
1006
                _tmp13_ = g_strconcat (output, _tmp12_, NULL);
1010
1007
                _g_free0 (output);
1011
1008
                output = _tmp13_;
1012
1009
                _g_free0 (_tmp12_);
1013
1010
        }
1014
 
        if ((flags & G_SIGNAL_NO_HOOKS) != 0) {
 
1011
        if ((flags & G_SIGNAL_ACTION) != 0) {
1015
1012
                const gchar* _tmp14_ = NULL;
1016
1013
                gchar* _tmp15_;
1017
1014
                gchar* _tmp16_;
 
1015
                gchar* _tmp17_;
1018
1016
                if (g_strcmp0 (output, "") != 0) {
1019
1017
                        _tmp14_ = " | ";
1020
1018
                } else {
1021
1019
                        _tmp14_ = "";
1022
1020
                }
1023
 
                _tmp15_ = g_strconcat (_tmp14_, "G_SIGNAL_NO_HOOKS", NULL);
1024
 
                _tmp16_ = g_strconcat (output, _tmp15_, NULL);
1025
 
                _g_free0 (output);
1026
 
                output = _tmp16_;
1027
 
                _g_free0 (_tmp15_);
 
1021
                _tmp15_ = g_strconcat (_tmp14_, "G_SIGNAL_ACTION", NULL);
 
1022
                _tmp16_ = _tmp15_;
 
1023
                _tmp17_ = g_strconcat (output, _tmp16_, NULL);
 
1024
                _g_free0 (output);
 
1025
                output = _tmp17_;
 
1026
                _g_free0 (_tmp16_);
 
1027
        }
 
1028
        if ((flags & G_SIGNAL_NO_HOOKS) != 0) {
 
1029
                const gchar* _tmp18_ = NULL;
 
1030
                gchar* _tmp19_;
 
1031
                gchar* _tmp20_;
 
1032
                gchar* _tmp21_;
 
1033
                if (g_strcmp0 (output, "") != 0) {
 
1034
                        _tmp18_ = " | ";
 
1035
                } else {
 
1036
                        _tmp18_ = "";
 
1037
                }
 
1038
                _tmp19_ = g_strconcat (_tmp18_, "G_SIGNAL_NO_HOOKS", NULL);
 
1039
                _tmp20_ = _tmp19_;
 
1040
                _tmp21_ = g_strconcat (output, _tmp20_, NULL);
 
1041
                _g_free0 (output);
 
1042
                output = _tmp21_;
 
1043
                _g_free0 (_tmp20_);
1028
1044
        }
1029
1045
        result = output;
1030
1046
        return result;