[gnome-panel/wip/gnome-3.10+] panel-widget: don't use deprecated gtk_widget_reparent
- From: Alberts MuktupÄvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/gnome-3.10+] panel-widget: don't use deprecated gtk_widget_reparent
- Date: Sat, 11 Oct 2014 23:27:22 +0000 (UTC)
commit 438939d5d7a319d2b9f7232b1e28376be26d6d35
Author: Alberts MuktupÄvels <alberts muktupavels gmail com>
Date: Sun Oct 12 00:11:36 2014 +0300
panel-widget: don't use deprecated gtk_widget_reparent
gnome-panel/panel-widget.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index c76b68a..76d6305 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -2487,7 +2487,8 @@ 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_widget_reparent (applet, GTK_WIDGET (new_panel));
+ gtk_container_remove (GTK_CONTAINER (old_panel), applet);
+ gtk_container_add (GTK_CONTAINER (new_panel), applet);
if (info && info->type == PANEL_OBJECT_APPLET)
panel_applet_frame_set_panel (PANEL_APPLET_FRAME (ad->applet), new_panel);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]