Tray icon is not transparent when using python-eggtrayicon

Bug #644392 reported by Barry Warsaw
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GTimeLog
Invalid
Medium
Unassigned
gnome-python-extras (Ubuntu)
New
Undecided
Unassigned

Bug Description

When using the Ambiance theme in Maverick, gtimelog's tray icon area is still dark-on-light so it looks horrible.

Tags: ui
Revision history for this message
Barry Warsaw (barry) wrote :
tags: added: ui
Changed in gtimelog:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Marius Gedminas (mgedmin) wrote :

This seems to be a bug in python-eggtrayicon:

    >>> import egg.trayicon, gtk
    >>> icon = egg.trayicon.TrayIcon("Foo")
    >>> img = gtk.Image()
    >>> img.set_from_file('gtimelog-small.png')
    >>> icon.add(img)
    >>> icon.show_all()

The same transparent png, when used with gtk.StatusIcon(), is properly transparent.

    >>> import gtk
    >>> icon = gtk.status_icon_new_from_file("gtimelog-small.png")

summary: - Tray UI glitch
+ Tray icon is not transparent when prefer_old_tray_icon = yes
summary: - Tray icon is not transparent when prefer_old_tray_icon = yes
+ Tray icon is not transparent when using python-eggtrayicon
Revision history for this message
Marius Gedminas (mgedmin) wrote :

As a GTimeLog-specific workaround, I recommend setting 'prefer_old_tray_icon = no' in ~/.gtimelog/gtimelogrc. I'll make that the default in trunk.

There's a side efect: you lose the task clock display in your systray, since gtk.StatusIcon doesn't support arbitrary widgets.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

(Setting status to Invalid since this is a bug in EggTrayIcon, with no way of working around it in GTimeLog that I can see.)

Changed in gtimelog:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.