2006-05-15 Richard Hughes ==== Version 2.15.2 ==== 2006-05-14 Richard Hughes * src/gpm-tray-icon.c: Add in the #ifdef's and new code to allow the use of GtkStatusIcon as eggtrayicon is depreciated. The code still defaults to use eggtrayicon, as quite a few distros can't use GtkStatusIcon yet. You can test by changing the define USE_EGGTRAYICON to FALSE in the file src/gpm-tray-icon.c 2006-05-14 Richard Hughes * src/gpm-manager.c (change_power_policy): Ensure we set the icon to visible for desktops, as before we had to toggle the state in g-p-p to get it to show. 2006-05-14 Richard Hughes * src/gpm-tray-icon.c (gpm_tray_icon_set_image_from_stock): Make sure we only set the icon if it is different to the one already displayed to fix the case where the icons get renamed on package upgrade (and because it's a good idea). Should fix #340557. 2006-05-14 Richard Hughes * src/gpm-brightness.c (gpm_brightness_init): Add support for laptop_panel.brightness_in_hardware if present. We can trivially rename this if the HAL name is to change, but the checks are in place now. This starts to fix #340231. 2006-05-14 Richard Hughes * src/gpm-power.c: (power_get_summary_for_battery_kind): Make strings printf's a bit more translation friendly. Fixes #341582. 2006-05-14 Richard Hughes * src/gpm-manager.c: (battery_status_changed_primary), (battery_status_changed_ups): Do not warn multiple times about the critical action by using the event level system we use for the other notifications. Should fix #333622. 2006-05-10 Richard Hughes * src/eggtrayicon.c: (egg_tray_icon_class_init), (transparent_expose_event), (make_transparent_again), (make_transparent), (egg_tray_icon_realize), (egg_tray_icon_add): Patch from Peter Grundström to adds the ability to handle a transparent background in the tray icon the version of eggtrayicon in gnome-power-manager. Fixes #341227 2006-05-05 Richard Hughes * data/icons/16x16/Makefile.am: * data/icons/22x22/Makefile.am: * data/icons/scalable/Makefile.am: * docs/icon-scheme.txt: Rename the icons from gpm-suspend-to-{x} to gpm-suspend and gpm-hibernate as per the new recommendations: http://live.gnome.org/GnomePowerManager/SleepNames * man/gnome-power-manager.sgml: * src/gpm-stock-icons.c: (gpm_stock_icons_init): * src/gpm-stock-icons.h: * src/gpm-tray-icon.c: Remove all suspend-to-{x} terminology in the code and documentation. 2006-05-05 Richard Hughes * src/gpm-hal.c: (gpm_hal_enable_power_save): Add debugging comment. * src/gpm-manager.c: (change_power_policy): Respect the user policy enabling low power mode when required. * src/gpm-prefs-core.c: (setup_ac_actions): Hide the AC actions vbox when it is empty like we used to do. 2006-05-04 Richard Hughes * src/gpm-screensaver.{c|h}: Add gpm_screensaver_auth_begin() and gpm_screensaver_auth_end() so that we can create a signal "auth-request" when gnome-screensaver shows the password dialogue. This is needed so we can undim the screen when we resume and show the password box. Needed for #333290, but still need to connect this up to the manager stuff to solve the problem. 2006-05-02 Richard Hughes * data/gnome-power-manager.schemas.in, src/gpm-prefs.h: Add the /apps/gnome-power-manager/use_lowpower_{ac|ups|battery} keys. * data/gpm-prefs.glade: Add the checkboxes to enable the lowpower mode checkboxes. * src/gpm-prefs-core.c (setup_ac_actions, setup_battery_actions, setup_ups_actions): Support the new checkboxes and tie the values into gconf keys. Starting to work towards a fix for #340355. * src/gpm-prefs-core.c (gpm_prefs_init): Use gconf_key_changed_cb() to act on gconf keys changing outside of g-p-p. Should help out the Ubuntu guys with their modifications also. 2006-05-02 Richard Hughes * src/gpm-brightness.c (gpm_brightness_level_{down|up}): Add in initial functionality so we can support laptop panels that have hardware step support. Hardcoded for now, awaiting HAL property. 2006-04-30 Richard Hughes * src/gpm-graph-widget.c: (gpm_graph_auto_range): Make sure the time scale cannot be less than 10 minutes as smaller values show the errors in the event-logging code. Fixes #340217. 2006-04-30 Richard Hughes * src/gpm-manager.c: Fix the GPM_BUTTON_BRIGHT_UP_DEP and GPM_BUTTON_BRIGHT_DOWN_DEP values to what were shipped in the HAL 0.5.7 tarball. This fixes the hardware brightness keys for Ubuntu Dapper. 2006-04-30 Richard Hughes * src/gpm-graph-widget.c (gpm_graph_draw_graph): Use the new function gpm_graph_legend_calculate_width() so we compute the legend width instead of hardcoding it. Fixes #340218. 2006-04-30 Richard Hughes * src/gpm-common.h: Update GPM_FAQ_URL. #330889 2006-04-30 Richard Hughes * src/gpm-info-data.c: (gpm_info_data_add): Use the correct format string so we don't crash on ppc platform. I'm surprised GCC didn't warn me about that. Should fix #339974 * src/gpm-manager.c: Use the new manager_explain_reason() calls so we don't have to play games with the reason and actions. This should mean we get more description in the event log, for why we do particular actions. * src/gpm-power.c: (battery_kind_cache_update): Don't fallback to broken battery support if we have 0% percentage charge else we start on "charging" with a full battery. 2006-04-29 Richard Hughes * help/C/figures/gpm-suspend-problem.png: Add missing file to CVS. 2006-04-28 William Jon McCann * src/gpm-manager.c: (update_ac_throttle), (update_dpms_throttle), (update_lid_throttle), (change_power_policy), (dpms_mode_changed_cb), (lid_button_pressed), (screensaver_connection_changed_cb), (gpm_manager_init): * src/gpm-screensaver.c: (gpm_screensaver_connect), (gpm_screensaver_disconnect), (gpm_screensaver_add_throttle), (gpm_screensaver_remove_throttle), (gpm_screensaver_class_init): * src/gpm-screensaver.h: Rework the way throttling is done so that it properly ref-counted. Remove the compatibility with the old g-s API. Fixes #340024 2006-04-28 Richard Hughes * help/C/figures/gpm-suspend-problem.png: * help/C/figures/gpm-unplugged.png: * help/C/gnome-power-manager.xml: * help/Makefile.am: Add another figure and update the documenation. * src/gpm-power.c (battery_kind_cache_update): Slightly re-work a patch from Paul Betts To handle batteries that report they are neither charging or discharging by using ac_adaptor value instead. 2006-04-26 Richard Hughes * src/gpm-hal-monitor.c: (watch_device_connect_property_modified): * configure.in: Depend on a lower version of DBUS, as I've upset crispin and I need his help. #339809. 2006-04-25 Richard Hughes * data/gnome-power-manager.desktop.in: Remove the --sm-disable from the .desktop file in autostart since the gnome-power-manager daemon can cope with being run more than one in a session and it breaks the logout dialog (e.g. on powerbutton) if it is not run with session access. Fixes lp:31103 and #339168 * data/gnome-power-manager.desktop.in: * data/gnome-power-preferences.desktop.in: Change the icon to be gpm-battery-charged * src/gpm-hal-monitor.c: (emit_button_pressed): Also watch the PropertyModified signal, as when HAL resumes and rescans the lid value it does not send a button pressed signal. This means the lid value can get confused *again* when we resume from standby on some machines. Fixes rh:187396 * src/gpm-manager.c: (lid_button_pressed): Ignore duplicated lid button presses so we don't display them on the info graphs. 2006-04-24 Richard Hughes * src/gpm-manager.c (power_on_ac_changed_cb): Fix an operator precedence problem where the logic was all messed up. This was triggering the not-on-ac lid-closed behavior and causing seemingly random suspends. Big thanks to Koichi Takahashi for spotting the problem. * src/gpm-graph-widget.{c|h}: Add the new notification event type. * src/gpm-info-data.{c|h}, src/gpm-info.{c|h}: Add descriptions to the events so we can capture more data about events and key points. * src/gpm-manager.c: Add the extra descriptions where required. 2006-04-23 Richard Hughes * configure.in: Post release bump to 2.15.2