From: Emmanuele Bassi Date: Sat, 4 Jul 2015 18:30:22 +0000 (+0100) Subject: container: Update the add() warning X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~9152 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c5a250ce379357ff3cccd8b5352af36c21fe7465;p=gtk4.git container: Update the add() warning Now that gtk_widget_reparent() has been deprecated, we should not suggest it. --- diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index fcb8ed1b53..1c06579316 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -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)));