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
parent bea3cbaba5
commit c5a250ce37

View File

@ -1744,7 +1744,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)));