Home
last modified time | relevance | path

Searched refs:bBatteryPresent (Results 1 – 6 of 6) sorted by relevance

/dports/deskutils/cairo-dock-plugins/cairo-dock-plug-ins-3.4.1/powermanager/src/
H A Dpowermanager-proc-acpi.c137 gboolean bBatteryPresent = (*cCurVal == 'y'); in cd_get_stats_from_proc_acpi() local
138 if (bBatteryPresent != myData.bBatteryPresent) // the battery has just been inserted/removed. in cd_get_stats_from_proc_acpi()
140 myData.bBatteryPresent = bBatteryPresent; in cd_get_stats_from_proc_acpi()
141 if (! bBatteryPresent) // if the battery has been removed, we are obviously on the sector. in cd_get_stats_from_proc_acpi()
H A Dpowermanager-sys-class.c137 gboolean bBatteryPresent = (*str == '1'); in cd_get_stats_from_sys_class() local
138 if (bBatteryPresent != myData.bBatteryPresent) // the battery has just been inserted/removed. in cd_get_stats_from_sys_class()
140 myData.bBatteryPresent = bBatteryPresent; in cd_get_stats_from_sys_class()
141 if (! bBatteryPresent) // if the battery has been removed, we are obviously on the sector. in cd_get_stats_from_sys_class()
H A Dpowermanager-init.c115 if (myData.bBatteryPresent && ! myData.bOnBattery)
H A Dpowermanager-struct.h116 gboolean bBatteryPresent; member
H A Dpowermanager-draw.c104 if (! myData.bBatteryPresent) in update_icon()
137 if (! myData.bBatteryPresent) in update_icon()
H A Dpowermanager-upower.c88 myData.bBatteryPresent = FALSE; in _fetch_current_values()
103 myData.bBatteryPresent |= is_present; in _fetch_current_values()