[glib] Fix g_type_add_class_private() name in g_warning
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix g_type_add_class_private() name in g_warning
- Date: Mon, 17 Dec 2012 15:26:59 +0000 (UTC)
commit b055c828152b01d4e00182b24dc841136f50b4e1
Author: Christophe Fergeau <cfergeau redhat com>
Date: Mon Dec 17 14:58:04 2012 +0100
Fix g_type_add_class_private() name in g_warning
When g_type_class_get_private is called without calling
g_type_add_class_private first, a g_warning is issued, but
the name of the function to call is wrong:
g_type_class_add_class_private.
https://bugzilla.gnome.org/show_bug.cgi?id=690348
gobject/gtype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index d02aece..6fc5d46 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -4671,7 +4671,7 @@ g_type_class_get_private (GTypeClass *klass,
if (G_UNLIKELY (private_node->data->class.class_private_size == parent_node->data->class.class_private_size))
{
- g_warning ("g_type_instance_get_class_private() requires a prior call to g_type_class_add_class_private()");
+ g_warning ("g_type_instance_get_class_private() requires a prior call to g_type_add_class_private()");
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]