connman-ui
connman-ui copied to clipboard
Don't choose a status icon size.
gtk_status_icon_set_from_pixbuf doesn't appear to check the width or height of the GdkPixbuf, so it runs off the end of the pixbuf if your system tray is configured to display icons at any size larger than 24.
Work around this by using gtk_status_icon_set_from_icon_name.
This is what I see with xfce4-panel's tray using 48x48 icons:
In "before", you get two copies of the icon, the second missing its first row—which looks like it's wrapping to the next row when it runs off the end of a row. Sometimes the rows past the 24th show me noise from other memory. And I still don't know why the "after" icon is darker.
Thanks for your PR, however there are many other issues (and rotting code) and I don't maintain that project anymore.
Switch to https://github.com/jgke/connman-gtk It's updated, full-featured, and nicer on all aspects.