Blurry Icons

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

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/

    def window_get_icon(self, window):
        size =['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)
                pbuf = window.get_icon().copy()
            pbuf = window.get_icon().copy()

        self.pixbufs[window] = pbuf.scale_simple(size, size, gtk.gdk.INTERP_BILINEAR)
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 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