1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-08-13 15:53:47 -04:00
Commit Graph

122 Commits

Author SHA1 Message Date
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
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
ad5a1a5941 * Renamed custom icons filename preferences for consistency.
* bump version to v0.5.0b1
2014-04-02 22:16:51 +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
9b2f2016aa Overcome titlebar buttons not firing expected events. 2014-03-16 18:40:59 +01:00
foudfou
25bc039a6d * hides_on_minimize for winnt
* explicit removeEventListener('close') in overlay.js

Them titlebar is preventing fake close/minimize buttons to fire needed events
(close, WM_SYSCOMMAND). So, until Bug 827880 is fixed, hides_on_minimize
doesn't work with the menubar hidden.
2014-03-15 17:38:00 +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
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
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
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
1fc3b93bd7 fix Accounts() generator (bug introduced in 65d175) 2013-10-27 18:35:33 +01:00
foudfou
c96ff01ebd add preferences item to popup menu 2013-10-25 17:49:01 +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
f6508616e6 Merge branch 'urgency'
Conflicts:
	src/modules/FiretrayChat.jsm
	src/modules/linux/FiretrayChatStatusIcon.jsm
2013-07-24 15:46:12 +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
foudfou
35ed1efb6f * handle chat_icon_blink and chat_icon_enable prefs properly
* better use of ChatStatusIcon timers
2013-06-23 21:45:15 +02:00
foudfou
2875aaa7ba remove experimental fade feature for AMO review 2013-06-18 22:48:23 +02:00
foudfou
7070794fcd cleaning 2013-06-18 09:55:40 +02:00
foudfou
8aaf2cfda7 fix: add long-living references to timers for ChatStatusIcon blinking 2013-06-17 23:45:38 +02:00
foudfou
97ef0cb65f fix ChatStatusIcon blinking 2013-05-31 15:43:34 +02:00
foudfou
5ddf23a59d * fix merge: ChatStatusIcon.stopCrossFading() was defined twice
* fix: ChatStatusIcon.dropPixBuf() at right time
* cleaning
2013-05-30 22:52:01 +02:00
foudfou
9472fe22a2 Merge branch 'cross-fade' into v0.4.6rc2
Conflicts:
	src/modules/FiretrayChat.jsm
	src/modules/linux/FiretrayChatStatusIcon.jsm
2013-05-30 22:22:08 +02:00
foudfou
08bd79a1c9 * add chat_icon_blink, chat_icon_blink_style options
* fix MailChatPrefListener unregistering
* use GDK_INTERP_BILINEAR for gdk_pixbuf_composite
2013-05-10 15:33:50 +02:00
foudfou
c439efb036 Merge branch 'startup' into v0.4.6rc2 2013-05-01 15:45:35 +02:00
foudfou
2e064cae99 use |yield| in addition to nested timers for ChatStatusIcon fading
http://syzygy.st/javascript-coroutines/ is worth mentioning
2013-05-01 15:44:52 +02:00
foudfou
5882e3b9c5 use nested timers to mimic sleep()
thread.processNextEvent() is prohibited in Firefox (though used in
mozmill/util.js). Nested timers are a bit twisted and ugly. Need to check
|yield| and generators: http://unixpapa.com/js/sleep.html, dactyl/base.jsm
(K. Maglione)
2013-04-29 02:10:04 +02:00
foudfou
08828ce825 for Thunderbird, base startup event on the last restored window's map.
Unfortunately there is not equivalent "sessionstore-windows-restored" in TB
yet.  Many events related to windows are issued before windows are fully
realized. "mail-startup-done"/"mail-tabs-session-restored" are issued by *each*
window. "console-api-log-event" is not reliable and can be issued at relatively
early stage on heavy configs. So that the best solution is probably to count
restored windows ourselves...
2013-04-21 14:17:29 +02:00
foudfou
2c5a99c159 fix start_hidden by hiding only when app not started
base startup event on "sessionstore-windows-restored" and
"console-api-log-event", instead of the first "before-first-paint", reverting
some of 29de64e5
2013-04-14 15:55:20 +02:00
foudfou
837901c301 Merge branch 'twitter-blink' into icon-blink
Conflicts:
	src/modules/FiretrayChat.jsm
2013-04-07 21:50:57 +02:00
foudfou
7af80d0119 handle blinking on new messages for twitter accounts
No 'new-directed-incoming-message' event is issued on new messages for twitter
accounts, which seem to be considered chatrooms (instead of private
conversations).
2013-04-07 16:45:17 +02:00
foudfou
208db6f906 implement experimental cross-fading for blinking chat icon 2013-04-01 02:58:15 +02:00
foudfou
4360e3f499 cleaning 2013-03-30 14:27:05 +01:00
foudfou
f3a988444e do chat icon blinking ourselves
gtk_status_icon_set_blinking() deprecated deprecated since version 2.22,
removed in GTK+ 3
2013-03-30 12:29:38 +01:00
foudfou
3aca4f64f1 support urgency hint 2013-03-30 01:12:35 +01:00
foudfou
8c1ae188b2 don't actually use libfirtray (nor display gtk version)
this would lead to shipping compiled version for multiple platforms...
2013-03-21 01:13:41 +01:00
foudfou
270807380d example of using libfirtray to display gtk version 2013-03-21 01:09:08 +01:00
foudfou
2b2812aee6 cleaning 2013-03-16 16:04:07 +01:00
foudfou
1a90dbe179 add support for Zotero app 2013-03-11 16:03:49 +01:00
foudfou
bd83ca9304 * display popup menu window items for all application, not only browsers
* cleaning
2013-03-10 22:21:02 +01:00
foudfou
6fb8a15f22 * more accurate startup event detection
* when start_hidden, hide window on first x11.MapNotify instead of hiding all
  windows short after the "startup event".

  This prevents having visibility falsely corrected for windows that are
  displayed after the "startup event", and thus having to click twice on the
  tray icon to actually restore windows.
2013-03-10 21:39:34 +01:00
foudfou
d77724d46b yet another attempt to fix restore maximized window. This is tricky because it
can break restore minimized (hides_on_minimize off)
2013-01-16 23:48:25 +01:00
foudfou
6c4d21d4b3 attempt to fix restore maximized window 2012-12-20 13:36:24 +01:00