soylent r160 - trunk/libsoylent
- From: svenp svn gnome org
- To: svn-commits-list gnome org
- Subject: soylent r160 - trunk/libsoylent
- Date: Sat, 14 Jun 2008 15:18:17 +0000 (UTC)
Author: svenp
Date: Sat Jun 14 15:18:16 2008
New Revision: 160
URL: http://svn.gnome.org/viewvc/soylent?rev=160&view=rev
Log:
fixed: overriding of GObject class methods was broken
Modified:
trunk/libsoylent/sl-book.c
trunk/libsoylent/soylent-entity.c
Modified: trunk/libsoylent/sl-book.c
==============================================================================
--- trunk/libsoylent/sl-book.c (original)
+++ trunk/libsoylent/sl-book.c Sat Jun 14 15:18:16 2008
@@ -75,9 +75,10 @@
parent_class = g_type_class_peek (g_type_parent (SL_BOOK_TYPE));
g_assert (parent_class != NULL);
- parent_class->dispose = sl_book_dispose;
- parent_class->get_property = sl_book_get_property;
- parent_class->set_property = sl_book_set_property;
+ GObjectClass *obj_class = G_OBJECT_CLASS (g_class);
+ obj_class->dispose = sl_book_dispose;
+ obj_class->get_property = sl_book_get_property;
+ obj_class->set_property = sl_book_set_property;
}
static void
Modified: trunk/libsoylent/soylent-entity.c
==============================================================================
--- trunk/libsoylent/soylent-entity.c (original)
+++ trunk/libsoylent/soylent-entity.c Sat Jun 14 15:18:16 2008
@@ -43,9 +43,10 @@
parent_class = g_type_class_peek(g_type_parent(SOYLENT_ENTITY_TYPE));
g_assert(parent_class != NULL);
- parent_class->dispose = _soylent_entity_dispose;
- parent_class->set_property = _soylent_entity_set_property;
- parent_class->get_property = _soylent_entity_get_property;
+ GObjectClass *obj_class = G_OBJECT_CLASS (g_class);
+ obj_class->dispose = _soylent_entity_dispose;
+ obj_class->get_property = _soylent_entity_get_property;
+ obj_class->set_property = _soylent_entity_set_property;
}
static void _soylent_entity_init(GTypeInstance *instance, gpointer g_class) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]