[gtk+] API: Deprecate gtk_widget_reparent()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] API: Deprecate gtk_widget_reparent()
- Date: Sat, 17 May 2014 21:37:17 +0000 (UTC)
commit 2a99584c68c41b8ff2df521700d1e1a79e3de66f
Author: Benjamin Otte <otte redhat com>
Date: Sat May 17 20:37:54 2014 +0200
API: Deprecate gtk_widget_reparent()
gtk/gtkmenu.c | 6 +++++-
gtk/gtkwidget.c | 2 ++
gtk/gtkwidget.h | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 59467e5..847f3cf 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -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);
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index eed242b..3ceb508 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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,
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 9e2a4a4..6aa4ffc 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]