[gnome-shell/wip/fmuellner/notification-redux: 58/88] calendar: Close calendar/overview when opening section



commit 9632bdd18e7c18c4a09068b3b12df44f8608c512
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 13 12:16:59 2015 +0100

    calendar: Close calendar/overview when opening section

 js/ui/calendar.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 643dc44..17210d1 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1309,6 +1309,7 @@ const NotificationSection = new Lang.Class({
         }
 
         Main.overview.hide();
+        Main.panel.closeCalendar();
         app.activate();
     },
 
@@ -1420,6 +1421,9 @@ const EventsSection = new Lang.Class({
         let app = this._getCalendarApp();
         if (app.get_id() == 'evolution.desktop')
             app = Gio.DesktopAppInfo.new('evolution-calendar.desktop');
+
+        Main.panel.closeCalendar();
+        Main.overview.hide();
         app.launch([], global.create_app_launch_context(0, -1));
     },
 


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