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



commit deadd4d82380e62e0d8f10218228d71fbb1bfbae
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 c087f0a..05f1441 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 ba3b8ba..19f5577 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]