summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-10-26 15:30:46 +0300
committerMonsta <[email protected]>2015-10-26 15:43:01 +0300
commit024f89bc7c8074f753120d9c8ec4bd839745984b (patch)
tree4a51a9f1f5c58086649c74a2feff736c95bd50df
parent37c008faa299f248d2ef4067e59132b854732331 (diff)
downloadmate-panel-024f89bc7c8074f753120d9c8ec4bd839745984b.tar.bz2
mate-panel-024f89bc7c8074f753120d9c8ec4bd839745984b.tar.xz
bring back good old deprecated function which works perfectly
thanks to some genius from gnome team, we're now supposed to re-implement gtk_widget_reparent from scratch in every place we need to move a widget between containers. thanks but no thanks. don't fix what's not broken. fixes #360
-rw-r--r--mate-panel/panel-widget.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index bd25fc89..30e55f9c 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -2816,9 +2816,7 @@ 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));
-
- gtk_container_remove (GTK_CONTAINER(old_panel), applet);
- gtk_container_add (GTK_CONTAINER(new_panel), applet);
+ gtk_widget_reparent (applet, GTK_WIDGET (new_panel));
if (info && info->type == PANEL_OBJECT_APPLET)
mate_panel_applet_frame_set_panel (MATE_PANEL_APPLET_FRAME (ad->applet), new_panel);