cellarea: Fix warning messages to display the right type

The warning displayed the type of the area instead of the cell
renderer's type before.
This commit is contained in:
Benjamin Otte 2011-05-02 18:36:14 +02:00
parent fb3c16b7ad
commit b102df5370

View File

@ -2266,7 +2266,7 @@ gtk_cell_area_attribute_connect (GtkCellArea *area,
g_warning ("Cannot connect attribute `%s' for cell renderer class `%s' "
"since `%s' is already attributed to column %d",
attribute,
g_type_name (G_TYPE_FROM_INSTANCE (area)),
G_OBJECT_TYPE_NAME (renderer),
attribute, cell_attribute->column);
return;
}
@ -2279,7 +2279,7 @@ gtk_cell_area_attribute_connect (GtkCellArea *area,
g_warning ("Cannot connect attribute `%s' for cell renderer class `%s' "
"since attribute does not exist",
attribute,
g_type_name (G_TYPE_FROM_INSTANCE (area)));
G_OBJECT_TYPE_NAME (renderer));
return;
}