summaryrefslogtreecommitdiff
path: root/shell/cc-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/cc-window.c')
-rw-r--r--shell/cc-window.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 3c5161c36..d7a114093 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -350,9 +350,6 @@ set_active_panel_from_id (CcShell *shell,
return TRUE;
}
- /* clear any custom widgets */
- remove_all_custom_widgets (self);
-
iter_valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (self->store), &iter);
/* find the details for this item */
@@ -385,12 +382,18 @@ set_active_panel_from_id (CcShell *shell,
}
/* Activate the panel */
- activated = activate_panel (CC_WINDOW (shell), start_id, parameters, name, gicon);
+ activated = activate_panel (CC_WINDOW (shell), start_id, parameters, name, gicon, visibility);
/* Failed to activate the panel for some reason, let's keep the old
* panel around instead */
if (!activated)
- return TRUE;
+ {
+ g_debug ("Failed to activate panel");
+ return TRUE;
+ }
+
+ /* clear any custom widgets */
+ remove_all_custom_widgets (self);
/* Successful activation */
g_free (self->current_panel_id);