2007-06-13 Richard Hughes ==== Version 2.19.3 ==== 2007-06-13 Richard Hughes * src/gpm-cell-array.c: (gpm_cell_array_emit_system_action), (gpm_cell_array_percent_changed): * src/gpm-engine.c: (gpm_engine_get_summary): * src/gpm-profile.c: (gpm_profile_get_accuracy_average): * src/gpm-profile.h: Don't try to do the policy action when the average accuracy is low. This should solve the problem where g-p-m shuts down when the profile is very new, and g-p-m has not "seen" the lower states. Should fix #446895 and other duplicates. * src/gpm-array-float.c: (gpm_array_float_get_average): * src/gpm-array-float.h: * test/gpm-st-array-float.c: (gpm_st_array_float): Add code to compute the average of a float list. * test/gpm-selftest-hal-devices.fdi: Use BAT0. * test/gpm-st-cell.c: (gpm_cell_get_battery), (gpm_st_cell): * test/gpm-st-main.c: (gpm_st_failed), (main): Stop the checks when an error happens. * test/install-fdi.sh: Restart HAL to get the new fdi set. 2007-06-13 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-conf.h: Add in /apps/gnome-power-manager/general/debug for the future. 2007-06-07 Gabor Kelemen * applets/brightness/GNOME_BrightnessApplet.server.in.in: * applets/inhibit/GNOME_InhibitApplet.server.in.in: Mark descriptions for translation. Fixes #445173 2007-06-06 Richard Hughes * src/gpm-main.c: (main): * src/gpm-webcam.c: (gpm_webcam_get_image): Do the gst_init where we have argv. 2007-06-02 Richard Hughes * src/gpm-graph-widget.c: (gpm_graph_widget_draw_graph): Give more room to the y-axis labels as sometimes the text does not fit. Ideally we should make this auto-range, but this will do for now. 2007-06-01 Richard Hughes * data/gpm-prefs.glade: * src/gpm-prefs-core.c: (prefs_setup_ac), (prefs_setup_battery): Move the headings around, and also include a dim-on-idle checkbox for each battery-ac state. * src/gpm-common.c: (gpm_discrete_to_fraction): * src/gpm-common.h: * test/gpm-st-common.c: (gpm_st_common): Add a new function and test it. * src/gpm-backlight.c: (gpm_backlight_init): * src/gpm-brightness-kbd.c: (adjust_kbd_brightness_according_to_ambient_light): * src/gpm-light-sensor.c: (gpm_light_sensor_get_absolute), (gpm_light_sensor_calibrate), (gpm_light_sensor_get_relative), (gpm_light_sensor_poll_cb), (gpm_light_sensor_init): * src/gpm-light-sensor.h: * src/gpm-webcam.c: Add in functionality so we can get relative brightness readings after an initial calibration has been done. 2007-05-25 Richard Hughes * src/gpm-manager.c: (gpm_engine_charge_critical_cb): Don't segfault if the schema is invalid. 2007-05-23 Richard Hughes * src/gpm-backlight.c: (gpm_backlight_set_brightness): Just set the AC brightness when we adjust the brightness applet. We might do something cleverer in the future. 2007-05-22 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-backlight.c: (gpm_backlight_brightness_evaluate_and_set), (gpm_backlight_notify_system_idle_changed), (idle_changed_cb), (gpm_backlight_init): * src/gpm-conf.h: Make the brightness dim code "learn" to take longer to dim if you keep undimming the screen shortly after auto-dimming it. 2007-05-22 Richard Hughes * data/gnome-power-manager.schemas.in: Correct key typo. 2007-05-22 Richard Hughes * data/gnome-power-manager.schemas.in: Change default of /apps/gnome-power-manager/general/network_sleep to false, as we now do the system action in pm-utils. The code will be ripped out altogether closer to 2.20. 2007-05-22 Richard Hughes * po/POTFILES.in: * src/Makefile.am: * src/gpm-cell-array.c: (gpm_cell_array_percent_changed), (gpm_cell_charging_changed_cb), (gpm_cell_discharging_changed_cb), (gpm_cell_array_init), (gpm_cell_array_finalize): * src/gpm-engine.c: (gpm_engine_get_icon), (gpm_engine_init), (gpm_engine_finalize): * src/gpm-warning.c: * src/gpm-warning.h: * src/gpm-warnings.c: (gpm_warnings_get_state_csr), (gpm_warnings_get_state_time), (gpm_warnings_get_state_percentage), (gpm_warnings_get_state), (gpm_warnings_constructor), (gpm_warnings_finalize), (gconf_key_changed_cb), (gpm_warnings_class_init), (gpm_warnings_init), (gpm_warnings_new): * src/gpm-warnings.h: * test/Makefile.am: Rename the gpm_warning module to gpm_warnings to avoid aliasing the gpm_warning debugging command. Fixes build on Solaris, #440409 2007-05-22 Richard Hughes * applets/brightness/brightness-applet.c: (gpm_brightness_applet_dbus_connect): * data/gnome-power-manager.schemas.in: * data/gpm-prefs.glade: * src/gpm-backlight.c: (gpm_backlight_sync_policy), (gpm_common_sum_scale), (gpm_backlight_brightness_evaluate_and_set), (conf_key_changed_cb), (ac_adapter_changed_cb), (button_pressed_cb), (gpm_backlight_notify_system_idle_changed), (idle_changed_cb), (sensor_changed_cb), (gpm_backlight_finalize), (gpm_backlight_init): * src/gpm-brightness-lcd.c: (gpm_brightness_lcd_dim_hw), (gpm_brightness_lcd_set_std), (gpm_brightness_lcd_init): * src/gpm-brightness-lcd.h: * src/gpm-cell-array.c: (gpm_cell_array_get_time_until_action): * src/gpm-conf.h: * src/gpm-cpufreq.c: (gpm_cpufreq_sync_policy), (conf_key_changed_cb): * src/gpm-engine.c: (conf_key_changed_cb), (gpm_engine_init): * src/gpm-info.c: (gpm_info_init): * src/gpm-light-sensor.c: (gpm_light_sensor_get), (gpm_light_sensor_poll_cb): * src/gpm-manager.c: (gpm_manager_sync_policy_sleep), (idle_do_sleep), (lid_button_pressed), (ac_adapter_changed_cb), (manager_critical_action_do), (conf_key_changed_cb), (gpm_engine_charge_critical_cb), (gpm_engine_charge_action_cb), (gpm_manager_init): * src/gpm-prefs-core.c: (gpm_prefs_icon_radio_cb), (conf_key_changed_cb), (prefs_setup_notification), (prefs_setup_ac), (prefs_setup_battery), (prefs_setup_ups): * src/gpm-sound.c: (conf_key_changed_cb), (gpm_sound_init): * src/gpm-srv-brightness-kbd.c: (conf_key_changed_cb), (ac_adapter_changed_cb): * src/gpm-srv-screensaver.c: (screensaver_auth_request_cb): * src/gpm-statistics-core.c: (conf_key_changed_cb), (gpm_statistics_checkbox_events_cb), (gpm_statistics_refresh_axis_labels), (gpm_statistics_refresh_data), (gpm_statistics_type_combo_changed_cb), (gpm_statistics_populate_graph_types), (gpm_statistics_init): * src/gpm-tray-icon.c: (conf_key_changed_cb), (gpm_tray_icon_init): * src/gpm-warning.c: (gpm_warning_init): * test/gpm-st-webcam.c: (gpm_st_webcam): Rework the brightness interactions, and rename a large part of the gconf schemas. Currently unfinished. 2007-05-21 Benjamin Canou * applets/brightness/brightness-applet.c: (gpm_applet_draw_cb), (gpm_applet_change_background_cb), (gpm_applet_update_popup_level), (gpm_applet_plus_cb), (gpm_applet_scroll_cb), (gpm_applet_theme_change_cb), (gpm_applet_stop_scroll_events_cb), (gpm_brightness_applet_init): Correct drawing code to handle themes with panel background picture. Correct max value from 99% to 100%. Correct tooltip behaviour. 2007-05-21 Richard Hughes * src/gpm-debug.c: (gpm_error_real): Still exit, even if we are not debugging. Fixes #438838 2007-05-18 Richard Hughes * data/gnome-power-manager.schemas.in: * data/gpm-prefs.glade: * src/gpm-backlight.c: (gpm_backlight_set_brightness), (sensor_changed_cb), (gpm_backlight_finalize), (gpm_backlight_init): * src/gpm-conf.h: * src/gpm-light-sensor.c: (gpm_light_sensor_get_hw), (gpm_light_sensor_get), (gpm_light_sensor_constructor), (gpm_light_sensor_finalize), (gpm_light_sensor_class_init), (gpm_light_sensor_has_hw), (gpm_light_sensor_poll_cb), (conf_key_changed_cb), (gpm_light_sensor_init), (gpm_light_sensor_new): * src/gpm-light-sensor.h: * src/gpm-prefs-core.c: (prefs_setup_general), (gpm_prefs_init): * src/gpm-prefs-server.h: Make the ambient light sensor do something interesting, and remove the UI from the prefs program. We should just choose good defaults, and then just learn what the user wants. 2007-05-18 Richard Hughes * applets/brightness/brightness-applet.c: * src/Makefile.am: * src/dbus/xdg-power-management-core.xml: * src/gpm-backlight.c: (gpm_backlight_init): * src/gpm-engine.c: (gpm_engine_start): * src/gpm-light-sensor.c: (gpm_light_sensor_init): * src/gpm-manager.c: (gpm_manager_get_preferences_options), (gpm_manager_init), (gpm_manager_finalize): * src/gpm-manager.h: * src/gpm-prefs-core.c: (gpm_dbus_method_int), (prefs_setup_ambient), (gpm_prefs_init): * src/gpm-prefs-server.c: (gpm_prefs_server_get_capability), (gpm_prefs_server_set_capability), (gpm_prefs_server_class_init), (gpm_prefs_server_init), (gpm_prefs_server_new): * src/gpm-prefs-server.h: Move the capabilities detection to the daemon, don't try to second guess the information in the prefs tool. 2007-05-17 Richard Hughes * src/gpm-backlight.c: (idle_changed_cb): * src/gpm-idle.c: (session_idle_changed_cb), (powersave_idle_changed_cb), (gpm_idle_init): * src/gpm-idle.h: Dim the screen after a few seconds. 2007-05-17 Richard Hughes * applets/brightness/Makefile.am: * applets/brightness/brightness-applet.c: * applets/brightness/brightness-applet.h: Use DbusWatch. * libdbus-glib/Makefile.am: * libdbus-glib/libdbus-proxy.c: (dbus_proxy_disconnect): * libdbus-glib/libdbus-watch.c: Add new class, not wrapping the proxy. Simple. * src/gpm-idle.c: (gpm_idle_init): * src/gpm-screensaver.c: * src/gpm-screensaver.h: Add idle reporting for powersave. 2007-05-17 Richard Hughes * applets/brightness/brightness-applet.c: (gpm_applet_get_icon), (gpm_applet_check_size), (gpm_applet_draw_cb), (gpm_applet_destroy_popup_cb), (gpm_applet_update_tooltip), (gpm_applet_update_popup_level), (gpm_applet_plus_cb), (gpm_applet_minus_cb), (gpm_applet_slide_cb), (gpm_applet_key_press_cb), (gpm_applet_scroll_cb), (gpm_applet_create_popup), (gpm_applet_popup_cb), (gpm_applet_dialog_about_cb), (gpm_applet_destroy_cb), (brightness_changed_cb), (gpm_brightness_applet_init), (gpm_applet_bonobo_cb): Don't reduce the brightness when clicking on the icon. Fixes #428401 * src/gpm-backlight.c: (conf_key_changed_cb): Emit BrightnessChanged events when the conf key changes. 2007-05-17 Richard Hughes * Makefile.am: * applets/brightness/Makefile.am: * applets/brightness/brightness-applet.c: (gpm_applet_get_brightness), (gpm_applet_set_brightness), (update_level), (destroy_cb), (gpm_brightness_applet_init): * applets/brightness/brightness-applet.h: * applets/inhibit/Makefile.am: * applets/inhibit/inhibit-applet.c: (gpm_applet_inhibit), (gpm_applet_uninhibit), (gpm_applet_has_inhibit), (click_cb), (destroy_cb), (gpm_inhibit_applet_init): * applets/inhibit/inhibit-applet.h: * configure.in: * libgpm-glib/Makefile.am: * libgpm-glib/libgpm.c: * libgpm-glib/libgpm.h: * src/Makefile.am: * src/gpm-common.h: * src/gpm-main.c: * src/gpm-manager.c: * src/gpm-notify.c: * src/gpm-prefs-core.c: * src/gpm-profile.c: * src/gpm-statistics-core.c: * src/gpm-tray-icon.c: * test/Makefile.am: * test/gpm-st-inhibit.c: (inhibit), (uninhibit), (has_inhibit), (gpm_st_inhibit): * test/gpm-st-proxy.c: Remove libgpm, it's only used properly in one place. Also lets us solve the brghtness bug easily (to follow). 2007-05-15 Richard Hughes * src/gpm-profile.c: (gpm_profile_load_data): Create the data directory with the correct permissions. * test/gpm-st-webcam.c: (gpm_st_webcam): Oops. Actually add this file. 2007-05-14 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-webcam.c: * src/gpm-webcam.h: * test/Makefile.am: * test/gpm-st-main.c: * test/gpm-st-main.h: Make some more changes to the webcam module, and add a self-test section that just gets an image. 2007-05-14 Richard Hughes * data/gpm-prefs.glade: * src/gpm-conf.h: * src/gpm-light-sensor.c: More fixes. 2007-05-14 Richard Hughes * data/gnome-power-manager.schemas.in: Fix type. 2007-05-14 Richard Hughes * configure.in: * data/gnome-power-manager.schemas.in: * data/gpm-prefs.glade: * src/Makefile.am: * src/gpm-light-sensor.c: * src/gpm-webcam.c: * src/gpm-webcam.h: Add initial code to use a webcam as a brightness sensor. 2007-05-14 Richard Hughes * configure.in: Post release bump to 2.19.3