From 1112319594f210b0c6727d4657bc5b70de4168ab Mon Sep 17 00:00:00 2001 From: yetist Date: Thu, 18 Jun 2015 23:34:16 +0800 Subject: Gtk3: Don't use deprecated gtk_widget_reparent --- mate-panel/panel-widget.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mate-panel') diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c index 30e55f9c..9dd01d24 100644 --- a/mate-panel/panel-widget.c +++ b/mate-panel/panel-widget.c @@ -2816,7 +2816,12 @@ 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); -- cgit v1.2.1