aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
Commit message (Collapse)AuthorAgeFilesLines
* Use gsettings to store the status of "Show time in Menu Bar" optionJavier Jardón2011-08-221-1/+15
| | | | | Fixes https://bugs.launchpad.net/indicator-power/+bug/829853
* Follow standard alignment of icons in menusJavier Jardón2011-08-221-4/+13
| | | | | Fixes https://bugs.launchpad.net/ubuntu/+source/indicator-power/+bug/829697
* Do not use a space before an ellipsis at the end of a string.Javier Jardón2011-08-221-1/+1
|
* Do not show the default icon by defaultJavier Jardón2011-08-121-1/+0
| | | | | | Show the icon can cause problems in machines with no power devices as the icon will not be updated
* Free memory in the correct placeJavier Jardón2011-08-121-3/+3
|
* Show time left to use without brackets, time left to charge with brackets.Javier Jardón2011-08-121-3/+3
| | | | | Fixes bug http://bugs.launchpad.net/indicator-power/+bug/824629
* Fix some memory leaksJavier Jardón2011-08-111-0/+8
|
* Don't show settings links when used in a greeterMichael Terry2011-08-111-20/+30
|\
| * don't show settings links when used in a greeterMichael Terry2011-08-031-20/+30
| |
* | Use a string when the energy source is not presentJavier Jardón2011-08-111-1/+7
| | | | | | | | | | Use "not present" instead "0%"
* | Only batteries can be primary devicesJavier Jardón2011-08-111-0/+4
| | | | | | | | | | So only batteries status icons are allowed in the menu title
* | Fix some memory leaksJavier Jardón2011-08-111-0/+6
|/
* Do not support the gnome-power-manager dbus interface anymoreJavier Jardón2011-08-031-7/+0
| | | | | The interface was removed upstream and moved to gnome-settings-daemon
* Do not draw a separator between the configuration options in the menuJavier Jardón2011-07-181-5/+1
|
* Use the new D-Bus interface if gnome-settings-daemon is new enoughJavier Jardón2011-07-181-3/+15
| | | | | | Prepare the indicator-power about the changes upstream, where the code from gnome-power-manager is being moved to gnome-settings-daemon
* Always select a device, doesnt matter Its charging/discharging or notJavier Jardón2011-07-151-3/+4
| | | | | Fixes https://bugs.launchpad.net/ubuntu/+source/indicator-power/+bug/810872
* Do not show the device name in the menu titleJavier Jardón2011-07-141-1/+1
|
* Show "X (charged)" if it is fully charged and not dischargingJavier Jardón2011-07-141-7/+16
|
* Only show the remaining time if it is discharging with less than 12 hours leftJavier Jardón2011-07-141-5/+13
|
* Refine the text of the items in the menu to follow the specificationJavier Jardón2011-07-141-8/+16
| | | | | | | | | - "X (H:MM to charge)" if it is charging, with the accessible name "X: MM minutes to charge" or "X: H hours MM minutes to charge" - "X (H:MM left)" if it is discharging with less than 12 hours left,x with the accessible name "X: MM minutes left" or "X: H hours MM minutes left".
* Draw option checkbox as check, not radioMichael Terry2011-07-141-1/+0
|\
| * draw option checkbox as check, not radioMichael Terry2011-07-131-1/+0
| |
* | Show the apropiate icon depending of the status of the devicesJavier Jardón2011-07-141-2/+40
|/ | | | | | | | | | Follow https://wiki.ubuntu.com/BatteryStatusMenu : - If anything is discharging, the menu title should represent the thing that is estimated to lose power first. - If no devices are discharging, the menu title should represent the device that is estimated to take longest to charge.
* Create new function to store the logic to put the primary deviceJavier Jardón2011-07-131-31/+36
|
* Do not use indicator_image_helper()Javier Jardón2011-07-071-13/+17
| | | | | In GTK3 it can support fallbacks in GtkImage
* Add support for multiple devices in the menuJavier Jardón2011-07-071-13/+35
|
* Get all the available devices instead the primary oneJavier Jardón2011-07-071-12/+58
| | | | | | | | | Get all the devices with the "GetDevices" dbus call. Do not use "GetPrimaryDevice" as this is really a private api for the communication between gpm and gnome-shell Also, we avoid a bug in the "GetPrimaryDevice" interface about no power device is detected when AC power is connected to the laptop.
* Use the 'missing' icon instead the 'empty' icon by defaultJavier Jardon2011-07-061-1/+1
|
* Always show 2 digits for the minutesJavier Jardon2011-07-051-2/+2
|
* Fix typoJavier Jardon2011-07-051-1/+1
|
* Use a bigger icon for the menu itemsJavier Jardon2011-07-051-1/+1
|
* Use the correct string for the menu item iconJavier Jardon2011-07-051-1/+4
|
* Do not create a new GtkMenu instance with every changeJavier Jardon2011-07-051-1/+6
| | | | | But remove the children and rebuild the menu again so Its up-to-date
* Do not use the notify:visible signal to update the menuJavier Jardon2011-07-051-13/+0
|
* Remove debug outputJavier Jardón2011-07-051-3/+1
|
* Store the current device in the private structureJavier Jardón2011-07-051-11/+3
|
* notify signalJavier Jardón2011-07-051-0/+13
|
* Add real info in the menu itemJavier Jardón2011-07-041-10/+61
|
* Rebuild menu when there is a change in the DBUS interfaceJavier Jardón2011-07-041-51/+53
|
* Move callbacks to the beginning of the fileJavier Jardón2011-07-041-32/+32
|
* Construct the time details in a separate functionJavier Jardón2011-07-041-32/+48
|
* Build menu dynamicallyJavier Jardón2011-07-041-3/+2
|
* Add some more kind of devicesJavier Jardón2011-07-011-0/+12
| | | | | Bump upower required version to 0.9.5 because this
* Do not show the device name in the menu titleJavier Jardón2011-07-011-2/+2
|
* Activate the use of icons in the menuJavier Jardón2011-07-011-1/+6
|
* Use "Battery" instead "Laptop Battery"Javier Jardón2011-07-011-1/+1
|
* Return the correct accessible descriptionJavier Jardón2011-07-011-10/+21
|
* Use the short time string in the labelJavier Jardón2011-07-011-1/+7
|
* Get also a short time stringJavier Jardón2011-07-011-26/+36
| | | | | | | So we have: 1:45 for the label 1 hour 45 minutes for the detailed description
* Add device name to the labelJavier Jardón2011-07-011-41/+58
|