widget: Remove reparent special case

Since gtk_widget_reparent doesn't exist anymore, we can also remove this
special case.
This commit is contained in:
Timm Bäder 2018-01-16 14:50:50 +01:00
parent d3329bb36b
commit 229ef9d776

View File

@ -7575,16 +7575,7 @@ gtk_widget_propagate_hierarchy_changed_recurse (GtkWidget *widget,
priv->anchored = new_anchored;
/* This can only happen with gtk_widget_reparent() */
if (priv->realized)
{
if (new_anchored)
gtk_widget_connect_frame_clock (widget,
gtk_widget_get_frame_clock (widget));
else
gtk_widget_disconnect_frame_clock (widget,
gtk_widget_get_frame_clock (info->previous_toplevel));
}
g_assert (!priv->realized);
g_signal_emit (widget, widget_signals[HIERARCHY_CHANGED], 0, info->previous_toplevel);
do_display_change (widget, info->previous_display, info->new_display);