Commit 2a99584c authored by Benjamin Otte's avatar Benjamin Otte

API: Deprecate gtk_widget_reparent()

parent 2b032344
......@@ -5051,7 +5051,11 @@ gtk_menu_reparent (GtkMenu *menu,
g_object_unref (object);
}
else
gtk_widget_reparent (widget, new_parent);
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_widget_reparent (widget, new_parent);
G_GNUC_END_IGNORE_DEPRECATIONS;
}
if (was_floating)
g_object_force_floating (object);
......
......@@ -7381,6 +7381,8 @@ gtk_widget_reparent_fixup_child (GtkWidget *widget,
*
* Moves a widget from one #GtkContainer to another, handling reference
* count issues to avoid destroying the widget.
*
* @Deprecated: 3.14. Use gtk_container_remove() and gtk_container_add().
**/
void
gtk_widget_reparent (GtkWidget *widget,
......
......@@ -769,7 +769,7 @@ gboolean gtk_widget_send_focus_change (GtkWidget *widget,
GDK_AVAILABLE_IN_ALL
gboolean gtk_widget_activate (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_3_14
void gtk_widget_reparent (GtkWidget *widget,
GtkWidget *new_parent);
GDK_AVAILABLE_IN_ALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment