container: Update the add() warning
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 4 Jul 2015 18:30:22 +0000 (19:30 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 4 Jul 2015 18:34:23 +0000 (19:34 +0100)
Now that gtk_widget_reparent() has been deprecated, we should not
suggest it.

gtk/gtkcontainer.c

index fcb8ed1b531b28d1f3b430b0f23389a0b04e2d3a..1c0657931606d557d6bbd220e9f54b79d746edde 100644 (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)));