[gnome-shell/wip/message-tray: 6/17] messageTray: Use the standard :hover pseudo-class



commit b70a7b2af51ed7398d9e4166aa3209f54b7eebdd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jul 30 20:12:17 2012 -0300

    messageTray: Use the standard :hover pseudo-class
    
    There's no sense in doing our own hover tracking

 data/theme/gnome-shell.css |    2 +-
 js/ui/messageTray.js       |   13 -------------
 2 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 894dec7..2de8163 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1397,7 +1397,7 @@ StButton.popup-menu-item:insensitive {
     transition-duration: 100;
 }
 
-.summary-source-button:hovered {
+.summary-source-button:hover {
     background-color: rgba(255,255,255,0.1);
     border-radius: 4px;
 }
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index acacf5a..dfc22e3 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1633,11 +1633,6 @@ const MessageTray = new Lang.Class({
                     });
             }));
 
-        summaryItem.actor.connect('notify::hover', Lang.bind(this,
-            function () {
-                this._onSummaryItemHoverChanged(summaryItem);
-            }));
-
         summaryItem.actor.connect('clicked', Lang.bind(this,
             function (actor, button) {
                 this._onSummaryItemClicked(summaryItem, button);
@@ -1780,14 +1775,6 @@ const MessageTray = new Lang.Class({
         this._updateState();
     },
 
-    _onSummaryItemHoverChanged: function(summaryItem) {
-        if (summaryItem.actor.hover)
-            summaryItem.actor.add_style_pseudo_class('hovered');
-        else
-            summaryItem.actor.remove_style_pseudo_class('hovered');
-    },
-
-
     _onSummaryItemClicked: function(summaryItem, button) {
         if (summaryItem.source.handleSummaryClick())
             this._unsetClickedSummaryItem();



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