Blurry Icons

Bug #1066610 reported by scabootssca on 2012-10-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ADesk Bar
Undecided
Unassigned

Bug Description

I was having some problems with icons being the blurred pretty much thumbnail icons which kind of ruined the beautiful dock so I did a little digging and changed a couple lines which seemed to help for me.

in /usr/share/adeskbar/plugins/tasklist.py

    def window_get_icon(self, window):
        size = self.bar.cfg['icon_size']
        app = window.get_application()

        if app is not None:
            appIconName = app.get_icon_name().lower()
            if Core.ICON_THEME.has_icon(appIconName):
                pbuf = Core.ICON_THEME.load_icon(appIconName, size, gtk.ICON_LOOKUP_USE_BUILTIN)
            else:
                pbuf = window.get_icon().copy()
        else:
            pbuf = window.get_icon().copy()

        self.pixbufs[window] = pbuf.scale_simple(size, size, gtk.gdk.INTERP_BILINEAR)

http://pastebin.com/swKDn4GV
In the case of the formatting being off

I did Core.ICON_THEME and noticed that all the icon names were lowercase and when i printed the application names as it fetched the icons for them I noticed the lowercase ones had the higher quality icons and the capitalized ones had the blurred window.get_icon() icons so all i did was did a .lower() on the icon name before it called .has_icon and it seemed to work for me. I don't know if this was already patched or if this is where I should be posting this but I just wanted to help anyone out who is having the same problem as me.

Revision history for this message
scabootssca (scabootssca) wrote :

This might be a copy of https://bugs.launchpad.net/adeskbar/+bug/681557 now that I think about it

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers