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



commit f1d784a64198c5d6019d22ad99b728478c03db2c
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 88958a5..b062557 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 f626316..d5b75df 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1631,11 +1631,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);
@@ -1770,14 +1765,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]