[Pkg-mozext-commits] [firetray] 71/84: Don't fallback on FindWindow() when loading the default icon (winnt).
David Prévot
taffit at moszumanska.debian.org
Sun Jul 20 01:42:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firetray.
commit e4419c47f7d83e23e75b4c2adef411e8adcb29dd
Author: foudfou <foudil.newbie+git at gmail.com>
Date: Thu Jun 5 12:14:08 2014 +0200
Don't fallback on FindWindow() when loading the default icon (winnt).
The minimal supported platformVersion for winnt is 27.0 where nativeHandle is
provided.
---
src/modules/winnt/FiretrayStatusIcon.jsm | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/modules/winnt/FiretrayStatusIcon.jsm b/src/modules/winnt/FiretrayStatusIcon.jsm
index 3803d1b..f2acb10 100644
--- a/src/modules/winnt/FiretrayStatusIcon.jsm
+++ b/src/modules/winnt/FiretrayStatusIcon.jsm
@@ -87,11 +87,7 @@ firetray.StatusIcon = {
loadImages: function() {
let topmost = firetray.Handler.getWindowInterface(
Services.wm.getMostRecentWindow(null), "nsIBaseWindow");
- let hwnd;
- if (topmost.nativeHandle)
- hwnd = firetray.Win32.hexStrToHwnd(topmost.nativeHandle);
- else
- hwnd = user32.FindWindowW("MozillaHiddenWindowClass", null);
+ let hwnd = firetray.Win32.hexStrToHwnd(topmost.nativeHandle);
log.debug("topmost or hiddenWin hwnd="+hwnd);
this.icons.insert('app', this.getIconFromWindow(hwnd));
['app_icon_custom', 'mail_icon_custom'].forEach(function(elt) {
--
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