CVSROOT:        /cvs/gnome
Module name:    gnome-power-manager
Changes by:     rhughes 06/02/13 06:39:03

Modified files:
        .              : ChangeLog 
        src            : gpm-manager.c 

Log message:
2006-02-13 Richard Hughes <[EMAIL PROTECTED]>
* src/gpm-manager.c: Add an extra state GPM_WARNING_DISCHARGING so we can make 
the UPS and primary battery stuff common in the existing warning framework.
(maybe_notify_on_ac_changed): Only clear the notification now, as we rely on 
the trueness of battery.is_discharging to do the warning.
(gpm_manager_get_warning_type): Add the check for a now-discharging 
battery_status object. Man, this generic code is easy to change.
(battery_low_get_title): Add a string for GPM_WARNING_DISCHARGING.
(battery_status_changed_primary): Do the warning "The AC Power has been 
unplugged." here, for GPM_WARNING_DISCHARGING. (battery_status_changed_ups): Do 
the warning "Your system is running on backup power!" for 
GPM_WARNING_DISCHARGING. (battery_status_changed_misc): Ignore 
GPM_WARNING_DISCHARGING as this is not relevant for pda, mouse or keyboard 
devices.
(gpm_manager_init): Set last primary warning to GPM_WARNING_DISCHARGING as we 
don't want to be notified on coldplug if we are on battery power.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=gnome-power-manager&who=rhughes&date=explicit&mindate=2006-02-13%2006:38&maxdate=2006-02-13%2006:40

_______________________________________________
cvs-commits-list mailing list
cvs-commits-list@gnome.org
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to