Make g_object_get_data use the new faster g_datalist_get_data

https://bugzilla.gnome.org/show_bug.cgi?id=650458
This commit is contained in:
Alexander Larsson 2011-05-19 21:55:16 +02:00 committed by Matthias Clasen
parent 1cceda49b6
commit 0a918c0d2a

View File

@ -2938,14 +2938,10 @@ gpointer
g_object_get_data (GObject *object,
const gchar *key)
{
GQuark quark;
g_return_val_if_fail (G_IS_OBJECT (object), NULL);
g_return_val_if_fail (key != NULL, NULL);
quark = g_quark_try_string (key);
return quark ? g_datalist_id_get_data (&object->qdata, quark) : NULL;
return g_datalist_get_data (&object->qdata, key);
}
/**