2007-07-04 Richard Hughes ==== Version 2.19.5 ==== 2007-07-04 Richard Hughes * test/gpm-st-main.c: (main): Don't mark text translatable. This program is not installed, and is not used by end users. Fixes #453721 2007-07-04 Richard Hughes * src/gpm-cell-unit.h: Lower the value of GPM_CELL_UNIT_MIN_CHARGED_PERCENTAGE to 60 to cope with really broken batteries, or when using smapi-tools. Fixes #411932 2007-07-04 Richard Hughes * src/gpm-notify.c: (notify_general_clicked_cb), (gpm_notify_perhaps_recall), (gpm_notify_sleep_failed): Provide a link to the quirk self-help site when sleep fails. Fixes #442425 2007-07-04 Richard Hughes * help/C/gnome-power-manager.xml: Fix power units confusion. Fixes #423289 2007-07-04 Richard Hughes * data/sounds/gpm-suspend-failure.wav: Use a more professional warning sound. Fixes #406144 2007-07-01 Richard Hughes * src/gpm-array-float.c: (gpm_array_float_free): * src/gpm-main.c: (main): * test/gpm-st-array-float.c: (gpm_st_array_float): * test/gpm-st-cell-array.c: (gpm_st_cell_array): * test/gpm-st-cell.c: (gpm_st_cell): * test/gpm-st-hal-device.c: (gpm_st_hal_device): Fix some memory leaks. 2007-07-01 Richard Hughes * libdbus-glib/libdbus-proxy.c: (dbus_proxy_connect), (dbus_proxy_disconnect), (dbus_proxy_get_proxy): * libhal-glib/libhal-gpower.c: (hal_gpower_has_support): * src/gpm-array.c: (gpm_array_get): Don't push debugging text to stderr. * src/gpm-inhibit.c: (gpm_inhibit_error_quark), (gpm_inhibit_un_inhibit): * src/gpm-inhibit.h: Set an error when we return false for the UnInhibit. * test/gpm-st-array-float.c: (gpm_st_array_float): * test/gpm-st-array.c: (gpm_st_array): * test/gpm-st-cell-array.c: (gpm_st_cell_array): * test/gpm-st-cell-unit.c: (gpm_st_cell_unit): * test/gpm-st-cell.c: (gpm_st_cell): * test/gpm-st-common.c: (gpm_st_common): * test/gpm-st-graph-widget.c: (clicked_passed_cb), (clicked_failed_cb), (gpm_st_title_graph), (gpm_st_graph_widget): * test/gpm-st-hal-device.c: (gpm_st_hal_device): * test/gpm-st-hal-devicestore.c: (gpm_st_hal_devicestore): * test/gpm-st-hal-manager.c: (gpm_st_hal_manager): * test/gpm-st-hal-power.c: (gpm_st_hal_power): * test/gpm-st-inhibit.c: (uninhibit), (gpm_st_inhibit): * test/gpm-st-main.c: (gpm_st_start), (gpm_st_end), (gpm_st_title), (gpm_st_success), (gpm_st_failed), (gpm_st_run_test), (main): * test/gpm-st-main.h: * test/gpm-st-profile.c: (gpm_st_profile): * test/gpm-st-proxy.c: (gpm_st_proxy): * test/gpm-st-webcam.c: (gpm_st_webcam): Try a better infrastructure for the self tests. It's better. Trust me. 2007-06-29 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-conf.h: * src/gpm-inhibit.c: (gpm_inhibit_inhibit), (gpm_inhibit_un_inhibit): * src/gpm-manager.c: (manager_policy_do), (has_inhibit_changed_cb), (gpm_manager_init): * src/gpm-notify.c: (gpm_notify_inhibit_lid): * src/gpm-notify.h: * src/gpm-stock-icons.h: Add functionality so that g-p-m warns the user when manually inhibited and the lid action on battery is suspend or hibernate. Fixes #452244 2007-06-26 Richard Hughes * src/gpm-webcam.c: (gpm_webcam_get_brightness): If the webcam brightness capture fails we exit because the image generated in ~/.gnome2/gnome-power-manager/webcam.png has zero length. Patch by nadir@users.sourceforge.net, many thanks. Fixes #451241. 2007-06-25 Richard Hughes * src/gpm-engine.c: (gpm_engine_get_summary): Don't mention profiles (instead use 'time'), and remove the warning as users are not going to know what to do. Fixes #450362 2007-06-25 Richard Hughes * src/gpm-array.c: (gpm_array_add): Don't do crazy things when adding points. We already do clever things to remove points, so just add them. * src/gpm-statistics-core.c: (gpm_statistics_refresh_data): Increase the size of the gaussian array to further smooth the data. * test/gpm-st-array.c: (gpm_st_array): Correct a typo. We should never not add, even when zero. 2007-06-25 Richard Hughes * src/gpm-profile.c: (gpm_profile_register_percentage): Don't try to save the 100% profile point, which can happen the moment the percentage charge hits 100% from 99% a split second before being marked as non-discharging. 2007-06-24 Richard Hughes * test/gpm-selftest-hal-devices.fdi: Match on any primary battery, rather than a specific UDI. 2007-06-24 Richard Hughes * test/gpm-st-graph-widget.c: (gpm_st_graph_widget): * test/gpm-st-main.c: (main): Don't stop running the interactive test after the graph check. 2007-06-24 Richard Hughes * src/gpm-graph-widget.c: Fix the event dot stacking. * src/gpm-info.c: * src/gpm-info.h: Monitor and log powersave events. * src/gpm-graph-widget.h: * src/gpm-statistics-core.c: (gpm_statistics_refresh_events): * test/gpm-st-graph-widget.c: (gpm_st_graph_widget): Allow clearing of the event data. 2007-06-24 Richard Hughes * src/gpm-graph-widget.c: (gpm_graph_widget_auto_range): Cosmetic adjustments to ranging for time. 2007-06-24 Richard Hughes * src/gpm-main.c: (main): * tools/gnome-power-bugreport.sh: Report the installed g-p-m version in bugreports. 2007-06-24 Richard Hughes * src/gpm-info.c: Move the colour defines here. * src/gpm-statistics-core.c: (gpm_statistics_refresh_data): * src/gpm-graph-widget.h: Allow the graph data to be cleared, so rename the function to create. * test/gpm-st-graph-widget.c: (gpm_st_graph_widget): * test/gpm-st-main.c: (gpm_st_failed): Add lots more tests. * src/gpm-graph-widget.c: Fix the no-legend bug, and the autoranging bugs. We need more unit-tests, but this should fix the most glaring errors. 2007-06-24 Gabor Kelemen * src/gpm-main.c: * src/gpm-statistics.c: * src/gpm-prefs.c: use g_option_context_set_translation_domain to translate application description. Closes bug #450154. 2007-06-24 Richard Hughes * src/gpm-graph-widget.c: * src/gpm-graph-widget.h: Rip out some unused API. * test/Makefile.am: * test/gpm-st-graph-widget.c: * test/gpm-st-main.c: (main): * test/gpm-st-main.h: Add a self test module for the graph. It's incomplete, and already shows numerous bugs with the graphing code. More to come. 2007-06-23 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_parameters): Correct axis label, the unit is already encoded in the value. 2007-06-19 Jaap Haitsma * src/gpm-main.c: (main): Add g_set_application_name * src/gpm-trayicon.c: (gpm_tray_icon_show_about_cb): Make about dialog work with GTK 2.12 Add website label. Closed #448570 2007-06-17 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-conf.h: * src/gpm-manager.c: (gpm_manager_init): Add a special key to detect if the gconf schema has been correctly installed. I'm getting more and more bugreports from people compiling g-p-m from source, but not installing the default schema and thus getting odd unreproducable crashes. 2007-06-17 Stéphane Raimbault * src/gpm-info.c: (gpm_statistics_add_events_typical): Allow different translations for the same string in two different contexts. Closed #413642. 2007-06-15 Richard Hughes * src/gpm-button.c: (emit_button_pressed): Only do the sound if we configured sound effects to be on. * src/gpm-sound.c: (gpm_sound_play), (gpm_sound_force), (gpm_sound_finalize), (gpm_sound_init): Do the sounds in-process, rather than executing gst-launch. 2007-06-15 Richard Hughes * data/sounds/Makefile.am: * src/gpm-button.c: (emit_button_pressed), (gpm_button_init), (gpm_button_finalize): * src/gpm-sound.c: (gpm_sound_force): * src/gpm-sound.h: Emit a sound when the lid state changes, which I need for debugging. 2007-06-14 Richard Hughes * src/gpm-idle.c: (gpm_idle_init): Initialise a variable to maybe fix #446496. 2007-06-14 Richard Hughes * applets/brightness/brightness-applet.c (gpm_applet_get_icon): Use the new invalid icon when g-p-m is not running. Fixes #433367 * applets/brightness/brightness-applet.c (gpm_brightness_applet_dbus_connect): Refresh the value when g-p-m re-appears back on the bus, so the value on the slider is correct. 2007-06-14 Richard Hughes * docs/backlight-interactions.svg: Add this useful diagram. 2007-06-14 Richard Hughes * data/icons/16x16/Makefile.am: * data/icons/22x22/Makefile.am: * data/icons/24x24/Makefile.am: * data/icons/48x48/Makefile.am: * data/icons/scalable/Makefile.am: * data/icons/scalable/gpm-brightness-kbd-invalid.svg: * data/icons/scalable/gpm-brightness-lcd-invalid.svg: * docs/icon-naming.txt: Add some new icons so we can tell the difference between no hardware and no gnome-power-manager. 2007-06-14 Richard Hughes * src/gpm-conf.c: (gpm_conf_init): * src/gpm-conf.h: * src/gpm-screensaver.c: (gconf_key_changed_cb): * src/gpm-screensaver.h: Watch the gnome-screensaver keys to fix #422124. 2007-06-13 Richard Hughes * src/gpm-engine.c: (gpm_engine_get_summary): Make wording better. 2007-06-13 Richard Hughes * configure.in: Post release bump to 2.19.4