Commit Graph

23 Commits

Author SHA1 Message Date
foudfou 9628bee08e * Make menu icons "transparent" during initialization.
* Replace winnt menu icons with smaller ones.
2014-09-14 15:27:22 +02:00
foudfou e4419c47f7 Don't fallback on FindWindow() when loading the default icon (winnt).
The minimal supported platformVersion for winnt is 27.0 where nativeHandle is
provided.
2014-06-05 12:14:08 +02:00
foudfou 659ca4bb80 Try to get the default icon from getMostRecentWindow/nativeHandle instead of
FindWindow/HiddenWindow.
2014-06-04 22:00:47 +02:00
foudfou 9afa777c65 Reshape icon directories, and fix Makefile. 2014-05-25 21:11:07 +02:00
foudfou f1c5c02c8f Add 'start_hidden' capability for winnt. 2014-04-12 15:16:09 +02:00
foudfou ad5a1a5941 * Renamed custom icons filename preferences for consistency.
* bump version to v0.5.0b1
2014-04-02 22:16:51 +02:00
foudfou 8a3de9e343 Add basic popup menu on tray icon. 2014-03-31 23:17:03 +02:00
foudfou 2480ffbf85 * Handle custom icons on winnt.
* cleaning (createTextIcon() on winnt)

Harmonize custom icon handling (setIconImageDefault(), setIconImageCustom()).
Harmonize preference handling in prefwindow regardless if instantApply.
2014-03-22 01:15:19 +01:00
foudfou 17889beac6 add icon tooltip 2014-02-17 22:54:41 +01:00
foudfou 347eb1e720 iron out text icon creation 2014-02-17 22:24:36 +01:00
foudfou c52b9da609 * fix re-creation of text icon
* fix: unload gdi32.dll
2014-02-16 20:14:53 +01:00
foudfou 70f0c0a8e0 * creation of basic icon with text
* load .bmp in addition to .ico (and load them LR_SHARED)
* use ctypes pointer.isNull()
2014-02-14 00:22:46 +01:00
foudfou a10b63a8b2 * fix firetray's chat support policy handling
* implement windowGetAttention(), setIconImageDefault(), setIconImageNewMail()

At this stage, we must consider adapting the preferences' UI.
2014-02-08 22:41:47 +01:00
foudfou 408116489e display new mail ico (first steps) 2014-02-08 15:04:16 +01:00
foudfou 7a0ff56cd1 show/hide mechanism in place: clicking on tray icon or closing a window.
NOTE: a WndProc on each mozilla window is not needed for this.
2014-02-05 22:48:14 +01:00
foudfou 40cf41e97d fix SendMessage'ing to any window
still crashes for FF windows with our hook registered
2013-12-04 23:49:50 +01:00
foudfou 258ddbfbe0 failed attempt to use a hook (WH_CALLWNDPROC) instead of a window procedure.
This works well until we try to SendMessage from our proxy window to Firefox
windows. SendMessage crashes when sending to a Firefox window with our hook
registered, or to *any* window (tested on our proxy window and arbitrary
launched programs).
2013-12-02 00:31:45 +01:00
foudfou 2e234064bb * refactoring
* attempt to set our WndProc on Moz windows
* store window Id as a string

Calling CallWindowProc or ctypes.FuncType from a WNDPROC added to a Firefox
window crashes. See
https://bugzilla.mozilla.org/show_bug.cgi?id=598679
https://bugzilla.mozilla.org/show_bug.cgi?id=671266

The problem does not seem to occur on non-Firefox windows (for ex. a a hidden
window that we created).

We'll try to test Hooks instead of WndProcs.
2013-12-01 18:26:36 +01:00
foudfou d52245cc87 * un-/register windows (begin) => refactoring
* filter icon events (begin)
2013-11-24 14:25:57 +01:00
foudfou 5eaf647633 fix icon definition 2013-11-23 02:04:18 +01:00
foudfou 8e78f45d56 destroy tray icon, hidden window and window class on shutdown 2013-11-23 01:37:57 +01:00
foudfou 083304cd56 * refactor testing code
* create hidden proxy window (corresponding to our unique tray icon)
2013-11-22 23:05:43 +01:00
foudfou bcb7764b8f first step to porting to Windows
Does nothing particular, except get few informations from the registeredwindow.
ctypes-utils.jsm needs to be ironed out (ABI used for .so version and lib type
for .dll), and we'll probably have problems when declaring callbacks
(ctypes.stdcall_abi on 32bits ?).
2013-11-16 15:56:42 +01:00