[Bug 1157] New: GTK critical error fixup on specific laptops

[email protected]
Newsgroups gmane.comp.desktop.xfce.goodies.devel
Message-ID <[email protected]>
Do NOT reply to this email.  To make further comments on this bug, use
the URL below:
http://bugzilla.xfce.org/show_bug.cgi?id=1157

           Summary: GTK critical error fixup on specific laptops
           Product: Xfce Panel Plugins
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: battery
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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 ;)

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.