[gnome-shell/wip/fmuellner/notification-redux+sass: 40/122] dateMenu: Some minor fixes



commit 7f21f51cedfe647ff4f4a20fe96ba8109cd01e61
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 11 23:21:17 2015 +0100

    dateMenu: Some minor fixes

 js/ui/dateMenu.js |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 93f5318..4fe679c 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -100,7 +100,8 @@ const WorldClocksSection = new Lang.Class({
         this._locations = [];
 
         this.actor = new St.Button({ style_class: 'world-clocks-button',
-                                     x_fill: true });
+                                     x_fill: true,
+                                     can_focus: true });
         this.actor.connect('clicked', Lang.bind(this,
             function() {
                 let app = this._getClockApp();
@@ -290,9 +291,6 @@ const DateMenuButton = new Lang.Class({
         this._sessionUpdated();
     },
 
-    _updateEventsVisibility: function() {
-    },
-
     _getEventSource: function() {
         return new Calendar.DBusEventSource();
     },
@@ -305,9 +303,6 @@ const DateMenuButton = new Lang.Class({
         this._messageList.setEventSource(eventSource);
 
         this._eventSource = eventSource;
-        this._eventSource.connect('notify::has-calendars', Lang.bind(this, function() {
-            this._updateEventsVisibility();
-        }));
     },
 
     _sessionUpdated: function() {
@@ -319,6 +314,5 @@ const DateMenuButton = new Lang.Class({
             eventSource = new Calendar.EmptyEventSource();
         }
         this._setEventSource(eventSource);
-        this._updateEventsVisibility();
     }
 });


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