~walkerlee/totem/pre-interview

« 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): Jeremy Bicha
  • Date: 2013-05-26 00:07:51 UTC
  • mfrom: (1.6.1) (24.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130526000751-kv8ap3x1di4qq8j2
Tags: 3.8.2-0ubuntu1
* Sync with Debian. Remaining changes: 
* debian/control.in:
  - Drop build-depends on libepc-ui-dev and libgrilo-0.2-dev (in universe)
  - Drop libxtst-dev build-depends so that the (redundant) fake key presses
    for inhibiting the screensaver are disabled (LP: #1007438)
  - Build-depend on libzeitgeist-dev
  - Suggest rather than recommend gstreamer components in universe
  - Add totem-plugins-extra
  - Add XB-Npp-Description and XB-Npp-Filename header to the 
    totem-mozilla package to improve ubufox/ubuntu plugin db integration 
  - Refer to Firefox in totem-mozilla description instead of Iceweasel
  - Don't have totem-mozilla recommend any particular browser
  - Drop obsolete python library dependencies since iplayer is no longer
    included
* debian/totem-common.install, debian/source_totem.py:
  - Install Ubuntu apport debugging hook
* debian/totem-plugins-extra.install:
  - Universe plugins split out of totem-plugins (currently only gromit)
* debian/totem-plugins.install:    
  - Skip the plugins split to -extra and add the zeitgeist plugin
* debian/rules:
  - Build with --fail-missing, to ensure we install everything. 
    + Ignore libtotem.{,l}a since we delibrately don't install these.
  - Re-enable hardening, make sure both PIE and BINDNOW are used
    by setting hardening=+all. (LP: #1039604)
* debian/patches/91_quicklist_entries.patch:
  - Add static quicklist
* debian/patches/92_gst-plugins-good.patch:
  - Build without unnecessary gstreamer1.0-bad dependency
* debian/patches/93_grilo_optional.patch:
  - Allow building without grilo while grilo MIR is still pending
* debian/patches/correct_desktop_mimetypes.patch:
  - Don't list the mimetypes after the unity lists
* debian/patches/revert_shell_menu.patch: 
  - revert the use of a shell menu until indicator-appmenu can handle
    the mixed shell/traditional menus itself
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* totem-sample-vala-plugin.c generated by valac 0.14.1, the Vala compiler
 
1
/* totem-sample-vala-plugin.c generated by valac 0.19.0.3-f335, the Vala compiler
2
2
 * generated from totem-sample-vala-plugin.vala, do not modify */
3
3
 
4
4
 
5
5
#include <glib.h>
6
6
#include <glib-object.h>
7
 
#include <totem.h>
8
7
#include <libpeas/peas.h>
9
8
 
10
9
 
51
50
SampleValaPlugin* sample_vala_plugin_new (void);
52
51
SampleValaPlugin* sample_vala_plugin_construct (GType object_type);
53
52
static void sample_vala_plugin_finalize (GObject* obj);
54
 
GObject* peas_activatable_get_object (PeasActivatable* self);
55
53
static void _vala_sample_vala_plugin_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
56
 
static void peas_activatable_set_object (PeasActivatable* self, GObject* value);
57
54
static void _vala_sample_vala_plugin_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
58
55
void peas_register_types (GTypeModule* module);
59
56
 
127
124
        G_OBJECT_CLASS (klass)->get_property = _vala_sample_vala_plugin_get_property;
128
125
        G_OBJECT_CLASS (klass)->set_property = _vala_sample_vala_plugin_set_property;
129
126
        G_OBJECT_CLASS (klass)->finalize = sample_vala_plugin_finalize;
130
 
        g_object_class_override_property (G_OBJECT_CLASS (klass), SAMPLE_VALA_PLUGIN_OBJECT, "object");
 
127
        g_object_class_install_property (G_OBJECT_CLASS (klass), SAMPLE_VALA_PLUGIN_OBJECT, g_param_spec_object ("object", "object", "object", G_TYPE_OBJECT, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
131
128
}
132
129
 
133
130
 
146
143
 
147
144
static void sample_vala_plugin_finalize (GObject* obj) {
148
145
        SampleValaPlugin * self;
149
 
        self = SAMPLE_VALA_PLUGIN (obj);
 
146
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAMPLE_VALA_PLUGIN, SampleValaPlugin);
150
147
        _g_object_unref0 (self->priv->_object);
151
148
        G_OBJECT_CLASS (sample_vala_plugin_parent_class)->finalize (obj);
152
149
}
168
165
 
169
166
static void _vala_sample_vala_plugin_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
170
167
        SampleValaPlugin * self;
171
 
        self = SAMPLE_VALA_PLUGIN (object);
 
168
        self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SAMPLE_VALA_PLUGIN, SampleValaPlugin);
172
169
        switch (property_id) {
173
170
                case SAMPLE_VALA_PLUGIN_OBJECT:
174
171
                g_value_take_object (value, sample_vala_plugin_real_get_object ((PeasActivatable*) self));
182
179
 
183
180
static void _vala_sample_vala_plugin_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
184
181
        SampleValaPlugin * self;
185
 
        self = SAMPLE_VALA_PLUGIN (object);
 
182
        self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_SAMPLE_VALA_PLUGIN, SampleValaPlugin);
186
183
        switch (property_id) {
187
184
                case SAMPLE_VALA_PLUGIN_OBJECT:
188
185
                sample_vala_plugin_real_set_object ((PeasActivatable*) self, g_value_get_object (value));
201
198
        g_return_if_fail (module != NULL);
202
199
        sample_vala_plugin_register_type (module);
203
200
        _tmp0_ = module;
204
 
        _tmp1_ = _g_object_ref0 (PEAS_IS_OBJECT_MODULE (_tmp0_) ? ((PeasObjectModule*) _tmp0_) : NULL);
 
201
        _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, peas_object_module_get_type ()) ? ((PeasObjectModule*) _tmp0_) : NULL);
205
202
        objmodule = _tmp1_;
206
203
        peas_object_module_register_extension_type (objmodule, peas_activatable_get_type (), TYPE_SAMPLE_VALA_PLUGIN);
207
204
        _g_object_unref0 (objmodule);