New question #78762 on devicekit-power in ubuntu:
https://answers.edge.launchpad.net/ubuntu/+source/devicekit-power/+question/78762

I'm working on improving notifications in gnome-power-manager:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/399492

I'm trying to simplify some of the strings. Many strings say something like 
"Laptop battery full"  which we'd like to shorten to "Battery full"

However, GPM also checks the status of other batteries attached to the system, 
so we'd only say "Battery full" if it is the only battery present.

I'd like two write a short c code that can check if any other battery is 
attached besides the laptop battery. I know that there is an enumeration method 
on org.freedesktop.DeviceKit.Power which returns an array of devices, and you 
can get the type property from org.freedesktop.DeviceKit.Power.Device. However, 
I'm really new to dbus and want to make so this snippet as efficiently as 
possible.

I'd appreciate any help pointing me towards where I could get more information 
on this. The file I'm working on is:
http://bazaar.launchpad.net/~vcs-imports/gnome-power/trunk/annotate/head%3A/src/gpm-manager.c
in function: gpm_engine_low_capacity_cb
at line 1103

Thank you.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.

_______________________________________________
Mailing list: https://launchpad.net/~ubuntuforums-unanswered
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntuforums-unanswered
More help   : https://help.launchpad.net/ListHelp

Reply via email to