foudfou / FireTray

Mozilla icon tray. DISCONTINUED
https://foudfou.github.io/FireTray/
Other
102 stars 62 forks source link

Starting hidden to the tray does not work #35

Closed SeniorSpielbergo closed 12 years ago

SeniorSpielbergo commented 12 years ago

Hi,

yesterday I have updated to FireTray 0.4.1 and discovered that FireTray does not hide to the tray when I start it with the corresponding option set.

FireTray 0.4.1 (with version 0.4.0b3 it was working like a charm) Thunderbird 12.0.1 Arch Linux GTK 1.2.10

When I start the program there are no errors in the error console, but I can see following warning:

Warning: WARN firetray: setVisibility=false Source File: resource://firetray/linux/FiretrayWindow.jsm Line: 307

This warning is printed every time I hide or restore the window, except it changes to "Warning: WARN firetray: setVisibility=true" on restore.

I have also built the debug version of FireTray and got following print out to console:

*** LOG addons.xpi: startup
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** LOG firetray: Trying to load library: glib-2.0
*** LOG firetray: Trying libglib-2.0.so.0
*** LOG firetray: Successfully loaded libglib-2.0.so.0
*** LOG firetray: Trying to load library: gobject-2.0
*** LOG firetray: Trying libgobject-2.0.so.0
*** LOG firetray: Successfully loaded libgobject-2.0.so.0
*** LOG firetray: Trying to load library: cairo
*** LOG firetray: Trying libcairo.so.2
*** LOG firetray: Successfully loaded libcairo.so.2
*** LOG firetray: Trying to load library: X11
*** LOG firetray: Trying libX11.so.6
*** LOG firetray: Successfully loaded libX11.so.6
*** LOG firetray: Trying to load library: gdk-x11-2.0
*** LOG firetray: Trying libgdk-x11-2.0.so.0
*** LOG firetray: Successfully loaded libgdk-x11-2.0.so.0
*** LOG firetray: Trying to load library: gio-2.0
*** LOG firetray: Trying libgio-2.0.so.0
*** LOG firetray: Successfully loaded libgio-2.0.so.0
*** LOG firetray: Trying to load library: pango-1.0
*** LOG firetray: Trying libpango-1.0.so.0
*** LOG firetray: Successfully loaded libpango-1.0.so.0
*** LOG firetray: Trying to load library: gtk-x11-2.0
*** LOG firetray: Trying libgtk-x11-2.0.so.0
*** LOG firetray: Successfully loaded libgtk-x11-2.0.so.0
*** LOG firetray: Handler initialized: false
*** LOG firetray: OS=Linux, ABI=x86-gcc3, XULrunner=12.0
*** LOG firetray: Trying to load library: pangocairo-1.0
*** LOG firetray: Trying libpangocairo-1.0.so.0
*** LOG firetray: Successfully loaded libpangocairo-1.0.so.0
*** LOG firetray: FiretrayStatusIcon imported
*** LOG firetray: Trying to load library: c
*** LOG firetray: Trying libc.so.6
*** LOG firetray: Successfully loaded libc.so.6
*** LOG firetray: x11.current.Atoms.WM_DELETE_WINDOW=285
*** LOG firetray: x11.current.Atoms.WM_STATE=275
*** LOG firetray: x11.current.Atoms.WM_CHANGE_STATE=367
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_MODAL=305
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_STICKY=310
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_MAXIMIZED_VERT=306
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_MAXIMIZED_HORZ=307
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_SHADED=398
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_SKIP_TASKBAR=308
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_SKIP_PAGER=309
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_HIDDEN=418
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_FULLSCREEN=304
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_ABOVE=302
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_BELOW=303
*** LOG firetray: x11.current.Atoms._NET_WM_STATE_DEMANDS_ATTENTION=436
*** LOG firetray: x11.current.Atoms._NET_CLOSE_WINDOW=397
*** LOG firetray: x11.current.Atoms._NET_WM_NAME=298
*** LOG firetray: x11.current.Atoms._NET_WM_VISIBLE_NAME=393
*** LOG firetray: x11.current.Atoms._NET_WM_ICON_NAME=297
*** LOG firetray: x11.current.Atoms._NET_WM_VISIBLE_ICON_NAME=394
*** LOG firetray: x11.current.Atoms._NET_WM_DESKTOP=295
*** LOG firetray: x11.current.Atoms._NET_WM_WINDOW_TYPE=313
*** LOG firetray: x11.current.Atoms._NET_WM_STATE=301
*** LOG firetray: x11.current.Atoms._NET_WM_ALLOWED_ACTIONS=423
*** LOG firetray: x11.current.Atoms._NET_WM_STRUT=417
*** LOG firetray: x11.current.Atoms._NET_WM_STRUT_PARTIAL=432
*** LOG firetray: x11.current.Atoms._NET_WM_ICON_GEOMETRY=415
*** LOG firetray: x11.current.Atoms._NET_WM_ICON=296
*** LOG firetray: x11.current.Atoms._NET_WM_PID=299
*** LOG firetray: x11.current.Atoms._NET_WM_HANDLED_ICONS=484
*** LOG firetray: x11.current.Atoms._NET_WM_USER_TIME=315
*** LOG firetray: x11.current.Atoms._NET_FRAME_EXTENTS=292
*** LOG firetray: x11.current.Atoms._NET_ACTIVE_WINDOW=290
*** LOG firetray: x11.current.Atoms.CARDINAL=6
*** LOG firetray: FiretrayWindow imported
*** LOG firetray: inMailApp: true, inBrowserApp: false
*** LOG firetray: file:///home/david/.thunderbird/0do7a60t.default/extensions/%7B9533f794-00b4-4354-aa15-c2bbda6989f8%7D/chrome/skin/thunderbird32.png
*** LOG firetray: file:///home/david/.thunderbird/0do7a60t.default/extensions/%7B9533f794-00b4-4354-aa15-c2bbda6989f8%7D/chrome/skin/blank-icon.png
*** LOG firetray: file:///home/david/.thunderbird/0do7a60t.default/extensions/%7B9533f794-00b4-4354-aa15-c2bbda6989f8%7D/chrome/skin/message-mail-new.png
*** LOG firetray: file:///home/david/.thunderbird/0do7a60t.default/extensions/%7B9533f794-00b4-4354-aa15-c2bbda6989f8%7D/chrome/skin/linux/icons
*** LOG firetray: /home/david/.thunderbird/0do7a60t.default/extensions/{9533f794-00b4-4354-aa15-c2bbda6989f8}/chrome/skin/linux/icons
*** LOG firetray: gtkIconTheme=GtkIconTheme.ptr(ctypes.UInt64("0xaf10c9c0"))
*** LOG firetray: themedIconNames=indicator-messages-new,mail-message-new,mail-unread
*** LOG firetray: themedIconNamesLen=3
*** LOG firetray: themedIconNames=ctypes.char.ptr.array(3)([ctypes.char.ptr(ctypes.UInt64("0xa398f428")), ctypes.char.ptr(ctypes.UInt64("0xa398f448")), ctypes.char.ptr(ctypes.UInt64("0xa398f468"))])
*** LOG firetray: themedIcon=GIcon.ptr(ctypes.UInt64("0xa399f700"))
*** LOG firetray: themedIconNames=indicator-messages,applications-email-panel,thunderbird
*** LOG firetray: themedIconNamesLen=3
*** LOG firetray: themedIconNames=ctypes.char.ptr.array(3)([ctypes.char.ptr(ctypes.UInt64("0xa399f848")), ctypes.char.ptr(ctypes.UInt64("0xa39a2588")), ctypes.char.ptr(ctypes.UInt64("0xa399f868"))])
*** LOG firetray: themedIcon=GIcon.ptr(ctypes.UInt64("0xa399f940"))
*** LOG firetray: GIcon.ptr(ctypes.UInt64("0xa399f940"))
*** LOG firetray: showHideAllWindows: true
*** LOG firetray: g_connect activate=313
*** LOG firetray: StatusIcon initialized
*** LOG firetray: Enabling Messaging
*** LOG firetray: [xpconnect wrapped nsITimer]=900000
*** LOG firetray: updateMsgCount
*** LOG firetray: msgCountType=0
*** LOG firetray: mail accounts from pref: {"serverTypes":{"pop3":{"order":1,"excluded":false},"imap":{"order":1,"excluded":false},"movemail":{"order":2,"excluded":true},"none":{"order":3,"excluded":false},"rss":{"order":4,"excluded":true},"nntp":{"order":5,"excluded":true}},"excludedAccounts":[]}
*** LOG firetray: sortByTypeAndName=false
*** LOG firetray: ACCOUNT: email2@test.de type: imap
*** LOG firetray: is servertype excluded: false, account exclusion index: -1
*** LOG firetray: Inbox getNumUnread=0
*** LOG firetray: ACCOUNT: Local Folders type: none
*** LOG firetray: is servertype excluded: false, account exclusion index: -1
*** LOG firetray: ACCOUNT: email1@test.de type: imap
*** LOG firetray: is servertype excluded: false, account exclusion index: -1
*** LOG firetray: Inbox getNumUnread=0
*** LOG firetray: ACCOUNT: Feeds type: rss
*** LOG firetray: is servertype excluded: true, account exclusion index: -1
*** LOG firetray: Total New=0
*** LOG firetray: 0 unread messages
*** LOG firetray: GIcon.ptr(ctypes.UInt64("0xa399f940"))
*** LOG addons.xpi: Opening database
*** LOG firetray: version change watching enabled
*** LOG firetray: ONLOAD
*** LOG firetray: 0
*** LOG firetray: register window
*** LOG firetray: oldTitle=Mozilla Thunderbird
*** LOG firetray: userData=_find_data_t.ptr(ctypes.UInt64("0xa3af8c08"))
*** LOG firetray: ctypes.char.ptr(ctypes.UInt64("0xa43c7738")) = ctypes.char.ptr(ctypes.UInt64("0xb725abec"))
*** LOG firetray: ctypes.char.ptr(ctypes.UInt64("0xa43c7738")) = ctypes.char.ptr(ctypes.UInt64("0xa4363520"))
*** LOG firetray: found window: GtkWindow.ptr(ctypes.UInt64("0xaf120920"))
*** LOG firetray: XID=12583052
*** LOG firetray: xWindowAttributes: XWindowAttributes(0, 0, 200, 200, 0, 24, Visual.ptr(ctypes.UInt64("0xb7258000")), ctypes.UInt64("346"), 1, 1, 1, 0, ctypes.UInt64("4294967295"), ctypes.UInt64("0"), 0, ctypes.UInt64("32"), 1, 0, ctypes.Int64("6520959"), ctypes.Int64("6520959"), ctypes.Int64("0"), 0, Screen.ptr(ctypes.UInt64("0xb72156a0")))
*** LOG firetray: xEventMask=6520959 xEventMaskNeeded=4390912
*** LOG firetray: about to set title: 12583052
*** LOG firetray: added gtkPopupMenuWindowItems: 1
*** LOG firetray: window 12583052 registered
*** LOG firetray: AFTER
*** LOG firetray: 1
*** LOG firetray: 12583052=GtkWindow.ptr(ctypes.UInt64("0xaf120920"))
*** LOG firetray: updateMsgCount
*** LOG firetray: msgCountType=0
*** LOG firetray: mail accounts from pref: {"serverTypes":{"pop3":{"order":1,"excluded":false},"imap":{"order":1,"excluded":false},"movemail":{"order":2,"excluded":true},"none":{"order":3,"excluded":false},"rss":{"order":4,"excluded":true},"nntp":{"order":5,"excluded":true}},"excludedAccounts":[]}
*** LOG firetray: sortByTypeAndName=false
*** LOG firetray: ACCOUNT: email2@test.de type: imap
*** LOG firetray: is servertype excluded: false, account exclusion index: -1
*** LOG firetray: Inbox getNumUnread=0
*** LOG firetray: ACCOUNT: Local Folders type: none
*** LOG firetray: is servertype excluded: false, account exclusion index: -1
*** LOG firetray: ACCOUNT: email1@test.de type: imap
*** LOG firetray: is servertype excluded: false, account exclusion index: -1
*** LOG firetray: Inbox getNumUnread=0
*** LOG firetray: ACCOUNT: Feeds type: rss
*** LOG firetray: is servertype excluded: true, account exclusion index: -1
*** LOG firetray: Total New=0
*** LOG firetray: 0 unread messages
*** LOG firetray: GIcon.ptr(ctypes.UInt64("0xa399f940"))
*** LOG firetray: start_hidden
*** LOG firetray: hideSingleWindow xid=12583052
*** LOG firetray: hideSingleStateless
*** WARN firetray: setVisibility=false
*** LOG firetray: Firetray LOADED: true
*** LOG firetray: RECEIVED: mail-startup-done, launching timer
*** LOG firetray: OnItemIntPropertyChanged BiffState for folder email2@test.de was 2 became 1 NEW MESSAGES=0
*** LOG firetray: VERSION: 0.4.1
*** LOG firetray: *** appStarted ***
*** LOG firetray: OnItemIntPropertyChanged BiffState for folder email1@test.de was 2 became 1 NEW MESSAGES=0
*** LOG firetray: OnItemIntPropertyChanged FolderSize for folder Inbox was 222881864 became 222881864 NEW MESSAGES=0
*** LOG firetray: OnItemIntPropertyChanged FolderSize for folder Inbox was 35658383 became 35658383 NEW MESSAGES=0
*** LOG firetray: Firetray CLOSE
*** LOG firetray: hides_on_close: true, hides_single_window=true
*** LOG firetray: hideSingleWindow xid=12583052
*** LOG firetray: hideSingleStateful
*** LOG firetray: save: gx=0, gy=27, gwidth=1920, gheight=1021
*** LOG firetray: XGetWindowProperty res=0, actual_type=4, actual_format=32, bytes_after=0, nitems=3
*** LOG firetray: prop_value=ctypes.unsigned_char.ptr(ctypes.UInt64("0xa47dd730")), size=4
*** LOG firetray: format OK
*** LOG firetray: props=ctypes.unsigned_long.array(3).ptr(ctypes.UInt64("0xa47dd730")), size=4
*** LOG firetray: propsFound, nitems=ctypes.unsigned_long.array(3).ptr(ctypes.UInt64("0xa47dd730")), ctypes.unsigned_long(ctypes.UInt64("3"))
*** LOG firetray: i: 307
*** LOG firetray: i: 306
*** LOG firetray: i: 318
*** LOG firetray: save: windowStates=2
*** WARN firetray: setVisibility=false
*** LOG firetray: SCROLL DOWN
*** LOG firetray: showAllWindows
*** LOG firetray: showSingleWindow xid=12583052
*** LOG firetray: showSingleStateless
*** WARN firetray: setVisibility=true
*** LOG firetray: PropertyNotify: WM_STATE, send_event: 0, state: 0
*** LOG firetray: XGetWindowProperty res=0, actual_type=4, actual_format=32, bytes_after=0, nitems=3
*** LOG firetray: prop_value=ctypes.unsigned_char.ptr(ctypes.UInt64("0x951e02b0")), size=4
*** LOG firetray: format OK
*** LOG firetray: props=ctypes.unsigned_long.array(3).ptr(ctypes.UInt64("0x951e02b0")), size=4
*** LOG firetray: propsFound, nitems=ctypes.unsigned_long.array(3).ptr(ctypes.UInt64("0x951e02b0")), ctypes.unsigned_long(ctypes.UInt64("3"))
*** LOG firetray: i: 307
*** LOG firetray: i: 306
*** LOG firetray: i: 318
foudfou commented 12 years ago

Hi, thanks for reporting. f86a3ac79 broke that. I'll fix soon.

foudfou commented 12 years ago

fixed in 2b2ce871a0