[libdmapsharing] Recompile Vala code with libgee-0.8
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Recompile Vala code with libgee-0.8
- Date: Fri, 12 Apr 2013 18:37:41 +0000 (UTC)
commit f4c008e060338d2bdac2102cea7d170ec74b6d6a
Author: W. Michael Petullo <mike flyn org>
Date: Fri Apr 12 13:37:37 2013 -0500
Recompile Vala code with libgee-0.8
Signed-off-by: W. Michael Petullo <mike flyn org>
tests/dacplisten.c | 28 ++++++++++++++--------------
tests/dmapcopy.c | 20 ++++++++++----------
tests/dmapserve.c | 4 ++--
tests/dpapview.c | 32 ++++++++++++++++----------------
tests/vala-dmap-container-db.c | 6 +++---
tests/vala-dmap-db.c | 8 ++++----
tests/vala-dpap-record.c | 8 ++++----
7 files changed, 53 insertions(+), 53 deletions(-)
---
diff --git a/tests/dacplisten.c b/tests/dacplisten.c
index c395fb9..7ebee7b 100644
--- a/tests/dacplisten.c
+++ b/tests/dacplisten.c
@@ -1,4 +1,4 @@
-/* dacplisten.c generated by valac 0.14.2, the Vala compiler
+/* dacplisten.c generated by valac 0.18.1, the Vala compiler
* generated from dacplisten.vala, do not modify */
/* FILE: dacplisten.vala -- Listen to DACP remotes
@@ -132,10 +132,10 @@ GType vala_dmap_db_get_type (void) G_GNUC_CONST;
ValaDMAPContainerDb* vala_dmap_container_db_new (void);
ValaDMAPContainerDb* vala_dmap_container_db_construct (GType object_type);
GType vala_dmap_container_db_get_type (void) G_GNUC_CONST;
-static void __lambda0_ (DACPListener* self, const gchar* service_name, const gchar* display_name);
-static void ___lambda0__dacp_share_remote_found (DACPShare* _sender, const gchar* service_name, const gchar*
remote_name, gpointer self);
-static void __lambda1_ (DACPListener* self, const gchar* guid);
-static void ___lambda1__dacp_share_add_guid (DACPShare* _sender, const gchar* guid, gpointer self);
+static void __lambda2_ (DACPListener* self, const gchar* service_name, const gchar* display_name);
+static void ___lambda2__dacp_share_remote_found (DACPShare* _sender, const gchar* service_name, const gchar*
remote_name, gpointer self);
+static void __lambda3_ (DACPListener* self, const gchar* guid);
+static void ___lambda3__dacp_share_add_guid (DACPShare* _sender, const gchar* guid, gpointer self);
static void dacp_listener_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);
@@ -273,7 +273,7 @@ GType vala_dacp_player_get_type (void) {
}
-static void __lambda0_ (DACPListener* self, const gchar* service_name, const gchar* display_name) {
+static void __lambda2_ (DACPListener* self, const gchar* service_name, const gchar* display_name) {
FILE* _tmp0_;
const gchar* _tmp1_;
const gchar* _tmp2_;
@@ -286,12 +286,12 @@ static void __lambda0_ (DACPListener* self, const gchar* service_name, const gch
}
-static void ___lambda0__dacp_share_remote_found (DACPShare* _sender, const gchar* service_name, const gchar*
remote_name, gpointer self) {
- __lambda0_ (self, service_name, remote_name);
+static void ___lambda2__dacp_share_remote_found (DACPShare* _sender, const gchar* service_name, const gchar*
remote_name, gpointer self) {
+ __lambda2_ (self, service_name, remote_name);
}
-static void __lambda1_ (DACPListener* self, const gchar* guid) {
+static void __lambda3_ (DACPListener* self, const gchar* guid) {
FILE* _tmp0_;
g_return_if_fail (guid != NULL);
_tmp0_ = stdout;
@@ -299,8 +299,8 @@ static void __lambda1_ (DACPListener* self, const gchar* guid) {
}
-static void ___lambda1__dacp_share_add_guid (DACPShare* _sender, const gchar* guid, gpointer self) {
- __lambda1_ (self, guid);
+static void ___lambda3__dacp_share_add_guid (DACPShare* _sender, const gchar* guid, gpointer self) {
+ __lambda3_ (self, guid);
}
@@ -333,9 +333,9 @@ DACPListener* dacp_listener_construct (GType object_type) {
_g_object_unref0 (self->priv->share);
self->priv->share = _tmp6_;
_tmp7_ = self->priv->share;
- g_signal_connect_object (_tmp7_, "remote-found", (GCallback) ___lambda0__dacp_share_remote_found,
self, 0);
+ g_signal_connect_object (_tmp7_, "remote-found", (GCallback) ___lambda2__dacp_share_remote_found,
self, 0);
_tmp8_ = self->priv->share;
- g_signal_connect_object (_tmp8_, "add-guid", (GCallback) ___lambda1__dacp_share_add_guid, self, 0);
+ g_signal_connect_object (_tmp8_, "add-guid", (GCallback) ___lambda3__dacp_share_add_guid, self, 0);
_tmp9_ = self->priv->share;
dacp_share_start_lookup (_tmp9_);
return self;
@@ -361,7 +361,7 @@ static void dacp_listener_instance_init (DACPListener * self) {
static void dacp_listener_finalize (GObject* obj) {
DACPListener * self;
- self = DACP_LISTENER (obj);
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DACP_LISTENER, DACPListener);
_g_object_unref0 (self->priv->db);
_g_object_unref0 (self->priv->container_db);
_g_object_unref0 (self->priv->player);
diff --git a/tests/dmapcopy.c b/tests/dmapcopy.c
index 6021926..e5a5060 100644
--- a/tests/dmapcopy.c
+++ b/tests/dmapcopy.c
@@ -1,4 +1,4 @@
-/* dmapcopy.c generated by valac 0.14.2, the Vala compiler
+/* dmapcopy.c generated by valac 0.18.1, the Vala compiler
* generated from dmapcopy.vala, do not modify */
/* FILE: dmapcopy.vala -- Copy files from a DMAP server
@@ -116,10 +116,10 @@ enum {
DPAP_COPY_DUMMY_PROPERTY
};
static gboolean dpap_copy_connected_cb (DPAPCopy* self, DMAPConnection* connection, gboolean _result_, const
gchar* reason);
-static void __lambda0_ (DPAPCopy* self, gconstpointer k, gconstpointer v);
+static void __lambda2_ (DPAPCopy* self, gconstpointer k, gconstpointer v);
GType vala_dpap_record_get_type (void) G_GNUC_CONST;
const gchar* vala_dpap_record_get_location (ValaDPAPRecord* self);
-static void ___lambda0__gh_func (gconstpointer key, gconstpointer value, gpointer self);
+static void ___lambda2__gh_func (gconstpointer key, gconstpointer value, gpointer self);
static void dpap_copy_service_added_cb (DPAPCopy* self, DMAPMdnsBrowserService* service);
static gboolean _dpap_copy_connected_cb_dmap_connection_callback (DMAPConnection* connection, gboolean
_result_, const gchar* reason, gpointer self);
DPAPCopy* dpap_copy_new (GError** error);
@@ -136,21 +136,21 @@ gint _vala_main (gchar** args, int args_length1);
static void _debug_null_glog_func (const gchar* log_domain, GLogLevelFlags log_levels, const gchar* message,
gpointer self);
-static void __lambda0_ (DPAPCopy* self, gconstpointer k, gconstpointer v) {
+static void __lambda2_ (DPAPCopy* self, gconstpointer k, gconstpointer v) {
FILE* _tmp0_;
gconstpointer _tmp1_;
const gchar* _tmp2_;
const gchar* _tmp3_;
_tmp0_ = stdout;
_tmp1_ = v;
- _tmp2_ = vala_dpap_record_get_location (VALA_DPAP_RECORD (_tmp1_));
+ _tmp2_ = vala_dpap_record_get_location (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_VALA_DPAP_RECORD,
ValaDPAPRecord));
_tmp3_ = _tmp2_;
fprintf (_tmp0_, "%s\n", _tmp3_);
}
-static void ___lambda0__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
- __lambda0_ (self, key, value);
+static void ___lambda2__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
+ __lambda2_ (self, key, value);
}
@@ -165,7 +165,7 @@ static gboolean dpap_copy_connected_cb (DPAPCopy* self, DMAPConnection* connecti
_tmp1_ = dmap_db_count ((DMAPDb*) _tmp0_);
g_debug ("dmapcopy.vala:30: %lld entries\n", _tmp1_);
_tmp2_ = self->priv->db;
- dmap_db_foreach ((DMAPDb*) _tmp2_, ___lambda0__gh_func, self);
+ dmap_db_foreach ((DMAPDb*) _tmp2_, ___lambda2__gh_func, self);
result = TRUE;
return result;
}
@@ -200,7 +200,7 @@ static void dpap_copy_service_added_cb (DPAPCopy* self, DMAPMdnsBrowserService*
_tmp7_ = self->priv->factory;
_tmp8_ = dpap_connection_new (_tmp1_, _tmp3_, _tmp5_, (DMAPDb*) _tmp6_, (DMAPRecordFactory*) _tmp7_);
_g_object_unref0 (self->priv->connection);
- self->priv->connection = DMAP_CONNECTION (_tmp8_);
+ self->priv->connection = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, DMAP_TYPE_CONNECTION, DMAPConnection);
_tmp9_ = self->priv->connection;
dmap_connection_connect (_tmp9_, _dpap_copy_connected_cb_dmap_connection_callback, self);
}
@@ -372,7 +372,7 @@ static void dpap_copy_instance_init (DPAPCopy * self) {
static void dpap_copy_finalize (DPAPCopy* obj) {
DPAPCopy * self;
- self = DPAP_COPY (obj);
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DPAP_COPY, DPAPCopy);
_g_object_unref0 (self->priv->browser);
_g_object_unref0 (self->priv->connection);
_g_object_unref0 (self->priv->db);
diff --git a/tests/dmapserve.c b/tests/dmapserve.c
index f112bec..99e766a 100644
--- a/tests/dmapserve.c
+++ b/tests/dmapserve.c
@@ -1,4 +1,4 @@
-/* dmapserve.c generated by valac 0.14.2, the Vala compiler
+/* dmapserve.c generated by valac 0.18.1, the Vala compiler
* generated from dmapserve.vala, do not modify */
/* FILE: dmapserve.vala -- Serve media using DMAP
@@ -293,7 +293,7 @@ static void dpap_serve_instance_init (DPAPServe * self) {
static void dpap_serve_finalize (DPAPServe* obj) {
DPAPServe * self;
- self = DPAP_SERVE (obj);
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DPAP_SERVE, DPAPServe);
_g_object_unref0 (self->priv->record);
_g_object_unref0 (self->priv->db);
_g_object_unref0 (self->priv->container_db);
diff --git a/tests/dpapview.c b/tests/dpapview.c
index 01ddcb1..bac0de9 100644
--- a/tests/dpapview.c
+++ b/tests/dpapview.c
@@ -1,4 +1,4 @@
-/* dpapview.c generated by valac 0.14.2, the Vala compiler
+/* dpapview.c generated by valac 0.18.1, the Vala compiler
* generated from dpapview.vala, do not modify */
/* FILE: dpapviewer.vala -- View DPAP data
@@ -29,7 +29,7 @@
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
-#include <gdk-pixbuf/gdk-pixdata.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib/gstdio.h>
#include <unistd.h>
#include <stdio.h>
@@ -122,11 +122,11 @@ enum {
DPAP_VIEWER_DUMMY_PROPERTY
};
static gboolean dpap_viewer_connected_cb (DPAPViewer* self, DMAPConnection* connection, gboolean _result_,
const gchar* reason);
-static void __lambda0_ (DPAPViewer* self, gconstpointer k, gconstpointer v);
+static void __lambda2_ (DPAPViewer* self, gconstpointer k, gconstpointer v);
GType vala_dpap_record_get_type (void) G_GNUC_CONST;
GByteArray* vala_dpap_record_get_thumbnail (ValaDPAPRecord* self);
const gchar* vala_dpap_record_get_filename (ValaDPAPRecord* self);
-static void ___lambda0__gh_func (gconstpointer key, gconstpointer value, gpointer self);
+static void ___lambda2__gh_func (gconstpointer key, gconstpointer value, gpointer self);
static void dpap_viewer_service_added_cb (DPAPViewer* self, DMAPMdnsBrowserService* service);
static gboolean _dpap_viewer_connected_cb_dmap_connection_callback (DMAPConnection* connection, gboolean
_result_, const gchar* reason, gpointer self);
DPAPViewer* dpap_viewer_new (GtkBuilder* builder, GError** error);
@@ -140,7 +140,7 @@ static void dpap_viewer_finalize (DPAPViewer* obj);
gint _vala_main (gchar** args, int args_length1);
-static void __lambda0_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
+static void __lambda2_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
GdkPixbuf* pixbuf;
gconstpointer _tmp0_;
GByteArray* _tmp1_;
@@ -157,7 +157,7 @@ static void __lambda0_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
GError * _inner_error_ = NULL;
pixbuf = NULL;
_tmp0_ = v;
- _tmp1_ = vala_dpap_record_get_thumbnail (VALA_DPAP_RECORD (_tmp0_));
+ _tmp1_ = vala_dpap_record_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VALA_DPAP_RECORD,
ValaDPAPRecord));
_tmp2_ = _tmp1_;
if (_tmp2_ != NULL) {
gchar* path = NULL;
@@ -188,7 +188,7 @@ static void __lambda0_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
}
_tmp5_ = path;
_tmp6_ = v;
- _tmp7_ = vala_dpap_record_get_thumbnail (VALA_DPAP_RECORD (_tmp6_));
+ _tmp7_ = vala_dpap_record_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_,
TYPE_VALA_DPAP_RECORD, ValaDPAPRecord));
_tmp8_ = _tmp7_;
_tmp9_ = _tmp8_->data;
_tmp9__length1 = (gint) _tmp8_->len;
@@ -225,15 +225,15 @@ static void __lambda0_ (DPAPViewer* self, gconstpointer k, gconstpointer v) {
_tmp18_ = iter;
_tmp19_ = pixbuf;
_tmp20_ = v;
- _tmp21_ = vala_dpap_record_get_filename (VALA_DPAP_RECORD (_tmp20_));
+ _tmp21_ = vala_dpap_record_get_filename (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_VALA_DPAP_RECORD,
ValaDPAPRecord));
_tmp22_ = _tmp21_;
gtk_list_store_set (_tmp17_, &_tmp18_, 0, _tmp19_, 1, _tmp22_, -1);
_g_object_unref0 (pixbuf);
}
-static void ___lambda0__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
- __lambda0_ (self, key, value);
+static void ___lambda2__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
+ __lambda2_ (self, key, value);
}
@@ -248,7 +248,7 @@ static gboolean dpap_viewer_connected_cb (DPAPViewer* self, DMAPConnection* conn
_tmp1_ = dmap_db_count ((DMAPDb*) _tmp0_);
g_debug ("dpapview.vala:31: %lld entries\n", _tmp1_);
_tmp2_ = self->priv->db;
- dmap_db_foreach ((DMAPDb*) _tmp2_, ___lambda0__gh_func, self);
+ dmap_db_foreach ((DMAPDb*) _tmp2_, ___lambda2__gh_func, self);
result = TRUE;
return result;
}
@@ -283,7 +283,7 @@ static void dpap_viewer_service_added_cb (DPAPViewer* self, DMAPMdnsBrowserServi
_tmp7_ = self->priv->factory;
_tmp8_ = dpap_connection_new (_tmp1_, _tmp3_, _tmp5_, (DMAPDb*) _tmp6_, (DMAPRecordFactory*) _tmp7_);
_g_object_unref0 (self->priv->connection);
- self->priv->connection = DMAP_CONNECTION (_tmp8_);
+ self->priv->connection = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, DMAP_TYPE_CONNECTION, DMAPConnection);
_tmp9_ = self->priv->connection;
dmap_connection_connect (_tmp9_, _dpap_viewer_connected_cb_dmap_connection_callback, self);
}
@@ -325,15 +325,15 @@ DPAPViewer* dpap_viewer_construct (GType object_type, GtkBuilder* builder, GErro
gtk_builder_connect_signals (_tmp0_, self);
_tmp1_ = builder;
_tmp2_ = gtk_builder_get_object (_tmp1_, "window");
- _tmp3_ = _g_object_ref0 (GTK_IS_WIDGET (_tmp2_) ? ((GtkWidget*) _tmp2_) : NULL);
+ _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GTK_TYPE_WIDGET) ? ((GtkWidget*) _tmp2_)
: NULL);
widget = _tmp3_;
_tmp4_ = builder;
_tmp5_ = gtk_builder_get_object (_tmp4_, "iconview");
- _tmp6_ = _g_object_ref0 (GTK_IS_ICON_VIEW (_tmp5_) ? ((GtkIconView*) _tmp5_) : NULL);
+ _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, GTK_TYPE_ICON_VIEW) ? ((GtkIconView*)
_tmp5_) : NULL);
iconview = _tmp6_;
_tmp7_ = builder;
_tmp8_ = gtk_builder_get_object (_tmp7_, "liststore");
- _tmp9_ = _g_object_ref0 (GTK_IS_LIST_STORE (_tmp8_) ? ((GtkListStore*) _tmp8_) : NULL);
+ _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, GTK_TYPE_LIST_STORE) ? ((GtkListStore*)
_tmp8_) : NULL);
_g_object_unref0 (self->priv->liststore);
self->priv->liststore = _tmp9_;
_tmp10_ = vala_dmap_db_new ();
@@ -495,7 +495,7 @@ static void dpap_viewer_instance_init (DPAPViewer * self) {
static void dpap_viewer_finalize (DPAPViewer* obj) {
DPAPViewer * self;
- self = DPAP_VIEWER (obj);
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DPAP_VIEWER, DPAPViewer);
_g_object_unref0 (self->priv->browser);
_g_object_unref0 (self->priv->connection);
_g_object_unref0 (self->priv->liststore);
diff --git a/tests/vala-dmap-container-db.c b/tests/vala-dmap-container-db.c
index 53411b6..de6e922 100644
--- a/tests/vala-dmap-container-db.c
+++ b/tests/vala-dmap-container-db.c
@@ -1,4 +1,4 @@
-/* vala-dmap-container-db.c generated by valac 0.14.2, the Vala compiler
+/* vala-dmap-container-db.c generated by valac 0.18.1, the Vala compiler
* generated from vala-dmap-container-db.vala, do not modify */
/* FILE: vala-dmap-db.vala -- A DMAPContainerDb implementation in Vala
@@ -183,14 +183,14 @@ static void vala_dmap_container_db_dmap_container_db_interface_init (DMAPContain
static void vala_dmap_container_db_instance_init (ValaDMAPContainerDb * self) {
GeeArrayList* _tmp0_;
self->priv = VALA_DMAP_CONTAINER_DB_GET_PRIVATE (self);
- _tmp0_ = gee_array_list_new (DMAP_TYPE_RECORD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
+ _tmp0_ = gee_array_list_new (DMAP_TYPE_RECORD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL,
NULL, NULL);
self->priv->db = _tmp0_;
}
static void vala_dmap_container_db_finalize (GObject* obj) {
ValaDMAPContainerDb * self;
- self = VALA_DMAP_CONTAINER_DB (obj);
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VALA_DMAP_CONTAINER_DB, ValaDMAPContainerDb);
_g_object_unref0 (self->priv->db);
G_OBJECT_CLASS (vala_dmap_container_db_parent_class)->finalize (obj);
}
diff --git a/tests/vala-dmap-db.c b/tests/vala-dmap-db.c
index 84e412f..d267d03 100644
--- a/tests/vala-dmap-db.c
+++ b/tests/vala-dmap-db.c
@@ -1,4 +1,4 @@
-/* vala-dmap-db.c generated by valac 0.14.2, the Vala compiler
+/* vala-dmap-db.c generated by valac 0.18.1, the Vala compiler
* generated from vala-dmap-db.vala, do not modify */
/* FILE: vala-dmap-db.vala -- A DMAPDb implementation in Vala
@@ -89,7 +89,7 @@ static guint vala_dmap_db_real_add (DMAPDb* base, DMAPRecord* record) {
g_return_val_if_fail (record != NULL, 0U);
_tmp0_ = self->priv->db;
_tmp1_ = record;
- gee_abstract_collection_add ((GeeAbstractCollection*) _tmp0_, DMAP_RECORD (_tmp1_));
+ gee_abstract_collection_add ((GeeAbstractCollection*) _tmp0_, G_TYPE_CHECK_INSTANCE_CAST (_tmp1_,
DMAP_TYPE_RECORD, DMAPRecord));
_tmp2_ = self->priv->db;
_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
_tmp4_ = _tmp3_;
@@ -240,14 +240,14 @@ static void vala_dmap_db_dmap_db_interface_init (DMAPDbIface * iface) {
static void vala_dmap_db_instance_init (ValaDMAPDb * self) {
GeeArrayList* _tmp0_;
self->priv = VALA_DMAP_DB_GET_PRIVATE (self);
- _tmp0_ = gee_array_list_new (DMAP_TYPE_RECORD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
+ _tmp0_ = gee_array_list_new (DMAP_TYPE_RECORD, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL,
NULL, NULL);
self->priv->db = _tmp0_;
}
static void vala_dmap_db_finalize (GObject* obj) {
ValaDMAPDb * self;
- self = VALA_DMAP_DB (obj);
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VALA_DMAP_DB, ValaDMAPDb);
_g_object_unref0 (self->priv->db);
G_OBJECT_CLASS (vala_dmap_db_parent_class)->finalize (obj);
}
diff --git a/tests/vala-dpap-record.c b/tests/vala-dpap-record.c
index 69b9263..5df0474 100644
--- a/tests/vala-dpap-record.c
+++ b/tests/vala-dpap-record.c
@@ -1,4 +1,4 @@
-/* vala-dpap-record.c generated by valac 0.14.2, the Vala compiler
+/* vala-dpap-record.c generated by valac 0.18.1, the Vala compiler
* generated from vala-dpap-record.vala, do not modify */
/* FILE: vala-dpap-record.vala -- A DPAPRecord implementation in Vala
@@ -539,7 +539,7 @@ static void vala_dpap_record_instance_init (ValaDPAPRecord * self) {
static void vala_dpap_record_finalize (GObject* obj) {
ValaDPAPRecord * self;
- self = VALA_DPAP_RECORD (obj);
+ self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VALA_DPAP_RECORD, ValaDPAPRecord);
_g_free0 (self->priv->_location);
_g_free0 (self->priv->_filename);
_g_free0 (self->priv->_aspect_ratio);
@@ -568,7 +568,7 @@ GType vala_dpap_record_get_type (void) {
static void _vala_vala_dpap_record_get_property (GObject * object, guint property_id, GValue * value,
GParamSpec * pspec) {
ValaDPAPRecord * self;
- self = VALA_DPAP_RECORD (object);
+ self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_VALA_DPAP_RECORD, ValaDPAPRecord);
switch (property_id) {
case VALA_DPAP_RECORD_LOCATION:
g_value_set_string (value, vala_dpap_record_get_location (self));
@@ -612,7 +612,7 @@ static void _vala_vala_dpap_record_get_property (GObject * object, guint propert
static void _vala_vala_dpap_record_set_property (GObject * object, guint property_id, const GValue * value,
GParamSpec * pspec) {
ValaDPAPRecord * self;
- self = VALA_DPAP_RECORD (object);
+ self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_VALA_DPAP_RECORD, ValaDPAPRecord);
switch (property_id) {
case VALA_DPAP_RECORD_LOCATION:
vala_dpap_record_set_location (self, g_value_get_string (value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]