Commit Graph

479 Commits

Author SHA1 Message Date
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 70a362a9e4 move linux-ish FiretrayChat.jsm to linux/.
We'll probably create a FiretrayChat.prototype when/if we support chat in
winnt.
2014-02-08 16:34:19 +01:00
foudfou 408116489e display new mail ico (first steps) 2014-02-08 15:04:16 +01:00
foudfou 23f4bc3014 Revert "attempt to use gtk3"
This reverts commit 769105c59b.
2014-02-07 11:36:24 +01:00
foudfou 769105c59b attempt to use gtk3 2014-02-07 11:36:07 +01:00
foudfou 20d137bd28 * fix (Chat) imports for Thunderbird
* fix Window.attachWndProc

NOTE: WndProc crashes fixed in TB27+
2014-02-07 00:17:17 +01:00
foudfou 42a8dac1ed cleaning 2014-02-06 23:02:12 +01:00
foudfou 705b0ffb59 don't cache and update windows[wid].visible, windowsCount, visibleWindowsCount
Because the number of windows will generally be small, this is not worth the
effort.
2014-02-06 00:17:28 +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 8f8fad3afc * adapt to Log4Moz -> Log renaming (FF 27+)
* fix typo (Cu.reportError)
2014-01-22 22:39:31 +01:00
foudfou b453b4fa74 * actually use a WndProc on moz windows
* include winnt files to .xpi

WndProc crashes, mentioned in bugs 598679 and 671266, were recently fixed by
915613 (thx bholley!).
2014-01-19 23:06:02 +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 d358416414 fix NOTIFYICONDATAW, NOTIFYICONDATAW_Vx_SIZE definitions 2013-11-19 01:00:51 +01:00
foudfou 02e849c602 * a step forward: actually create the icon (Shell_NotifyIcon)
* cleaning

The icon gets created but GetLastError always returns
ERROR_INVALID_WINDOW_HANDLE, at least under win7.

We should be fine with callbacks' ABI as they are defined outside ctypes-utils.
2013-11-17 23:11:17 +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
foudfou 3b80f4b618 Merge branch 'master' of github.com:foudfou/FireTray 2013-11-12 21:17:58 +01:00
foudfou 1f6b470204 Merge pull request #115 from fhaftmann/master
new de-DE localization
2013-11-12 11:51:27 -08:00
Florian Haftmann 03b9007c0d new de-DE localization 2013-11-12 17:49:07 +01:00
foudfou 1c76f1c1f9 * update preferences-system.svg for DFSG-compatibility
* add check for loglevel in Makefile
2013-11-06 22:23:36 +01:00
foudfou 402eb46c38 deprecation cleaning 2013-11-04 21:23:50 +01:00
foudfou 0f28d23f71 * add mail_urgency_hint pref
* fix options' window size
2013-11-03 15:38:15 +01:00
foudfou ee7e691dae update it fr locales (thx Underpass!) 2013-11-03 11:46:57 +01:00
foudfou 595dcf42b7 bump version to 0.4.8 2013-11-03 03:12:24 +01:00
foudfou 088f7f56e4 cleaner observer for accountmanager.accounts
We also need to start observing the mail.accountmanager.accounts pref *after*
it's fully built.
2013-11-03 02:09:07 +01:00
foudfou 6d2bd81053 fix bogus import in Firefox 2013-11-01 15:28:06 +01:00
foudfou eda4302ba5 * remove calls to old/deprecated interfaces (reported by AMO)
* reset logging level
2013-10-27 23:05:25 +01:00
foudfou 1fc3b93bd7 fix Accounts() generator (bug introduced in 65d175) 2013-10-27 18:35:33 +01:00
foudfou 590c257788 inject scm revision into built install.rdf 2013-10-27 16:09:09 +01:00
foudfou 05a9d401b1 bump version to 0.4.7 2013-10-27 15:23:06 +01:00
foudfou 65d17531ec * fix detection of account deletion/addition (see b3869630)
* cleaning (use fixIterator on MailServices.accounts)

thx mailInstrumentation !
2013-10-26 02:21:31 +02:00
foudfou 30772d56de add locales for preferences item in popup menu 2013-10-26 01:49:58 +02:00
foudfou c96ff01ebd add preferences item to popup menu 2013-10-25 17:49:01 +02:00
foudfou 80b0384397 new es-AR fr it nl zh-TW locales
thx BabelZillians profediego, Goofy, Jojaba, nico, Underpass, markh,
Velociraptor !
2013-10-25 16:51:42 +02:00
foudfou 8d8395b946 better remember_desktop.label string 2013-10-10 22:24:42 +02:00
foudfou 28c0932e57 comment on restoring minimized windows when hides_on_minimize 2013-10-10 22:16:19 +02:00
foudfou 4bbb66cde8 broader detection of the iconify event
Revert using getXWindowStates() instead of gdk_window_get_state(). Xfce only
sets_NET_WM_STATE_HIDDEN after iconify.
2013-10-10 22:01:29 +02:00
foudfou 6459bc6e4f * revert to using setVisibility() instead of baseWin.visibility=false on
* startupHide cleaning

It looks like setting baseWin.visibility=false removes the possibility to
restore the app by calling it from the command line. This is why we use
setVisibility() instead if start_hidden.
2013-10-07 21:44:34 +02:00
foudfou ef30cd16e2 * fix: correct launch of app-started event in Thunderbird when windows not
actually mapped (or "mapped" to another desktop)
* check app started if -firetrayShowHide or -firetrayPresent

We can't base the app-started event solely on MapNotify, at least because the
app could be started on another desktop (not mapped). The app-started event in
Thunderbird is not based on mail-startup-done events. We might have to consider
implementing a watchdog for unexpected cases...
2013-10-07 00:24:29 +02:00
foudfou d8536d8127 fix error catching when accounts not yet initialized 2013-09-19 16:49:07 +02:00
foudfou f6508616e6 Merge branch 'urgency'
Conflicts:
	src/modules/FiretrayChat.jsm
	src/modules/linux/FiretrayChatStatusIcon.jsm
2013-07-24 15:46:12 +02:00
foudfou 2749816a4d Merge branch 'fade'
Conflicts:
	src/modules/linux/FiretrayChatStatusIcon.jsm
2013-07-24 15:38:17 +02:00
foudfou 6615219f95 use 'focus-in' event for unsetting urgency hint
Unsetting urgency hint can't be base on MapNotify when working on a single
desktop.
2013-07-23 23:35:21 +02:00
foudfou 419ac2d0f0 set urgency hint on all windows for new messages 2013-07-22 17:23:33 +02:00