[gnome-control-center/gnome-3-8] Shell: Go back to overview when setting panel to NULL



commit 5992bbffd46facd9a73318d5e8e40f18f5dc6501
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Mon Jun 10 14:38:59 2013 +0200

    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

 shell/cc-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 95aa007..2de7cd3 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -1070,6 +1070,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");
     }
 }


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