[gnome-shell/wip/message-tray: 6/22] messageTray: Use the standard :hover pseudo-class
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 6/22] messageTray: Use the standard :hover pseudo-class
- Date: Mon, 13 Aug 2012 20:28:43 +0000 (UTC)
commit 3626eb0650ff923960a1ffd5472b0a3e64d723d3
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 78ffa84..dfa0e3c 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 714e8f2..5794a18 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1632,11 +1632,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);
@@ -1779,14 +1774,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]