repository: Fix g_irepository_get_c_prefix()

It was returning the wrong data.

https://bugzilla.gnome.org/show_bug.cgi?id=659749
This commit is contained in:
Colin Walters 2011-09-21 13:13:45 -04:00
parent 87fd1d5dad
commit 11cf4c56f3

View File

@ -929,7 +929,7 @@ g_irepository_get_c_prefix (GIRepository *repository,
g_return_val_if_fail (typelib != NULL, NULL);
header = (Header *) typelib->data;
if (header->shared_library)
if (header->c_prefix)
return g_typelib_get_string (typelib, header->c_prefix);
else
return NULL;