[gtk+/gtk-3-16] container: Update the add() warning

commit 9ff88ce2c7a44484c9898ba6f1be9ada72d93b94
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Jul 4 19:30:22 2015 +0100

    container: Update the add() warning
    Now that gtk_widget_reparent() has been deprecated, we should not
    suggest it.

 gtk/gtkcontainer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 0ec29c7..8015300 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -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)));

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]