On my Dell Latitude D600, I get this critical error when I'm on AC: Gtk-CRITICAL **: gtk_progress_set_percentage: assertion `percentage >= 0 && percentage <= 1.0' failed This is because my laptop reports the battery percentage to be 110% when on AC. Attached is a proposed patch to fix this up. Reproducible: Always Steps to Reproduce: 1. Add battery applet on an AC powered Dell D600 Actual Results: GTK critical error Expected Results: Don't give errors ;)
Created attachment 315 Patch to fix problem. Made it for 0.2.0, but works against 0.3.0 too (didn't notice the newer version before I made changes)
This should be fixed in trunk, using: charge = CLAMP (charge, 0, 100);