~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« back to all changes in this revision

Viewing changes to powermanager/src/powermanager-dbus.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-09-07 02:38:17 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907023817-ish9a53i2wn0m7zg
Tags: 2.2.0~0rc1-0ubuntu1
* New Upstream Version (LP: #632054)
* Fixed a few bugs on LP:
 - LP: #616176 Dust Bin Hang and Incorrect Configuration
 - LP: #604034 Change terminal tab's name lost the color
 - LP: #582452 GMenu does not contain any applications
* Fixed a few bugs on glx-dock forum:
 - Fixed support of GMusicBrowser.
 - AlsaMixer has no emblem.
 - Status-Notifier doesn't be drawed into the dock.
* Updated translations
* debian/control:
 - Added cairo-dock-core as build-depends in order to prevent
   some builds errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        }
476
476
        
477
477
        //Utile de connaitre l'autonomie estimée quand la batterie est chargée
478
 
        if (myData.on_battery || myData.battery_charge == 100) { //Decompte avant décharge complete
 
478
        if (myData.battery_charge > 99.9)  // on evite le point a 100, trop instable
 
479
        {
 
480
                myData.battery_time = 0.;
 
481
        }
 
482
        else if (myData.on_battery/** || myData.battery_charge == 100*/) { //Decompte avant décharge complete
479
483
                if (fPresentRate > 0) {
480
484
                        myData.battery_time = 3600. * iRemainingCapacity / fPresentRate;
481
485
                }