Comment 5 for bug 1001229

Revision history for this message
Lars Karlitski (larsu) wrote :

These icon names are coming from upower for a discharging battery:

  battery-full-symbolic gpm-battery-100 battery-full

Gtk looks for the first icon name in the current theme. If it doesn't find it, it proceeds to the next icon in the list, etc. Since ubuntu-mono doesn't have battery-full-symbolic, it advanced to gpm-battery-100, which it does have. If none of the icons in the list are found in the current theme, gtk proceeds to look for them in the parent icon theme.

The linked commit changes gtk to treat the -symbolic suffix a little differently, because it really isn't about specificity, but a visual property of the icon. So it looks for those in the parent theme *first*. Parent theme for ubuntu-mono seems to be the default gnome set, which contains a colorful rendition of battery-full-symbolic.

The real fix for this is to agree upon a naming scheme for symbolic icons. I suggest for ubuntu-mono to simply drop the old names and adapt the -symbolic ones.

In addition, indicator-power needs to look for the -symbolic icons first. I assume that it can even drop all the other names, as noone else is using them afaik.