~ubuntu-branches/ubuntu/quantal/libpeas/quantal

« back to all changes in this revision

Viewing changes to peas-demo/plugins/valahello/peasdemo-vala-hello-plugin.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Martin Pitt, Oliver Sauder
  • Date: 2011-09-05 08:41:48 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: package-import@ubuntu.com-20110905084148-u4qhltt1ipo2frj9
Tags: 1.1.3-0ubuntu1
[ Martin Pitt ]
* New upstream release:
  - Link against pygobject 3. (LP: #839712)
  - Do not cast pointers to unsigned integers.
* Drop debian/patches/gint_is_not_gtype, upstream now.
* debian/control.in: Bump python-gobject-dev build dependency to >= 2.90 as
  per upstream configure.ac.
* debian/control.in: Move valac-0.12 to valac to use 0.14.

[ Oliver Sauder ]
* Added peas-gtk vapi file libpeas-gtk-1.0.vapi (LP: #825834) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* peasdemo-vala-hello-plugin.c generated by valac 0.12.0, the Vala compiler
 
1
/* peasdemo-vala-hello-plugin.c generated by valac 0.11.6, the Vala compiler
2
2
 * generated from peasdemo-vala-hello-plugin.vala, do not modify */
3
3
 
4
4
 
119
119
        GtkWindow* _tmp1_;
120
120
        GtkWindow* window;
121
121
        GtkLabel* _tmp2_ = NULL;
122
 
        GtkWidget* _tmp3_ = NULL;
123
 
        GtkWidget* _tmp4_;
124
 
        GtkBox* _tmp5_;
 
122
        GtkWidget* _tmp3_;
 
123
        GtkWidget* _tmp4_ = NULL;
 
124
        GtkWidget* _tmp5_;
 
125
        GtkBox* _tmp6_;
125
126
        GtkBox* box;
126
127
        self = (PeasDemoValaHelloPlugin*) base;
127
 
        _tmp0_ = self->priv->_object;
128
 
        _tmp1_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp0_) ? ((GtkWindow*) _tmp0_) : NULL);
 
128
        _tmp1_ = _g_object_ref0 ((_tmp0_ = self->priv->_object, GTK_IS_WINDOW (_tmp0_) ? ((GtkWindow*) _tmp0_) : NULL));
129
129
        window = _tmp1_;
130
130
        _tmp2_ = (GtkLabel*) gtk_label_new ("Hello World from Vala!");
 
131
        _tmp3_ = (GtkWidget*) g_object_ref_sink (_tmp2_);
131
132
        _g_object_unref0 (self->priv->label);
132
 
        self->priv->label = (GtkWidget*) g_object_ref_sink (_tmp2_);
133
 
        _tmp3_ = gtk_bin_get_child ((GtkBin*) window);
134
 
        _tmp4_ = _tmp3_;
135
 
        _tmp5_ = _g_object_ref0 (GTK_IS_BOX (_tmp4_) ? ((GtkBox*) _tmp4_) : NULL);
136
 
        box = _tmp5_;
 
133
        self->priv->label = _tmp3_;
 
134
        _tmp4_ = gtk_bin_get_child ((GtkBin*) window);
 
135
        _tmp6_ = _g_object_ref0 ((_tmp5_ = _tmp4_, GTK_IS_BOX (_tmp5_) ? ((GtkBox*) _tmp5_) : NULL));
 
136
        box = _tmp6_;
137
137
        gtk_box_pack_start (box, self->priv->label, TRUE, TRUE, (guint) 0);
138
138
        gtk_widget_show (self->priv->label);
139
139
        _g_object_unref0 (box);
151
151
        GtkBox* _tmp4_;
152
152
        GtkBox* box;
153
153
        self = (PeasDemoValaHelloPlugin*) base;
154
 
        _tmp0_ = self->priv->_object;
155
 
        _tmp1_ = _g_object_ref0 (GTK_IS_WINDOW (_tmp0_) ? ((GtkWindow*) _tmp0_) : NULL);
 
154
        _tmp1_ = _g_object_ref0 ((_tmp0_ = self->priv->_object, GTK_IS_WINDOW (_tmp0_) ? ((GtkWindow*) _tmp0_) : NULL));
156
155
        window = _tmp1_;
157
156
        _tmp2_ = gtk_bin_get_child ((GtkBin*) window);
158
 
        _tmp3_ = _tmp2_;
159
 
        _tmp4_ = _g_object_ref0 (GTK_IS_BOX (_tmp3_) ? ((GtkBox*) _tmp3_) : NULL);
 
157
        _tmp4_ = _g_object_ref0 ((_tmp3_ = _tmp2_, GTK_IS_BOX (_tmp3_) ? ((GtkBox*) _tmp3_) : NULL));
160
158
        box = _tmp4_;
161
159
        gtk_container_remove ((GtkContainer*) box, self->priv->label);
162
160
        _g_object_unref0 (box);
180
178
 
181
179
static void peas_demo_vala_hello_plugin_set_object (PeasDemoValaHelloPlugin* self, GObject* value) {
182
180
        GObject* _tmp0_;
 
181
        GObject* _tmp1_;
183
182
        g_return_if_fail (self != NULL);
184
183
        _tmp0_ = _g_object_ref0 (value);
 
184
        _tmp1_ = _tmp0_;
185
185
        _g_object_unref0 (self->priv->_object);
186
 
        self->priv->_object = _tmp0_;
 
186
        self->priv->_object = _tmp1_;
187
187
        g_object_notify ((GObject *) self, "object");
188
188
}
189
189
 
326
326
        g_return_if_fail (module != NULL);
327
327
        peas_demo_vala_hello_plugin_register_type (module);
328
328
        peas_demo_vala_plugin_config_register_type (module);
329
 
        _tmp0_ = module;
330
 
        _tmp1_ = _g_object_ref0 (PEAS_IS_OBJECT_MODULE (_tmp0_) ? ((PeasObjectModule*) _tmp0_) : NULL);
 
329
        _tmp1_ = _g_object_ref0 ((_tmp0_ = module, PEAS_IS_OBJECT_MODULE (_tmp0_) ? ((PeasObjectModule*) _tmp0_) : NULL));
331
330
        objmodule = _tmp1_;
332
331
        peas_object_module_register_extension_type (objmodule, PEAS_TYPE_ACTIVATABLE, PEAS_DEMO_TYPE_VALA_HELLO_PLUGIN);
333
332
        peas_object_module_register_extension_type (objmodule, PEAS_GTK_TYPE_CONFIGURABLE, PEAS_DEMO_TYPE_VALA_PLUGIN_CONFIG);