mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
When adding ancestral prerequisites, add the grandparents, not the
Thu Jul 25 20:34:39 2002 Owen Taylor <otaylor@redhat.com> * gtype.c (g_type_interface_add_prerequisite): When adding ancestral prerequisites, add the grandparents, not the siblings. (Problem found by Jon Trowbridge, patch from Dave Camp, #86879)
This commit is contained in:
parent
bedbbabba7
commit
bd76d64106
@ -1,3 +1,10 @@
|
|||||||
|
Thu Jul 25 20:34:39 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtype.c (g_type_interface_add_prerequisite): When
|
||||||
|
adding ancestral prerequisites, add the grandparents,
|
||||||
|
not the siblings. (Problem found by Jon Trowbridge, patch from
|
||||||
|
Dave Camp, #86879)
|
||||||
|
|
||||||
2002-07-05 Anders Carlsson <andersca@gnu.org>
|
2002-07-05 Anders Carlsson <andersca@gnu.org>
|
||||||
|
|
||||||
* gobject.c (g_object_base_class_finalize): Remove debugging
|
* gobject.c (g_object_base_class_finalize): Remove debugging
|
||||||
|
@ -1202,13 +1202,12 @@ g_type_interface_add_prerequisite (GType interface_type,
|
|||||||
}
|
}
|
||||||
else if (NODE_IS_IFACE (prerequisite_node))
|
else if (NODE_IS_IFACE (prerequisite_node))
|
||||||
{
|
{
|
||||||
GType *dependants;
|
GType *prerequisites;
|
||||||
guint n_dependants, i;
|
guint i;
|
||||||
|
|
||||||
dependants = iface_node_get_dependants_array_L (prerequisite_node);
|
prerequisites = IFACE_NODE_PREREQUISITES (prerequisite_node);
|
||||||
n_dependants = dependants ? dependants[0] : 0;
|
for (i = 0; i < IFACE_NODE_N_PREREQUISITES (prerequisite_node); i++)
|
||||||
for (i = 1; i <= n_dependants; i++)
|
type_iface_add_prerequisite_W (iface, lookup_type_node_I (prerequisites[i]));
|
||||||
type_iface_add_prerequisite_W (iface, lookup_type_node_I (dependants[i]));
|
|
||||||
type_iface_add_prerequisite_W (iface, prerequisite_node);
|
type_iface_add_prerequisite_W (iface, prerequisite_node);
|
||||||
G_WRITE_UNLOCK (&type_rw_lock);
|
G_WRITE_UNLOCK (&type_rw_lock);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user