After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 407246 - Display app icon (rhythmbox.png) in notifications and tray tooltips
Display app icon (rhythmbox.png) in notifications and tray tooltips
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: User Interface
0.9.7
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-12 22:20 UTC by Ed Catmur
Modified: 2008-12-27 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
25tray-icon-default-image.patch (2.30 KB, patch)
2007-02-12 22:20 UTC, Ed Catmur
none Details | Review
use transparent pixbuf (2.30 KB, patch)
2007-02-13 12:52 UTC, James "Doc" Livingston
none Details | Review
really the "use transparent pixbuf" pathc (18.68 KB, patch)
2007-02-14 08:00 UTC, James "Doc" Livingston
committed Details | Review
26update-notification.patch (1.33 KB, patch)
2007-02-15 16:11 UTC, Ed Catmur
committed Details | Review
25tray-icon-default-image.patch (3.52 KB, patch)
2007-02-18 23:25 UTC, Ed Catmur
none Details | Review
25tray-icon-default-image.patch (3.54 KB, patch)
2007-06-24 20:56 UTC, Ed Catmur
none Details | Review

Description Ed Catmur 2007-02-12 22:20:25 UTC
On Mon, 2007-02-12 at 14:35 -0500, William Jon McCann wrote:
> On 2/12/07, Ed Catmur <ed@catmur.co.uk> wrote:
> > On Mon, 2007-02-12 at 11:24 -0500, Andrew Conkling wrote:
> > > On 2/12/07, Ed Catmur <ed@catmur.co.uk> wrote:
> > > > On Mon, 2007-02-12 at 01:35 -0500, Andrew Conkling wrote:
> > > > > It's a tasteful X, but I'd prefer nothing:
> > > > > http://img361.imageshack.us/img361/975/rbcoverartzb8.png
> > > >
> > > > Ah.  That's wrong; it should be the Rhythmbox icon.  Currently it uses
> > > > "gnome-media-player"; maybe that should be changed to "rhythmbox"?
> > >
> > > Not sure, but apparently (if only in Ubuntu) the icon isn't being
> > > registered correctly.
> > Hm - "gnome-media-player" isn't in hicolor, but "rhythmbox" is.  This
> > might be the problem.
> 
> http://svn.gnome.org/viewcvs/gnome-icon-theme?rev=1112&view=rev
> 
> Looks like that icon has been axed.

Right, yeah.  This patch against current svn uses RB_APP_ICON from
rb-stock-icons.[ch], which was always the correct thing to do - and uses
it in notifications as well.

Attached patch restores behaviour of showing a placeholder icon in tooltips, on the assumption that the proper rhythmbox icon looks better there.
Comment 1 Ed Catmur 2007-02-12 22:20:47 UTC
Created attachment 82426 [details] [review]
25tray-icon-default-image.patch
Comment 2 James "Doc" Livingston 2007-02-13 12:52:53 UTC
Created attachment 82459 [details] [review]
use transparent pixbuf

This is a different approach to the issue, using a transparent pixbuf of the correct size. To me, using Rhythmbox's icon still causes some flicker because it's only there for a fraction of a second.

One other issue causing flicker is that we re-create the notification when the art arrives, rather than just telling libnotify that the icon has changed.
Comment 3 Ed Catmur 2007-02-13 18:58:43 UTC
Uh, you uploaded the same patch.  Did you select the wrong file?

> One other issue causing flicker is that we re-create the notification when the
> art arrives, rather than just telling libnotify that the icon has changed.
I'll look into fixing that; I think the libnotify API has got significantly better over the last year or so.
Comment 4 James "Doc" Livingston 2007-02-14 08:00:59 UTC
Created attachment 82517 [details] [review]
really the "use transparent pixbuf" pathc

> Uh, you uploaded the same patch.  Did you select the wrong file?

Oops. Correct patch attached this time.
Comment 5 Ed Catmur 2007-02-15 16:11:45 UTC
Created attachment 82612 [details] [review]
26update-notification.patch

use notify_notification_update().

Hm - we could probably rip out a fair chunk of code if we could use GTK+-2.10 and libnotify 0.4.1 (GtkStatusIcon and notify_notification_attach_to_status_icon()).  Is this feasible?
Comment 6 James "Doc" Livingston 2007-02-17 05:21:51 UTC
Patches committed to cvs.

Bug 349280 is about using GtkStatusIcon. Using it would be good, but there are a couple of caveats: either we drop support for Gtk 2.8 or keep the old code too, and it doesn't support mouse-wheel or middle-click events on the tray icon.
Comment 7 Ed Catmur 2007-02-18 23:25:17 UTC
Created attachment 82857 [details] [review]
25tray-icon-default-image.patch

I don't really like the side effects of the "transparent icon" approach:
* blank space for tracks without art
* blank space when there isn't a currently playing track
With the flicker-free update, I find the rhythmbox application icon to be fairly unobtrusive; plus, it reflects the state of the art widget.  I suppose we could get the art plugin to export the "searching/succeeded/failed" process state, if that'd help.
Comment 8 Ed Catmur 2007-06-24 20:56:46 UTC
Created attachment 90585 [details] [review]
25tray-icon-default-image.patch

to 0.11.0
Comment 9 Jonathan Matthew 2008-12-27 13:58:32 UTC
2008-12-27  Jonathan Matthew  <jonathan@d14n.org>

        * lib/rb-stock-icons.h:
        * shell/rb-tray-icon.c: (rb_tray_icon_init),
        (rb_tray_icon_dispose), (rb_tray_icon_set_tooltip_icon),
        (rb_tray_icon_notify), (tray_icon_tooltip_cb):
        If no pixbuf is supplied, use the app icon instead.
        If a pixbuf is supplied, add a thin black border around it to help
        separate it from the rest of the bits in the tooltip.

        * widgets/eggtrayicon.c: (egg_tray_icon_notify):
        If no pixbuf is supplied, use the app icon instead.

        Fixes #407246, sort of relates to #435950.