[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#280776: kopete: icon appears as a blank page



On Thursday 18 November 2004 02:47 am, you wrote:
> On Fri, Nov 12, 2004 at 08:17:39AM -0500, Josh Metzler wrote:
> > > > Ok - I found the icon files.  When I have kopete open and am
> > > > offline, there is a grayscale kopete icon in the system tray.  It
> > > > is loaded from
> > > >
> > > > /usr/share/icons/crystalsvg/22x22/apps/kopete_offline.png
> > > >
> > > > and when I go online, the color icon shown is
> > > >
> > > > /usr/share/icons/crystalsvg/22x22/apps/kopete.png
> > > >
> > > > both of these files are from the kopete package (version
> > > > 4:3.3.1-1).
>
> ...
>
> > > It's the gray icon which isn't being found. ... Aha!  I managed to
> > > disable all the accounts by removing ~/.kde/share/apps/kopete before
> > > starting.  Then I'm managing to connect and reconnect to jabber fine.
> > > The icon is a blank page icon when offline, and the kopete icon when
> > > online.
>
> OK, I've run strace with -f (to capture Kopete forking and
> backgrounding itself) to find out what files it is looking for.
> $ strace -f kopete >out 2>&1
>
> Full output is below my name below, my analysis is here:
>
> The kopete.png that is being successfully loaded is:
> owl:~$ grep kopete.png out  | grep -v ENOENT
> [pid  3247] access("/usr/share/icons/crystalsvg/48x48/apps/kopete.png",
> R_OK) = 0 [pid  3247]
> open("/usr/share/icons/crystalsvg/48x48/apps/kopete.png",
> O_RDONLY|O_LARGEFILE) = 10 [pid  3247]
> access("/usr/share/icons/crystalsvg/16x16/apps/kopete.png", R_OK) = 0
> [pid  3247] open("/usr/share/icons/crystalsvg/16x16/apps/kopete.png",
> O_RDONLY|O_LARGEFILE) = 10 [pid  3247]
> access("/usr/share/icons/crystalsvg/16x16/apps/kopete.png", R_OK) = 0
> [pid  3247] open("/usr/share/icons/crystalsvg/16x16/apps/kopete.png",
> O_RDONLY|O_LARGEFILE) = 10

Ok - it looks like your taskbar is using 16x16 icons, while mine is using 
22x22 icons:

$ grep kopete.png strace.kopete | grep -v ENOENT | grep access
[pid  7644] access("/usr/share/icons/crystalsvg/48x48/apps/kopete.png", 
R_OK) = 0
[pid  7644] access("/usr/share/icons/crystalsvg/16x16/apps/kopete.png", 
R_OK) = 0
[pid  7644] access("/usr/share/icons/crystalsvg/22x22/apps/kopete.png", 
R_OK) = 0

>
> Here are all the kopete icons that I have.  In particular I don't have
> a 48x48 or 16x16 kopete_offline file.   Just a 22x22 one.
>

I also only have a 22x22 kopete_offline.png icon:

$ locate kopete_offline
/usr/share/icons/crystalsvg/22x22/apps/kopete_offline.png

> In Control Center -> Icons -> Advanced, for the "Panel" use of icon, I
> have size 48.  Howerver the drop-down is ghosted out, and I can't
> alter the value.   "Desktop/File Manager" is set to 48.  "Toolbar" and
> "Main Toolbar" to 22.    "Small Icons" to 16.  "All Icons" is ghosted.

Same for me.  My panel is set to Large size, but I tried changing it to all 
the other available sizes with kopete open and offline, and the icons all 
stayed the same size.  I didn't try restarting kde with the new size 
settings, though.

> I can't see anything in "Configure Panel..." to let me set the icon
> size there.
>
> What value sets the icon size for the "task tray" part of the panel?

According to these:
http://www.javadesktop.org/forums/thread.jspa?threadID=4141&tstart=105
http://bugs.kde.org/show_bug.cgi?id=85833
the system tray asks applications for their icon sizes, and sets the system 
tray icon size accordingly.  This bug was closed because applications were 
at fault for telling the system tray wrong sizes.

Maybe kopete is saying 16x16 is its minimum size?  If so, this is a bug in 
kopete - either it should specify 22x22 as its minimum size or provide 
other sizes of kopete_offline.png.

What other icons do you have in the system tray?  I also have klipper, kmix, 
knetload, and kcpuload.  It could be that one of them declares a minimum 
size of 22x22, and that is why my system tray shows the kopete icon.

> Should the kopete_offline.png file be available for other sizes?
>
> Francis

I would say that unless it knows its system tray icon will always be 22x22, 
then it should provide the other possible sizes.

Josh



Reply to: