[gnome-control-center] shell: Fix resizing when switching from panel to panel



commit 0a918a27aadcb9f8e4dd9fa6ccb786829629f375
Author: Gerd Kohlberger <gerdk src gnome org>
Date:   Thu Mar 17 01:02:16 2011 +0100

    shell: Fix resizing when switching from panel to panel
    
    set_active_panel_from_id doesn't remove the active
    panel from the notebook before adding a new one. After that the shell
    window can't shrink below the size of the original panel.
    
    This might also cause crashers as some parts of the panel are left
    alive, behind another notebook tab, ready to receive signals.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636596

 shell/gnome-control-center.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 7d8d930..b577bf0 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -776,6 +776,8 @@ _shell_set_active_panel_from_id (CcShell      *shell,
     }
   else
     {
+      gtk_notebook_remove_page (GTK_NOTEBOOK (priv->notebook), CAPPLET_PAGE);
+
       activate_panel (GNOME_CONTROL_CENTER (shell), start_id, desktop, name,
                       icon_name);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]