Fix build

This commit is contained in:
Robert Carr 2009-02-12 09:51:16 -05:00
parent fe8c6d34c4
commit cd46d2fa0b

View File

@ -652,14 +652,14 @@ g_irepository_find_by_gtype (GIRepository *repository,
repository = get_repository (repository);
data.iface = g_hash_table_lookup (repository->priv->info_by_gtype,
(gpointer)type);
(gpointer)gtype);
if (data.iface)
return g_base_info_ref (data.iface);
data.repo = repository;
data.name = NULL;
data.type = g_type_name (type);
data.type = g_type_name (gtype);
data.index = -1;
data.iface = NULL;
@ -668,7 +668,7 @@ g_irepository_find_by_gtype (GIRepository *repository,
if (data.iface)
g_hash_table_insert (repository->priv->info_by_gtype,
(gpointer) type,
(gpointer) gtype,
g_base_info_ref (data.iface));