1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-12-22 13:58:48 -05:00
Commit Graph

271 Commits

Author SHA1 Message Date
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
ff7bcd4c91 destroy icons when shutting down IMStatusIcon 2012-08-07 22:34:02 +02:00
foudfou
ceba669bcd display IM icon when IM enabled 2012-08-04 16:29:44 +02:00
foudfou
6f95421a2f fix shutdown so ctypes libs are close cleanly + cleaning 2012-08-04 15:22:10 +02:00
foudfou
a9cc299259 extract from StatusIcon to GtkIcons code to share with IMStatusIcon 2012-08-04 14:58:58 +02:00
foudfou
b3869630c2 * observe "account-added", "account-removed", at last ! (see 75636723 and 8d0917ab)
* auto-start InstantMessaging when needed
2012-08-04 14:02:42 +02:00
foudfou
ee86eeed16 ignore 'im' server types for now, we'll be handling them later. 2012-08-03 23:52:38 +02:00
foudfou
c608058971 add 'im' to mail server types and have VersionChange hooks applied synchronously
This forces us to hard code the addon version :(
2012-08-03 15:53:36 +02:00
foudfou
d8448f421b refactor VersionChange handling 2012-08-03 13:53:40 +02:00
foudfou
5df98adf6a Makefile: target 'all' becomes 'build' 2012-08-01 13:15:22 +02:00
foudfou
5aac8c2592 cleaning 2012-07-28 15:25:33 +02:00
foudfou
3c572aa5fc Merge branch 'native-handle' 2012-07-28 15:19:04 +02:00
foudfou
2fe1c2b687 cleaning (Moz Bug 760802, our patch accepted into mainline 9dcd7470dc0b) 2012-07-27 02:15:59 +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
3bb6d15fbc show how to find GtkWindow from GdkWindow 2012-06-29 17:34:20 +02:00
foudfou
ee9f484b0d oops forgot libfiretray.jsm 2012-06-13 23:18:46 +02:00
foudfou
28f639d3d1 failed attempt to use baseWindow.nativeHandle (bug 760802 and bug760802.patch)
Although we can re-construct a gdk.GdkWindow.ptr from natvieHandle (address of
the actual GdkWindow), we can't seem to be able to use it. For ex.,
gdk_window_get_user_data(), which should return a pointer to the corresponding
GtkWindow, returns strange adresses with our re-constructed pointer (0x11,
0x19, 0x0, ...)

...and despite the fact that both the "original" gdk.GdkWindow.ptr and the
re-constructed one do point to the same address, and that GDK_IS_WINDOW (macro
here wrapped into an embedded lib) is returning true for both pointers...
2012-06-13 22:38:18 +02:00
foudfou
e0f60f2981 cleaning 2012-06-13 22:24:07 +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
8c362f89f2 cleaning 2012-05-25 08:04:18 +02:00
foudfou
de08f67324 * refactor SeniorSpielbergo's work
* keep only one mail trigger on msg count change
* refactor FiretrayMessaging.jsm
* cleaning
2012-05-25 01:18:28 +02:00
foudfou
5a591834cc Merge branch 'master' of https://github.com/SeniorSpielbergo/FireTray into SeniorSpielbergo-master 2012-05-24 19:21:38 +02:00
foudfou
701796855f nsIPrefBranch2 to be removed 2012-05-14 12:07:27 +02:00
David Wille
8cdb609369 run "no new script only" if old msg count > 0 2012-05-14 07:35:31 +02:00
David Wille
51edcf4377 added functions to run scripts on new / no new mail... should be working 2012-05-13 21:35:42 +02:00
David Wille
496dce296c added default values and prefs are stored and restored 2012-05-13 20:15:08 +02:00
David Wille
7834f1013a added new textboxes for new / no new mail scripts and functions stubs for update methods 2012-05-13 19:53:35 +02:00
foudfou
b95f645653 fix Makefile 2012-05-13 17:44:11 +02:00
foudfou
89566bc9b6 fix cmd-line handler 2012-05-13 17:05:50 +02:00
foudfou
33a78716b4 remove hard-coded keyboard shortcut for hiding windows 2012-05-13 16:39:46 +02:00
foudfou
dd4770a632 Merge branch 'cmd-line'
Conflicts:
	README.md
2012-05-13 16:24:47 +02:00
foudfou
16fce35c9a update README 2012-05-13 16:23:43 +02:00
foudfou
137e6896ac complete command-line handling (show/hide windows) 2012-05-13 16:18:52 +02:00
foudfou
f443116088 if all windows visible, middle click on the tray icon activates last registered
window, shows all windows otherwise.

reverts 97dcbc8c
2012-05-13 16:01:41 +02:00
foudfou
767f9487d0 cleaning 2012-05-12 16:45:04 +02:00
foudfou
620abcb924 fix link in testing/ 2012-05-12 16:38:52 +02:00
foudfou
97dcbc8ca5 when clicking on the tray icon, if all windows visible, activate last
registered window
2012-05-12 16:36:51 +02:00
foudfou
776d3acddf bump to v0.4.2 2012-05-12 15:42:55 +02:00
foudfou
2b2ce871a0 fix start_hidden bug introduced in f86a3ac 2012-05-12 15:24:14 +02:00
foudfou
4174095780 Merge branch 'minimize-detect'
Conflicts:
	src/modules/linux/FiretrayWindow.jsm
2012-04-30 22:25:06 +03:00
foudfou
f86a3ac794 use Gtk gtk_widget_show/hide instead of Moz BaseWindow.visibility. This ensures
Thunderbird to be shown, when launched from the command line, while already
running.

NOTE: gdk_window_show/hide also works, but we'd lose the ability to resize and
move the windows before showing it when restoring.
2012-04-23 00:32:01 +02:00
foudfou
8d0917ab62 fix cleanExcludedAccounts() 2012-04-21 16:15:43 +02:00
foudfou
a1f0980b2a check window's event-masks with XGetWindowAttributes.
NOTE: if we'd need to *set* event-masks, it should be safer to do it with
gdk.gdk_window_set_events() to preserve the gdkWindow's state.
2012-04-21 15:27:36 +02:00
foudfou
31881fa3f5 make sure window is subscribed to mandatory event-masks
TODO: we should do this with xlib.
2012-04-18 00:51:50 +02:00
foudfou
229fd20b5e catch minimize event with PropertyNotify also.
TODO: maybe this is not needed, and we just need to be sure windows are
subscribed to StructureNotifyMask (UnmapNotify)
2012-04-11 11:50:25 +02:00
foudfou
b2f270687d attempt to catch minimize event that would be issued in Ubuntu 11.10 2012-04-10 22:42:06 +02:00
foudfou
b8346e36c3 update README.md 2012-04-09 01:58:21 +02:00
foudfou
1f480af971 * fix pref UI: disable themed icon names if not selected
* refactoring
2012-04-09 01:01:01 +02:00
foudfou
e679619f19 Merge branch 'themable-icons'
Conflicts:
	src/chrome/content/options.js
	src/chrome/content/options.xul
	src/modules/FiretrayHandler.jsm
	src/modules/commons.js
	src/modules/linux/FiretrayStatusIcon.jsm
2012-04-07 23:06:54 +02:00