gobject-introspection r729 - in trunk: . girepository
- From: tko svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r729 - in trunk: . girepository
- Date: Thu, 16 Oct 2008 17:07:00 +0000 (UTC)
Author: tko
Date: Thu Oct 16 17:07:00 2008
New Revision: 729
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=729&view=rev
Log:
2008-10-16 Tommi Komulainen <tommi komulainen iki fi>
Bug 556541 â access union members through UnionBlob rather than
StructBlob
* girepository/ginfo.c (g_union_info_find_method): access union
members through UnionBlob rather than StructBlob
Modified:
trunk/ChangeLog
trunk/girepository/ginfo.c
Modified: trunk/girepository/ginfo.c
==============================================================================
--- trunk/girepository/ginfo.c (original)
+++ trunk/girepository/ginfo.c Thu Oct 16 17:07:00 2008
@@ -1846,11 +1846,11 @@
gint offset;
GIBaseInfo *base = (GIBaseInfo *)info;
Header *header = (Header *)base->typelib->data;
- StructBlob *blob = (UnionBlob *)&base->typelib->data[base->offset];
+ UnionBlob *blob = (UnionBlob *)&base->typelib->data[base->offset];
offset = base->offset + header->union_blob_size
+ blob->n_fields * header->field_blob_size;
- return find_method (base, offset, blob->n_methods, name);
+ return find_method (base, offset, blob->n_functions, name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]