Commit Graph

21 Commits

Author SHA1 Message Date
foudfou 08bc12e28c Avoid altering 'oncommand' and 'command' attributes (thx Kris Maglione).
Altering on* attributes is discouraged by AMO review, along with the use of
Function() — even if the code passed to Function() is not dynamic.
2014-10-16 00:15:00 +02:00
foudfou 0cfe58e410 * Linux: fix return value according to return type definitions for some
ctypes callbacks, thus avoiding "expected type int, got (void 0)".
* Cleaning.
2014-10-08 23:19:19 +02:00
foudfou 74ac8d54d7 Add popup menu items for hidden windows.
Still need to handle 'hides_single_window' switching.
2014-04-05 17:10:55 +02:00
foudfou c96ff01ebd add preferences item to popup menu 2013-10-25 17:49:01 +02:00
foudfou 208db6f906 implement experimental cross-fading for blinking chat icon 2013-04-01 02:58:15 +02:00
foudfou bd83ca9304 * display popup menu window items for all application, not only browsers
* cleaning
2013-03-10 22:21:02 +01:00
foudfou 194894afd4 * convert tabbox/tabpanels to prefpanes (preference UI) (thx Tango for icons!)
* change order of menu items for mail apps
* fix hide chat prefs when non-chat app
2012-09-06 19:07:22 +02:00
foudfou d0e2259e96 restrict logging to our addon 2012-09-04 17:48:54 +02:00
foudfou ae0f41e1e4 Merge branch 'im'
Conflicts:
	src/defaults/preferences/prefs.js
	src/modules/FiretrayHandler.jsm
	src/modules/FiretrayMessaging.jsm
	src/modules/VersionChange.jsm
	src/modules/commons.js
	src/modules/linux/FiretrayStatusIcon.jsm
	src/modules/linux/FiretrayWindow.jsm
2012-09-04 00:25:29 +02:00
foudfou ebe8ee37ba address comments from last review by Kris Maglione, mainly:
* rename commande line flag '-showHide' to '-firetray-showHide'
* drop use of AddonLogging.jsm in variable F, and use log4moz instead
* do not remove String.prototype.trim

Regarding String.prototype.trim tough, it's unclear why its fallback definition
should be removed: MDN says it was introduced in JavaScript 1.8.1, but it seems
available in 1.7...
2012-09-03 01:51:32 +02:00
foudfou 82fae974d1 ctypes libs are tracked by firetray.Handler.
(sub)modules using ctypes libs just need to declare opened libs, which will be
ultimately closed by the Handler. Not only is this fancier, but also useful in
situations where we want to init()/shutdown() modules without closing libs used
by others (ex: IMStatusIcon)
2012-08-07 23:37:32 +02:00
foudfou 6f95421a2f fix shutdown so ctypes libs are close cleanly + cleaning 2012-08-04 15:22:10 +02:00
foudfou 4fb215ce82 fix start_hidden which was based on 'resize' events.
"Too small window" bug with Lightning installed.

start_hidden is not so easy to achieve since:
- we can't rely on appStarted (window displayed in between)
- we can't rely on 'load' event (window not fully realized - position, size)
- we can't rely on 'resize' event (window displayed/shown/resized a variable
  number of times)
Besides, nsIBaseWindow.visibility remains the surest way to hide windows at
startup.
2012-07-24 02:00:44 +02:00
foudfou 9b124d237f add menu item to reset the icon
TODO: might be interesting to add a mouse click handler also.
2012-06-01 13:05:41 +02:00
foudfou 13a76686f6 refactor firetray.PopupMenu.init() 2012-06-01 13:01:54 +02:00
foudfou 4174095780 Merge branch 'minimize-detect'
Conflicts:
	src/modules/linux/FiretrayWindow.jsm
2012-04-30 22:25:06 +03:00
foudfou f5e56dab81 * revert a7516e partly:
* support icedove/iceweasel/iceape (appId's are equivalent with FF, TB, SM)
  * have a nice "F" mandatory wrapper object (instead of the long "firetray")
* fix version anchor on the firetray splash page when opening a tab
2012-03-30 23:20:47 +02:00
foudfou c0479d1683 fix MenuItem initialization 2012-03-28 17:57:02 +02:00
foudfou a7516e379e wrap "loose" variables and functions within a JavaScript object 2012-03-08 22:04:16 +01:00
foudfou 7efe604b9c showSingleWindow() and hideSingleWindow() now defined per window (needed for start_hidden) 2012-02-20 15:34:51 +01:00
foudfou 6daf73fe44 reorganize and clean 2012-02-09 15:39:33 +01:00