[gnome-shell] dateMenu: Include "Today" button in keynav



commit be52ad999f4fa42c12cf85d637ef915d93b59de2
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Feb 21 20:09:56 2015 +0100

    dateMenu: Include "Today" button in keynav
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706903

 js/ui/dateMenu.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 4316006..f3c374d 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -37,6 +37,7 @@ const TodayButton = new Lang.Class({
         // until the selected date changes.
         this.actor = new St.Button({ style_class: 'datemenu-today-button',
                                      x_align: St.Align.START,
+                                     can_focus: true,
                                      reactive: false
                                    });
         this.actor.connect('clicked', Lang.bind(this,
@@ -59,7 +60,7 @@ const TodayButton = new Lang.Class({
             function(calendar, date) {
                 // Make the button reactive only if the selected date is not the
                 // current date.
-                this.actor.can_focus = this.actor.reactive = !_isToday(date)
+                this.actor.reactive = !_isToday(date)
             }));
     },
 


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