2007-02-12 Richard Hughes ==== Version 2.17.91 ==== 2007-02-12 Richard Hughes * docs/dbus-interface.html: * docs/index.html: Regenerate * tools/Makefile.am: * tools/gnome-power-cmd.sh: Add this new trivial script to fix #405013 2007-02-12 Richard Hughes * docs/dbus-interface.xml: Fix up a load of spelling errors. * tools/gnome-power-bugreport.sh: Update copyright year. 2007-02-11 Richard Hughes * applets/inhibit/inhibit-applet.c: * src/gpm-ac-adapter.c: * src/gpm-ac-adapter.h: * src/gpm-battery.c: * src/gpm-battery.h: * src/gpm-brightness-kbd.c: * src/gpm-brightness-kbd.h: * src/gpm-brightness-lcd.c: * src/gpm-brightness-lcd.h: * src/gpm-button.c: * src/gpm-button.h: * src/gpm-common.c: * src/gpm-common.h: * src/gpm-conf.c: * src/gpm-conf.h: * src/gpm-control.c: * src/gpm-control.h: * src/gpm-cpufreq.c: * src/gpm-cpufreq.h: * src/gpm-dbus-monitor.c: * src/gpm-dbus-monitor.h: * src/gpm-debug.c: * src/gpm-debug.h: * src/gpm-feedback-widget.c: * src/gpm-feedback-widget.h: * src/gpm-graph-widget.c: * src/gpm-graph-widget.h: * src/gpm-hal.c: * src/gpm-hal.h: * src/gpm-idle.c: * src/gpm-info-data.c: * src/gpm-info-data.h: * src/gpm-info.c: * src/gpm-info.h: * src/gpm-inhibit-test.c: * src/gpm-inhibit.c: * src/gpm-inhibit.h: * src/gpm-light-sensor.c: * src/gpm-light-sensor.h: * src/gpm-main.c: * src/gpm-manager.c: * src/gpm-manager.h: * src/gpm-networkmanager.c: * src/gpm-networkmanager.h: * src/gpm-notify.c: * src/gpm-notify.h: * src/gpm-polkit.c: * src/gpm-polkit.h: * src/gpm-power.c: * src/gpm-power.h: * src/gpm-powermanager.c: * src/gpm-powermanager.h: * src/gpm-prefs-core.c: * src/gpm-prefs-core.h: * src/gpm-prefs.c: * src/gpm-prefs.h: * src/gpm-proxy.c: * src/gpm-proxy.h: * src/gpm-refcount.c: * src/gpm-refcount.h: * src/gpm-screensaver.c: * src/gpm-screensaver.h: * src/gpm-sound.c: * src/gpm-sound.h: * src/gpm-srv-backlight.c: * src/gpm-srv-backlight.h: * src/gpm-srv-brightness-kbd.c: * src/gpm-srv-brightness-kbd.h: * src/gpm-srv-cpufreq.c: * src/gpm-srv-cpufreq.h: * src/gpm-srv-screensaver.c: * src/gpm-srv-screensaver.h: * src/gpm-statistics-core.c: * src/gpm-statistics-core.h: * src/gpm-statistics.c: * src/gpm-stock-icons.c: * src/gpm-stock-icons.h: * src/gpm-tray-icon.c: * src/gpm-tray-icon.h: * src/gpm-warning.c: * src/gpm-warning.h: Update my copyright statement to 2007. 2007-02-11 Richard Hughes * src/gpm-battery.c: (gpm_battery_init): Fix a tiny memory leak as spotted in #404929 2007-02-10 Richard Hughes * src/gpm-battery.c: (coldplug_batteries): Do not try to dereference error if we find no battery devices, it might actually be okay. Rework the error handling a little to fix #406529 * src/gpm-ac-adapter.c: (gpm_ac_adapter_init): * src/gpm-button.c: (gpm_button_init): Fix two small memory leaks when no devices are found. 2007-02-10 Richard Hughes * src/gpm-srv-backlight.c: (gpm_srv_backlight_init): Part of a patch from Jon McCann: Don't use the ac-adapter object before you create it. Fixes half of #404474. 2007-02-08 Richard Hughes * src/gpm-common.c: (gpm_exponential_average): * src/gpm-common.h: Rename factor_pc into slew. * src/gpm-graph-widget.c: * src/gpm-graph-widget.h: Add graph title functionality. No UI change, as g-p-s does't do titles. 2007-02-07 Richard Hughes * src/gpm-battery.c: (watch_add_battery): Fix the bug where hotplug batteries (such as mice) would show up more than once after a suspend-resume cycle. Fixes #404929. 2007-02-07 Richard Hughes * src/gpm-graph-widget.c: (gpm_graph_widget_draw_labels), (gpm_graph_widget_get_pos_on_graph): Fix a bug where the labels were negative and the line didn't show when our starting auto-range vale was not zero. 2007-02-07 Richard Hughes * src/gpm-graph-widget.c: (gpm_graph_widget_set_data): Allow datasets to be over-written with new data. 2007-02-07 Richard Hughes * src/gpm-common.c: (gpm_exponential_average): * src/gpm-common.h: * src/gpm-power.c: (battery_kind_cache_update): Move common functionality to a shared file. No logic changes. 2007-02-07 Richard Hughes * src/gpm-graph-widget.c: (gpm_graph_widget_auto_range): Don't autorange INVALID graphs. 2007-02-07 Richard Hughes * src/gpm-graph-widget.c: * src/gpm-graph-widget.h: * src/gpm-statistics-core.c: Allow the graph widget to display more than one data line. This is required for the detailed line fitting algorithm testing. 2007-02-06 Richard Hughes * src/gpm-info.c: Remove some superfluous debugging text. 2007-02-06 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_data_types): * src/gpm-statistics-core.c: (gpm_statistics_type_combo_changed_cb): Prevent a crasher when we open the statistics program very soon after we start gnome-power-manager. 2007-02-06 Richard Hughes * src/gpm-brightness-kbd.c: (gpm_brightness_kbd_set_hw): Apply patch from David Zeuthen : g-p-m times out on lots of method calls on startup. Attached patch makes it work for me on my Macbook Pro. 2007-02-06 Richard Hughes * data/gpm-graph.glade: * src/gpm-graph-widget.c: * src/gpm-graph-widget.h: * src/gpm-statistics-core.c: Add the graph axis caption support. Fixes the first half of #394526 2007-02-06 Richard Hughes * src/gpm-graph-widget.c: * src/gpm-graph-widget.h: * src/gpm-statistics-core.c: Add some initial code to support axis labels. No UI change yet. 2007-02-06 Richard Hughes * docs/dbus-interface.xml: * src/dbus/gpm-dbus-statistics.xml: * src/gpm-info.c: * src/gpm-info.h: * src/gpm-statistics-core.c: Rename two methods in the new statistics API for clarity. Changed from GetAxisType->GetAxisTypes and GetTypes->GetDataTypes. 2007-02-06 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-conf.h: Add the key statistics_show_axis_labels before the string freeze. We might get this feature tested and in before the next release. 2007-02-05 Richard Hughes * data/gpm-inhibit-test.glade: Rename a button so we don't get an error on startup. 2007-02-05 Richard Hughes * src/gpm-main.c: (main): Print the version number at startup. * src/gpm-ac-adapter.c: * src/gpm-battery.c: * src/gpm-brightness-kbd.c: * src/gpm-brightness-lcd.c: * src/gpm-button.c: * src/gpm-cpufreq.c: * src/gpm-hal.c: * src/gpm-hal.h: * src/gpm-light-sensor.c: * src/gpm-manager.c: * src/gpm-power.c: Use conventional GError based error reporting rather than alert the user about missing optional keys. Convert most of the users to just ignore the error by passing NULL to the HAL function, but handle the ones that need something special done. 2007-02-05 Richard Hughes * src/gpm-hal.c: * src/gpm-hal.h: Remove the unused gpm_hal_device_rescan_capability() 2007-02-05 Richard Hughes * src/gpm-brightness-lcd.c: * src/gpm-srv-backlight.c: Make sure we set the policy brightness when gnome-power-manager is started. Also check for the dim brightness in a better way. 2007-02-05 Richard Hughes * src/gpm-info-data.c: (gpm_info_data_add): * src/gpm-info.c: (gpm_statistics_get_types): Don't return the types that have no data when we call GetTypes(). 2007-02-05 Richard Hughes * src/gpm-brightness-lcd.c: Use the old (2.16) GetBrightness and SetBrightness methods because these work. I think the DELL smbios addon is returning an integer rather than an unsigned integer and this is the source of confusion. * src/gpm-common.c: Check that the levels are not zero, else we get non-sensical results. * src/gpm-srv-backlight.c: Set the dim value after the first GetBrightness to avoid setting the dim value as the current brightness. 2007-02-04 Richard Hughes * src/gpm-srv-backlight.c: (button_pressed_cb): Only update the DPMS parameters if we closed the lid, not on every brightness change. 2007-02-04 Richard Hughes * src/gpm-brightness-lcd.c: (gpm_brightness_lcd_init): Add a check for non zero brightness levels. 2007-02-01 Richard Hughes * data/Makefile.am: Move an ifdef to keep Anjuta from printing an error on startup. 2007-02-01 Richard Hughes * src/gpm-inhibit.c: (gpm_inhibit_is_valid): * src/gpm-self-test.c: (test_inhibit): Add some more tests and also fix up a situation where a manual inhibit was not stopping an auto-action. 2007-02-01 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_data): Only try to get the percentage data if we are a laptop. If we are not a laptop then info->priv->percentage_data will be NULL and a dereference will kill gnome-power-manager. Should fix the crash reported by Kjartan Maraas in #402823. 2007-02-01 Richard Hughes * applets/inhibit/inhibit-applet.c: (click_cb): Fix compile error. OOps. * src/gpm-info.c: (gpm_info_log_do_poll): Fix a typo where we were not checking the brightness. 2007-02-01 Richard Hughes * data/gpm-inhibit-test.glade: * docs/dbus-interface.html: * docs/dbus-interface.xml: * docs/icon-scheme.html: * docs/index.html: * src/dbus/gpm-dbus-inhibit.xml: * src/gpm-inhibit-test.c: (dbus_inhibit_gpm), * src/gpm-inhibit.c: (gpm_inhibit_find_cookie), * src/gpm-inhibit.h: * src/gpm-manager.c: (gpm_manager_is_inhibit_valid), * src/gpm-powermanager.c: (gpm_powermanager_inhibit_auto), * src/gpm-powermanager.h: * src/gpm-self-test.c: (test_inhibit): Convert the new API to InhibitAuto for auto-suspend prevention and InhibitManual for stuff like RPM transactions and BIOS flashes. The old manager inhibit API has been converted to the InihibitAuto style to fix #402863 Update the self test program, the inhibit example program and the documentation. 2007-02-01 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_event_log): Do the same fix as #403156 for GetEventLog. 2007-02-01 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_data): Fix a 153 byte memory leak that would happen each time the statistics GetData method was accessed over DBUS. Spotted by Kjartan Maraas, many thanks. Fixes #403156. 2007-01-29 Richard Hughes * src/gpm-power.c: (gpm_power_status_for_device): Make the text more translatable in the power description text. Many thanks for Stephane Raimbault for noticing this. Fixes #402230 2007-01-29 Colin Watson * src/gpm-tray-icon.c: (gpm_tray_icon_sync): Fix arguments to description-changed signal. Fixes #400654 and lp:81427 2007-01-28 Richard Hughes * src/gpm-button.c: (gpm_button_is_lid_closed): * src/gpm-srv-backlight.c: (gpm_srv_backlight_init): Fix a difficult-to-find crasher which would only happen sometimes when the session became idle on a laptop without a backlight. 2007-01-28 Richard Hughes * applets/brightness/brightness-applet.c: * data/icons/16x16/Makefile.am: * data/icons/22x22/Makefile.am: * data/icons/24x24/Makefile.am: * data/icons/scalable/Makefile.am: * data/icons/scalable/gpm-brightness-kbd-disabled.svg: * data/icons/scalable/gpm-brightness-lcd-disabled.svg: * docs/icon-scheme.xml: Add some icons by Paul Betts to convey the brightness control in the addon is either disabled, or no hardware is present. Fixes #400006 2007-01-26 Richard Hughes * src/gpm-tray-icon.c: (gpm_tray_icon_set_image_from_stock): Fix a crasher on PPC where we were not sending the correct marshalled type on icon change. Should fix lp:81427 and #400654. 2007-01-25 Richard Hughes * configure.in: * src/gpm-control.c: (gpm_control_is_policy_timout_valid): Add the --enable-checkfg configure argument to upstream one of the ubuntu patches. You only need this argument if you want to check with check-foreground-console before you do an action. Original patch from Oliver Grawert, many thanks.