[Pkg-mozext-commits] [firetray] 160/399: actually take the scroll_hides pref into account

David Prévot taffit at alioth.debian.org
Tue Oct 29 18:23:34 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch dfsg-clean
in repository firetray.

commit 74f7f263d155dc803db4178152309b7f283b341d
Author: foudfou <foudil.newbie+git at gmail.com>
Date:   Wed Feb 1 22:39:21 2012 +0100

    actually take the scroll_hides pref into account
---
 src/modules/gtk2/FiretrayStatusIcon.jsm |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/gtk2/FiretrayStatusIcon.jsm b/src/modules/gtk2/FiretrayStatusIcon.jsm
index 7174ac8..337d2cc 100644
--- a/src/modules/gtk2/FiretrayStatusIcon.jsm
+++ b/src/modules/gtk2/FiretrayStatusIcon.jsm
@@ -75,6 +75,9 @@ firetray.StatusIcon = {
   },
 
   onScroll: function(icon, event, data) {
+    if (!firetray.Utils.prefService.getBoolPref("scroll_hides"))
+      return;
+
     let iconGpointer = ctypes.cast(icon, gobject.gpointer);
     let gdkEventScroll = ctypes.cast(event, gdk.GdkEventScroll.ptr);
     let scroll_mode = firetray.Utils.prefService.getCharPref("scroll_mode");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git



More information about the Pkg-mozext-commits mailing list