diff options
-rw-r--r-- | mate-panel/panel-widget.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c index 9dd01d24..bd25fc89 100644 --- a/mate-panel/panel-widget.c +++ b/mate-panel/panel-widget.c @@ -2816,12 +2816,9 @@ panel_widget_reparent (PanelWidget *old_panel, panel_widget_reset_saved_focus (old_panel); if (gtk_container_get_focus_child (GTK_CONTAINER (old_panel)) == applet) focus_widget = gtk_window_get_focus (GTK_WINDOW (old_panel->toplevel)); -#if GTK_CHECK_VERSION(3, 14, 0) + gtk_container_remove (GTK_CONTAINER(old_panel), applet); gtk_container_add (GTK_CONTAINER(new_panel), applet); -#else - gtk_widget_reparent (applet, GTK_WIDGET (new_panel)); -#endif if (info && info->type == PANEL_OBJECT_APPLET) mate_panel_applet_frame_set_panel (MATE_PANEL_APPLET_FRAME (ad->applet), new_panel); |