~ubuntu-branches/ubuntu/wily/totem/wily

« back to all changes in this revision

Viewing changes to src/plugins/sample-vala/totem-sample-vala-plugin.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Sjoerd Simons, Michael Biebl, Josselin Mouette
  • Date: 2011-11-27 06:21:34 UTC
  • mfrom: (1.4.8) (5.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20111127062134-c3ikko9wdfn9m2av
Tags: 3.2.1-1
[ Sjoerd Simons ]
* New upstream release
* debian/control.in: Update build-depends
* debian/rules: Enable vala plugins
* debian/totem-plugins.install:
  - Add grilo and rotation plugins
  - Remove jamendo, thumbnail and tracker plugins

[ Michael Biebl ]
* debian/control.in:
  - Bump Depends on python-gobject to (>= 2.90.3).

[ Josselin Mouette ]
* Replace python-gobject dependencies by python-gi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* totem-sample-vala-plugin.c generated by valac 0.11.7, the Vala compiler
 
1
/* totem-sample-vala-plugin.c generated by valac 0.13.3.24-7e20e7, the Vala compiler
2
2
 * generated from totem-sample-vala-plugin.vala, do not modify */
3
3
 
4
4
 
92
92
 
93
93
TotemObject* sample_vala_plugin_get_object (SampleValaPlugin* self) {
94
94
        TotemObject* result;
 
95
        TotemObject* _tmp0_;
95
96
        g_return_val_if_fail (self != NULL, NULL);
96
 
        result = self->priv->_object;
 
97
        _tmp0_ = self->priv->_object;
 
98
        result = _tmp0_;
97
99
        return result;
98
100
}
99
101
 
105
107
 
106
108
void sample_vala_plugin_set_object (SampleValaPlugin* self, TotemObject* value) {
107
109
        TotemObject* _tmp0_;
 
110
        TotemObject* _tmp1_;
108
111
        g_return_if_fail (self != NULL);
109
 
        _tmp0_ = _g_object_ref0 (value);
 
112
        _tmp0_ = value;
 
113
        _tmp1_ = _g_object_ref0 (_tmp0_);
110
114
        _g_object_unref0 (self->priv->_object);
111
 
        self->priv->_object = _tmp0_;
 
115
        self->priv->_object = _tmp1_;
112
116
        g_object_notify ((GObject *) self, "object");
113
117
}
114
118
 
119
123
        G_OBJECT_CLASS (klass)->get_property = _vala_sample_vala_plugin_get_property;
120
124
        G_OBJECT_CLASS (klass)->set_property = _vala_sample_vala_plugin_set_property;
121
125
        G_OBJECT_CLASS (klass)->finalize = sample_vala_plugin_finalize;
122
 
        g_object_class_install_property (G_OBJECT_CLASS (klass), SAMPLE_VALA_PLUGIN_OBJECT, g_param_spec_object ("object", "object", "object", TOTEM_TYPE_OBJECT, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
 
126
        g_object_class_install_property (G_OBJECT_CLASS (klass), SAMPLE_VALA_PLUGIN_OBJECT, g_param_spec_object ("object", "object", "object", totem_object_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
123
127
}
124
128
 
125
129
 
153
157
        static const GTypeInfo g_define_type_info = { sizeof (SampleValaPluginClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sample_vala_plugin_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SampleValaPlugin), 0, (GInstanceInitFunc) sample_vala_plugin_instance_init, NULL };
154
158
        static const GInterfaceInfo peas_activatable_info = { (GInterfaceInitFunc) sample_vala_plugin_peas_activatable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
155
159
        sample_vala_plugin_type_id = g_type_module_register_type (module, G_TYPE_OBJECT, "SampleValaPlugin", &g_define_type_info, 0);
156
 
        g_type_module_add_interface (module, sample_vala_plugin_type_id, PEAS_TYPE_ACTIVATABLE, &peas_activatable_info);
 
160
        g_type_module_add_interface (module, sample_vala_plugin_type_id, peas_activatable_get_type (), &peas_activatable_info);
157
161
        return sample_vala_plugin_type_id;
158
162
}
159
163
 
195
199
        _tmp0_ = module;
196
200
        _tmp1_ = _g_object_ref0 (PEAS_IS_OBJECT_MODULE (_tmp0_) ? ((PeasObjectModule*) _tmp0_) : NULL);
197
201
        objmodule = _tmp1_;
198
 
        peas_object_module_register_extension_type (objmodule, PEAS_TYPE_ACTIVATABLE, TYPE_SAMPLE_VALA_PLUGIN);
 
202
        peas_object_module_register_extension_type (objmodule, peas_activatable_get_type (), TYPE_SAMPLE_VALA_PLUGIN);
199
203
        _g_object_unref0 (objmodule);
200
204
}
201
205