Fwd: Getting the Amarok system tray icon image

Ravi ra.ravi.rav at gmail.com
Wed May 2 18:53:16 UTC 2012


Sorry for the late reply. I have checked I am getting the zero sized icon
long after Amarok has started and an incon is being displayed in system
tray.

Thanks.

On Fri, Apr 13, 2012 at 19:09, Kevin Funk <krf at gmx.de> wrote:

> On Friday 13 April 2012, 15:30, Myriam Schweingruber wrote:
> > FYI, this belongs to the devel list.
> >
> > Regards, Myriam
> >
> >
> > ---------- Forwarded message ----------
> > From: Ravi <ra.ravi.rav at gmail.com>
> > Date: Wed, Apr 11, 2012 at 20:31
> > Subject: Getting the Amarok system tray icon image
> > To: amarok at kde.org
> >
> >
> > Hi,
> >
> > When I try to get system tray icon in Amarok using the iconPixmap() in
> > Amarok::TrayIcon I get a zero sized icon. An idea whay this is
> > happening?
> >
> > http://paste.kde.org/448160/
> >
> > Thanks.
>
> Hey,
>
> the question is: *when* do you call TrayIcon::iconPixmap()?
>
> iconPixmap() belongs to KStatusNotifierItem (the base class) and is likely
> invalid until a pixmap has been set by any of the
> KStatusNotifierItem::setPixmap* functions.
>
> Also see [1].
>
> Greets
>
> [1] http://api.kde.org/4.5-api/kdelibs-
>
> apidocs/kdeui/html/classKStatusNotifierItem.html#a23632af9e691a0fa173404626998aeb
>
> --
> Kevin Funk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20120503/a0101959/attachment.html>


More information about the Amarok-devel mailing list