GNOME Bugzilla – Bug 483826
inhibit applet does not work with no-background panels
Last modified: 2008-08-16 22:37:11 UTC
Since the new icon just gets drawn over the old one. Here is a patch to make the applet uee a GtkImage for the acutal icon drawing. That works.
Created attachment 96721 [details] [review] no-background.patch Not a very nice patch, sorry. I just ifdefed out the parts that I don't need anymore.
I must admit I can't reproduce the bug. Have you got a screenshot? I'll convert the other applet (brightness) if you think it might have merit. Thanks.
Created attachment 96724 [details] automatic icon drawn over inhibit icon It only happens if you use "None" for the panel background.
Yup, fixed now, thanks. Does the brightness applet need the fix also?
Forgot to mention it: no, the brightness applet can do without, since it does not display different icons. I guess you could perhaps make it show artifacts by theme switching, though.
Turns out the patch I attached causes the applet to eat 100% cpu, which was quickly spotted by our avid rawhide users... You want to take out the gpm_applet_get_icon (applet); call from the draw_cb(), otherwise you end up loading the svg for every expose event, which is not fun.
I think this is all taken care of now.