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



commit 074305b7ef818e636f5543bdf9a6bdaa8ba7006a
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]