container: Update the add() warning

Now that gtk_widget_reparent() has been deprecated, we should not
suggest it.
This commit is contained in:
Emmanuele Bassi
2015-07-04 19:30:22 +01:00
committed by Matthias Clasen
parent d509888580
commit 9ff88ce2c7

View File

@@ -1689,7 +1689,7 @@ gtk_container_add (GtkContainer *container,
{
g_warning ("Attempting to add a widget with type %s to a container of "
"type %s, but the widget is already inside a container of type %s, "
"please use gtk_widget_reparent()" ,
"please remove the widget from its existing container first." ,
g_type_name (G_OBJECT_TYPE (widget)),
g_type_name (G_OBJECT_TYPE (container)),
g_type_name (G_OBJECT_TYPE (parent)));