Commit 69cef3c9 authored by Matthias Clasen's avatar Matthias Clasen

tests: Adapt to gtk_widget_reparent deprecations

parent cbb5e27b
......@@ -2092,7 +2092,9 @@ reparent_label (GtkWidget *widget,
label = g_object_get_data (G_OBJECT (widget), "user_data");
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_reparent (label, new_parent);
G_GNUC_END_IGNORE_DEPRECATIONS
}
static void
......@@ -3734,7 +3736,9 @@ static gulong sw_destroyed_handler = 0;
static gboolean
scrolled_windows_delete_cb (GtkWidget *widget, GdkEventAny *event, GtkWidget *scrollwin)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_reparent (scrollwin, sw_parent);
G_GNUC_END_IGNORE_DEPRECATIONS
g_signal_handler_disconnect (sw_parent, sw_destroyed_handler);
sw_float_parent = NULL;
......@@ -3765,7 +3769,9 @@ scrolled_windows_remove (GtkWidget *dialog, gint response, GtkWidget *scrollwin)
if (sw_parent)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_reparent (scrollwin, sw_parent);
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_widget_destroy (sw_float_parent);
g_signal_handler_disconnect (sw_parent, sw_destroyed_handler);
......@@ -3782,7 +3788,9 @@ scrolled_windows_remove (GtkWidget *dialog, gint response, GtkWidget *scrollwin)
gtk_window_set_default_size (GTK_WINDOW (sw_float_parent), 200, 200);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_reparent (scrollwin, sw_float_parent);
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_widget_show (sw_float_parent);
sw_destroyed_handler =
......
......@@ -20,7 +20,9 @@ remove_this_row (GtkButton *button, GtkWidget *child)
revealer = gtk_revealer_new ();
gtk_revealer_set_reveal_child (GTK_REVEALER (revealer), TRUE);
gtk_widget_show (revealer);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_reparent (child, revealer);
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_container_add (GTK_CONTAINER (row), revealer);
g_signal_connect (revealer, "notify::child-revealed",
G_CALLBACK (row_unrevealed), NULL);
......
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