2006-02-20 Richard Hughes ==== Version 2.13.91 ==== 2006-02-20 Richard Hughes src/gpm-manager.c (lid_button_pressed): Keep track of the lid state internally in the manager state. (power_on_ac_changed_cb): We do the lid close on battery action if the ac_adapter is removed when the laptop is closed and on battery. This should fix (#331655). (battery_low_get_title): Changed "Power Warning" to "Power Information" for the title when the ac_adapter is removed. Fixes (#331865). 2006-02-20 Richard Hughes * src/gpm-prefs.c (gpm_prefs_setup_sleep_slider, gpm_prefs_setup_brightness_slider, gpm_prefs_setup_action_combo, setup_icon_policy): Make the widgets disabled if the gconf key is not writeable. Fixes bug (#327893) * help/C/gnome-power-manager.xml: document why the widgets might be disabled. 2006-02-20 Richard Hughes * help/C/gnome-power-manager.xml: document the problems with Suspend on low power in a new known-bugs section. * src/gpm-prefs.c (setup_battery_actions): Add back option ACTION_SUSPEND by popular request (#330267) 2006-02-19 Richard Hughes * help/C/gnome-power-manager.xml: document /apps/gnome-power-manager/lock_use_* to fix bug #331717. Also tidy up this document so it can be easily changed in the future. 2006-02-19 Jaap Haitsma * src/gpm-prefs.c, data/gpm-prefs.glade: remove suspend button action from the GUI 2006-02-19 Richard Hughes * configure.in, SConstruct, docs/Makefile.am: Remove doxygen build support as hardly any files now build. Fixes #327743. * data/gnome-power-manager.schemas.in, src/gpm-prefs.h, src/gpm-manager.c: Only use lock_on_blank_screen, lock_on_suspend, lock_on_hibernate as this should give us enough power for custom users and also simplicity so we don't have a dozen keys. We default to gnome-screensaver settings. 2006-02-19 Richard Hughes * src/gpm-manager.c (battery_status_changed_primary): Ahh! Merged a previous version of the (! on_ac) -> (! on_ac) patch. Fixed now. 2006-02-18 Richard Hughes * src/gpm-tray-icon.c (gpm_tray_icon_popup_cleared_cd): Add this function so we re-enable the tooltip. (gpm_tray_icon_button_press_cb): Disable the tooltip. (gpm_tray_icon_constructor): Set up the callback for the tray hide event. This means that the tooltip will not show when the popup menu is on the screen. This fixes bug (#331075). 2006-02-18 Richard Hughes * data/gpm-prefs.glade, src/gpm-prefs.c (gpm_prefs_setup_checkbox, gpm_prefs_checkbox_lock_cb): Remove the lock checkboxes. :-) * data/gnome-power-manager.schemas.in, src/gpm-prefs.h: Add lock_use_screensaver_settings to *finally* fix bug (#331164) * src/gpm-manager.c (manager_policy_do): Allow over-ride with settings from gnome-screensaver. Default to using gnome-screensaver settings as it's most obvious. Sabayon can be used to tweak these settings per domain if required. 2006-02-18 Richard Hughes * src/gpm-prefs.c (setup_ac_actions): Hide the ac "Actions" box if there is no lib button, as it's now empty. (setup_battery_actions): Use the right glade name for the labels. 2006-02-18 Richard Hughes * src/gpm-manager.c (manager_policy_do): Add action BLANK to trigger a DPMS monitor off state. (lid_button_pressed): Don't do DPMS state unless we have blank as our option. * src/gpm-prefs.c: allow blank as an option for lid close events. This stops the problem of having "No action", "Also lock screen" in the GUI. * data/gnome-power-manager.schemas.in: Change the default action of action_ac_button_lid to blank. 2006-02-18 Richard Hughes * src/gpm-manager.c (manager_policy_do): Add a do_lock argument to this function so we can now specificy the lock policy according to the event that caused the policy to be performed. Do the locking here rather than gpm_manager_suspend and gpm_manager_hibernate. * src/gpm-manager.c (idle_changed_cb): BUGFIX: Do the idle action -not- the critical action. Not sure how nobody has triggered this yet. * src/gpm-manager.c (suspend_button_pressed, lid_button_pressed): Query and use the new lock gconf arguments. We probably need to add more arguments for stuff like DBUS calls and tray clicks, but I don't think these have to be in the UI. 2006-02-18 Richard Hughes * data/gnome-power-manager.schemas.in, src/gpm-prefs.h: Add lock_ac_lid, lock_battery_lid, lock_button_suspend, and lock_sleep_idle. * data/gpm-prefs.glade: Enable the new lock checkboxes. * src/gpm-prefs.c (gpm_prefs_checkbox_lock_cb, gpm_prefs_setup_checkbox): Add infrastructure so checkboxes can be tied to gconf keys. (setup_power_buttons, setup_sleep_type, setup_ac_actions, setup_battery_actions): Add the checkboxes into these handlers. NOTE, these keys get set correctly, but are not handled by the manager yet. 2006-02-18 David Zeuthen * src/gpm-hal-monitor.c (watch_device_condition): Use details if the button type is the empty string. Makes g-p-m do the right thing if I'm pressing the Sleep button on my keyboard (thanks to the hal patch from Matthew Garrett). 2006-02-18 Richard Hughes * data/gnome-power-manager.schemas.in: Make action_button_lid different policy values for AC and battery. Default to suspend for on battery and nothing for on AC. * src/gpm-prefs.h, src/gpm-prefs.c (setup_battery_actions, setup_ac_actions): Set the new policy keys individually. * src/gpm-prefs.c (gpm_prefs_setup_action_combo): Add the default action of nothing if gconf is missing. Stops a blank combobox, and makes it easier for us to debug without installing new schema each time. * src/gpm-manager.c (lid_button_pressed): do the new action when lid is closed and on AC power. Fixes (#331448) 2006-02-18 Richard Hughes * data/gpm-prefs.glade: Minor combobox id renames. * src/gpm-prefs.c (gpm_prefs_setup_action_combo): Pass this a widget. (setup_page_one, setup_page_two, setup_page_three): replace with setup_battery_sliders, setup_ac_sliders, setup_suspend_button, setup_sleep_type, setup_ac_actions, setup_battery_actions, and setup_icon_policy so that each function is specific to function, not location in the glade file. Also connect up the new widgets, so that it works like before. The new stuff I'm working on now. 2006-02-18 Richard Hughes * data/gpm-prefs.glade: Redesign interface. This is going to break g-p-p for a little while, so please bear with me. Also change duplicate accesskeys (#331538) and remove pointless icons in general tab (#331530). Add lots of lock checkboxes to solve (#331164) but these are disabled for now. We can argue about the defaults later, but I think this is an emotional argument with lots of different use-cases, that cannot be solved with just minimising the UI and making assumptions. 2006-02-18 Richard Hughes * src/gpm-manager.c (battery_status_changed_primary): Check the on_ac property before we do the action. This should ensure we don't warn, or do actions when removing the power lead at a short time to charge, on machines that lag updating the battery device. Fixes #331401. 2006-02-16 Richard Hughes * configure.in: Add --enable-actions-menu=foo so we can disable the menu at compile time. Fixes bug #331446 * src/gpm-manager.c (gpm_manager_init): Only add actions to the tray icon if ACTIONS_MENU_ENABLED is enabled. 2006-02-15 Richard Hughes * configure.in: Post release bump to 2.13.91