summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-06-10 14:38:59 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-06-14 11:51:47 +0200
commit2f2c29ebff0cf701390dd6f9ae6c9832fead8888 (patch)
tree196890977039573221236fb865b5bba95a8c3ab5 /shell
parent27371a542a5d88cddfc8f32dd686ce08a1e37fdb (diff)
downloadgnome-control-center-2f2c29ebff0cf701390dd6f9ae6c9832fead8888.tar.gz
Shell: Go back to overview when setting panel to NULL
This is what cc_shell_set_active_panel()'s doc says it is supposed to do. https://bugzilla.gnome.org/show_bug.cgi?id=701929
Diffstat (limited to 'shell')
-rw-r--r--shell/cc-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 78b6cdd93..739443640 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -1069,6 +1069,10 @@ set_active_panel (CcWindow *shell,
{
shell->priv->active_panel = g_object_ref (panel);
}
+ else
+ {
+ shell_show_overview_page (shell);
+ }
g_object_notify (G_OBJECT (shell), "active-panel");
}
}