2005-01-17 Richard Hughes <
[email protected]>
* src/gpm-main.h, src/Makefile.am, po/POTFILES.in:
Remove this non-required file.
* src/gpm-prefs.c, src/gpm-common.h, src/gpm-tray-icon.c,
src/gpm-main.c, src/gpm-hal-monitor.c: Fix so that our name is
"Power Manager" rather than "GNOME Power Manager" in the warnings
and menus so that we adhere to the GNOME HIG (#327277)
2005-01-16 Richard Hughes <
[email protected]>
* autogen.sh: Now that omf.make has been removed, we should really tell
gnome-common that we are using USE_COMMON_DOC_BUILD.
* src/gpm-tray-icon.c: Fix the !libnotify build.
Also switch HAVE_LIBNOTIFY to LIBNOTIFY_VERSION_MINOR >=2 so we can
easily build with scons.
* src/gpm-stock-icons.c: Fix the scons build by including config.h
* po/*: Do a intltool-update --pot && make update-po to freshen up the
translations.
* src/gpm-dbus-client.{h|c}, src/Makefile.am, po/POTFILES.in:
Remove these non-required files. (#327236)
* data/gnome-power-manager.schemas.in:
Update the descriptions, and add a few more <short> and <long> tags.
Remove the hard-drive spindown keys also, we don't use them anymore.
Also make all the time values in seconds.
* src/gpm-idle, src/gpm-manager.c, src/gpm-prefs.c: Update, as now all
the gconf values are in seconds. (#327007)
* src/gpm-power.c (add_battery): Add a warning for a low capacity
battery, to start to fix (#326740) -- yet more work required.
2006-01-14 William Jon McCann <
[email protected]>
* data/gpm-prefs.glade: A few HIG spacing fixes. This makes
it look the same as g-v-m.
2005-01-13 Richard Hughes <
[email protected]>
* src/gpm-power.c: Fix newline logic to be the same as before (so it
doesn't truncate the last bracket in some cases).
Also replace spaces-for-tabs in this file with actual tabs.
* src/gpm-marshal.list, src/gpm-manager.c, src/gpm-power.c:
Add a parameter "charging" and "percentagechanged" which lets us veto
some actions when doing the initial startup. This stops the message
"Your battery is fully charged" when starting g-p-m with a full battery.
Also unconditionally send a signal battery-power-changed when *any*
battery property changes, so that the icon changes when !charging
as this was not being done.
* MAINTAINERS: I have a name, I am not an email address.
* CodingStyle: Update with suggestions from (#326515)
* src/gpm-power.c (battery_kind_cache_update): Always send a
BATTERY_POWER_CHANGED signal when devices disappear.
* src/gpm-power.c (gpm_power_get_battery_percentage): Return false
when a BatteryKindCacheEntry is marked as not present, as ACPI
batteries are not removed from HAL when they are removed.
This fixes (#326865)
* docs/www/*.html: Update the archive links, and make sure the header
is bold for each section.
* src/gpm-tray-icon.c (gpm_tray_icon_show_help_cb):
Replace spaces-for-tabs with actual tabs.
2006-01-12 William Jon McCann <
[email protected]>
* src/gpm-power.[ch]: New powered device handling.
* src/gpm-prefs.c: Fix compiler warning.
* src/gpm-marshal.list: Add new one.
* src/gpm-manager.xml: Remove set_on_ac from API.
* src/gpm-manager.[ch]: Don't manage on-ac state.
(get_stock_id): Remove all sysdev stuff. Use gpm-power.
(tray_icon_update): Get summary from gpm-power.
(sync_dpms_policy): Use gpm-power for on-ac.
(maybe_notify_battery_power_changed): Update for gpm-power.
(gpm_manager_get_on_ac, dpms_mode_changed_cb)
(power_button_pressed, suspend_button_pressed)
(lid_button_pressed, power_button_pressed_cb)
(power_battery_power_changed_cb, gpm_manager_set_property)
(gpm_manager_get_property, callback_gconf_key_changed)
(gpm_manager_init, gpm_manager_finalize): Updates for gpm-power
* src/gpm-main.c: Fix compiler warnings.
* src/gpm-hal-monitor.c: Remove core and sysdev. Make
into a singleton. Make signals a bit more generic.
Primarily serve as a HAL proxy.
* src/gpm-hal-callback.h: Fix prototypes.
* src/gpm-dpms.h: Fix typo.
* src/Makefile.am: Remove gpm-core and gpm-sysdev.
Use found glib-genmarshal.
* configure.in: Look for glib-genmarshal. Add
extra warnings when building from CVS.
Fixes #326515
2005-01-12 Richard Hughes <
[email protected]>
* po/POTFILES.in: Remove gpm-dbus-signal-handler.{c|h} to fix
make diskcheck.
* src/gpm-hal.c (gpm_hal_can_suspend), (gpm_hal_can_hibernate):
Fix logic so that is key is missing we do not do the action.
Fixes bug
http://bugzilla.gnome.org/show_bug.cgi?id=326552
2006-01-11 William Jon McCann <
[email protected]>
* src/gpm-tray-icon.c: Add missing includes.
* src/gpm-sysdev.c (hal_to_device_type): Moved here from gpm-common.
* src/gpm-prefs.c: Add missing includes.
* src/gpm-manager.c: Add include for gnome-client.h and sysdev.
(_gpm_manager_can_suspend, _gpm_manager_can_hibernate)
(_gpm_manager_can_shutdown): Add functions to use instead of
calling HAL directly.
(get_stock_id): Use our own on_ac property instead of calling HAL.
(get_full_tooltip): Ditto.
(gpm_manager_shutdown, gpm_manager_hibernate)
(gpm_manager_suspend): Call our own _can_ functions.
(gpm_manager_setup_tray_icon): Ditto.
* src/gpm-main.c
* src/gpm-dbus-signal-handler.c: Moved functionality to gpm-main.
* src/gpm-core.c: Include sysdev here.
* src/gpm-common.[ch]: Don't depend on sysdev. Don't use gnome.h
and gconf.
* src/Makefile.am: Remove gpm-console and gpm-dbus-signal-handler
2005-01-11 Richard Hughes <
[email protected]>
* src/Makefile.am, src/gpm-dbus-client.c, src/gpm-idle.c,
src/gpm-hal.c, src/gpm-hal-callback.c, src/gpm-idle.c,
src/gpm-manager.c, src/gpm-screensaver.c, src/gpm-prefs.c:
Remove gpm-dbus-common from all the files. This file was originally
used when the DBUS API was churning so all the changes could be done
in one place. Now the glib DBUS api is stable, hardcode these simple
functions in the respective places.
2006-01-10 William Jon McCann <
[email protected]>
* src/gpm-manager.c (hal_power_button_cb, hal_lid_button_cb):
Add debug statements.
2006-01-10 William Jon McCann <
[email protected]>
* src/gpm-manager.c (manager_policy_do)
(gpm_manager_tray_icon_hibernate, gpm_manager_tray_icon_suspend):
Actually do the action. Forgot to fix this after Richard
asked me to the other day.
2006-01-10 William Jon McCann <
[email protected]>
* src/gpm-manager.c (sync_dpms_policy):
Check errors.
(gpm_manager_set_dpms_mode, gpm_manager_get_dpms_mode)
(idle_changed_cb, dpms_mode_changed_cb, hal_lid_button_cb):
Report errors back to DBUS.
(gpm_manager_init): Rename signal.
* src/gpm-dpms-x11.c (gpm_dpms_error_quark): Add errors.
(x11_sync_server_dpms_settings): Set errors.
Also allow zero timeouts as this is how we'll disable
DPMS now that we enable it by default.
(x11_get_mode, x11_set_mode): Use a more DBUSy
design.
(sync_settings): Use zero for timeouts instead of
our configured ones when DPMS isn't active.
(gpm_dpms_get_enabled, gpm_dpms_set_enabled, gpm_dpms_get_active)
(gpm_dpms_set_active, gpm_dpms_set_timeouts):
Use DBUSy design.
(gpm_dpms_set_mode): Allow mode to be set even
if DPMS is not active.
(gpm_dpms_get_mode): DBUSy design.
(gpm_dpms_set_standby_timeout, gpm_dpms_set_suspend_timeout)
(gpm_dpms_set_off_timeout): Setters for properties.
(gpm_dpms_set_property, gpm_dpms_get_property)
(gpm_dpms_class_init): Add properties and rename signal.
Changes to allow setting DPMS mode while DPMS is not active
and to report errors back to DBUS.
2005-01-10 Richard Hughes <
[email protected]>
* src/icons/*: Move to data/icons/24x24
* data/icons/svg: Add the svg images here too.
2006-01-10 William Jon McCann <
[email protected]>
* src/gpm-screensaver.c:
* src/gpm-manager.xml:
* src/gpm-main.c:
* src/gpm-idle.c:
* src/gpm-dbus-common.h:
* src/gpm-dbus-client.c:
* src/gpm-console.c (signalhandler_nlost):
* docs/www/faq.html:
* data/gnome-power-manager.service.in:
* data/gnome-power-manager.conf:
Rename DBUS services. GnomePowerManger -> PowerManager
and screensaver -> ScreenSaver. Fixes #326492
2005-01-10 Richard Hughes <
[email protected]>
* src/gpm-manager.c: Add some debug text so we know the state.
* src/gpm-dpms-x11.c (gpm_dpms_mode_from_string): Fix typo where
"on" should be GPM_DPMS_MODE_ON rather than GPM_DPMS_MODE_OFF.
* Makefile.am: Use DISTCHECK_CONFIGURE_FLAGS (copied from evince)
so make diskcheck doesn't try to run scrollkeeper.
* help/Makefile.am: Enable yelp file build.
* data/gnome-power-manager.spec.in: Add the two files to the file list.
* src/gpm-tray-icon.c (gpm_tray_icon_show_help_cb): Now use yelp
help-pages rather than just displaying the webpage -- note these
need serious love.
* src/gpm-stock-icons.c (gpm_stock_icons_init): Replace
GTK_ICON_SIZE_LARGE_TOOLBAR with GTK_ICON_SIZE_MENU as we want the
smaller icons used in the tray.
* man/gnome-power-info.sgml: remove as unused.
NEWS, configure.in: Update to 0.3.4, as I think enough work has been
done to constitute a release bump. :-)
2006-01-09 William Jon McCann <
[email protected]>
* src/gpm-manager.xml: Mark return string as constant.
* src/gpm-manager.[ch] (gpm_manager_set_on_ac)
(gpm_manager_get_on_ac, gpm_manager_set_dpms_mode)
(gpm_manager_get_dpms_mode, hal_on_ac_changed_cb)
(gpm_manager_set_property, gpm_manager_init):
Change functions to actually work with the DBus bindings.
2005-01-09 Richard Hughes <
[email protected]>
* configure.in, Makefile.am, help/Makefile.am: Still process the
help directory, just disable the scrollkeeper update for now.
* data/gnome-power-manager.spec.in: Don't use this for cvs building
anymore, so make it generic.
* docs/dbus-interface.txt: Add this file explaining the DBUS interface.
2006-01-09 William Jon McCann <
[email protected]>
* src/gpm-manager.c (gpm_manager_set_on_ac): Emit a
signal when on-ac changes.
(gpm_manager_set_dpms_mode, gpm_manager_get_dpms_mode):
Add API for DPMS mode.
(dpms_changed_cb): Emit a signal when DPMS mode changes.
(gpm_manager_class_init): Add signals.
* src/gpm-main.c (gpm_object_register): Move here
from gpm-dbus-server.
(main): Connect manager to bus.
* src/gpm-dpms-x11.c (gpm_dpms_mode_from_string)
(gpm_dpms_mode_to_string, gpm_dpms_set_mode):
Add method to translate from enum to string and back.
* src/Makefile.am: Remove gpm-dbus-server.*
Rename gnome-power-service.xml to gpm-manager.xml.
Fixes #326307
2006-01-09 Jaap Haitsma <
[email protected]>
* src/gpm-common.[ch]: Remove unused functions
2005-01-09 Richard Hughes <
[email protected]>
* src/gpm-prefs.c (gpm_prefs_create): hide radiobutton_icon_charge
and radiobutton_icon_critical when we do not have any batteries (as
these states make no sense).
* src/gpm-tray-icon.c (libnotify_event): Fix a small typo that
prevented building with the old libnotify.
2006-01-09 William Jon McCann <
[email protected]>
* src/gpm-tray-icon.c (libnotify_event)
(gpm_tray_icon_action_entries): Use #defined icon names.
* src/gpm-stock-icons.c (gpm_stock_icons_init):
Add gnome-icon-theme icons to factory. Add #defines for
icon names.
2006-01-09 William Jon McCann <
[email protected]>
* src/gpm-dpms.h:
* src/gpm-dpms-x11.c: New class to control DPMS.
* src/gpm-screensaver.[ch]: Remove DPMS stuff.
* src/gpm-prefs.c (gpm_prefs_create): Don't use
C99 declarations that aren't at the top of a block since
it breaks under non-C99 compliant compilers. Always
enable DPMS.
(main): Rename function in case we want to turn it into
a class later.
* src/gpm-manager.c (change_power_policy): Don't
set session timeout. Sync DPMS settings.
(sync_dpms_policy): Sync all DPMS settings.
(idle_changed_cb): Activate/deactivate DPMS.
(dpms_changed_cb): Throttle screensaver when screen not on.
(hal_lid_button_cb): Turn monitor power on/off when lid changed.
(callback_gconf_key_changed): Sync DPMS settings.
(gpm_manager_init): Add DPMS object.
(gpm_manager_finalize): Unref DPMS object.
* src/gpm-idle.c (remove_all_timers, gpm_idle_set_mode)
(gpm_idle_set_property, gpm_idle_get_property)
(gpm_idle_class_init): Remove session timeout since
it isn't used and is broken.
(acquire_screensaver, gpm_idle_init): Break out function.
* src/Makefile.am: Add gpm-dpms.
* configure.in: Check for DPMS ext.
Fixes #326276
2006-01-08 William Jon McCann <
[email protected]>
* src/gpm-tray-icon.[ch]: New class to encapsulate
tray icon and notification handling.
* src/gpm-manager.c (get_index_from_percent, get_stock_id)
(get_tooltip_system_struct, get_tooltips_system_device)
(get_tooltips_system_device_type, get_full_tooltip)
(tray_icon_update): Moved here from gpm-notification.c.
Fix to support GpmTrayIcon.
(maybe_notify_on_ac_changed, maybe_notify_battery_power_changed):
Move all notification stuff to tray icon.
(callback_gconf_key_changed): Update the tray icon.
(gpm_manager_tray_icon_hibernate, gpm_manager_tray_icon_suspend):
Add signal handlers.
(gpm_manager_setup_tray_icon): Create the tray icon.
(gpm_manager_init): Update/create the tray icon.
(gpm_manager_finalize): Destroy the tray icon.
* src/Makefile.am: Remove gpm-libnotify.{c,h} and
gpm-notification.{c,h}. Add gpm-tray-icon.{c,h}.
Fixes #326241
2006-01-08 William Jon McCann <
[email protected]>
* src/gpm-manager.[ch]: New class to act as a management
shell.
* src/gpm-hal-monitor.[ch]: New class to encapsulate all
the HAL monitoring.
* src/gpm-screensaver.h: Add G_BEGIN_DECLS and glib includes.
* src/gpm-notification.c (callback_actions_activated):
Disable the actions temporarily until we can use signals
to do this cleanly.
* src/gpm-marshal.list: Add new signal for battery
status changed.
* src/gpm-main.c: Move functionality out of here and
split into GpmManager and GpmHalMonitor.
* src/gpm-idle.[ch]: Turn into a class for monitoring
the session and system idle.
* src/gpm-hal.h: Add G_BEGIN_DECLS and glib includes.
* src/gpm-hal-callback.[ch] (signal_handler_PropertyModified)
(signal_handler_DeviceRemoved, signal_handler_NewCapability)
(signal_handler_Condition, gpm_hal_callback_init):
Add user data to be returned to callbacks.
* src/gpm-dbus-server.[ch]: Don't use gnome.h. Don't
export signal enum.
* src/Makefile.am: Add new files.
* AUTHORS: Updated.
Refactored to support handling signals from gnome-screensaver,
laying groundwork for DPMS management, and making HAL
optional. Fixes #325911.
2005-01-06 Richard Hughes <
[email protected]>
* data/: src/gnome-power-preferences.glade,
gnome-power-manager.conf, gnome-power-manager.schemas.in,
gnome-power-manager.service.in, gnome-power-manager.spec.in,
gnome-power-preferences.desktop.in: Move these files to this new
directory to match other gnome projects:
2005-01-05 Richard Hughes <
[email protected]>
* gnome-power-manager.schemas.in, src/gpm-main.c, src/gpm-prefs.h:
Add /notify/fully_charged to fix bug:
http://bugzilla.gnome.org/show_bug.cgi?id=325876
* src/Makefile.am: Build the generated files a slightly easier way, as
suggested by BJörn Lindqvist.
Also comment out the gnome-power-console stuff until the DBUS bug is
fixed -- as now it's pretty useless.
* configure.in: Fix the ALL_LINGUAS to be all on one line, else
autogen.sh fails.
*configure.in, Makefile.am: Don't build help/ yet as
"make distcheck" fails (which means no rpm's)
2006-01-03 Slobodan D. Sredojevic <
[email protected]>
* configure.in: Added 'sr' and 'sr@Latn' to ALL_LINGUAS
2006-01-03 Anders Pedersen <
[email protected]>
* src/gpm-notification.c : fixed typo where global variable
where used instead of passed parametre
2005-12-30 Jaap Haitsma <
[email protected]>
* src/gpm-prefs.c : removed require pw option. We just rely on
gnome-screensaver for this now
* src/gpm-prefs.glade : removed require pw option.
2005-12-30 Jaap Haitsma <
[email protected]>
* src/gpm-prefs.c : refactored slider format callbacks
Added a line that Richard and myself are the authors of this file
2005-12-30 Jaap Haitsma <
[email protected]>
* configure.in : remove -ansi compiler option to fix daemon warning
* src/gpm-main.c: remove daemon prototype
* src/gpm-console.c: remove daemon prototype
2005-12-30 Richard Hughes <
[email protected]>
* man/: Move manual files here.
* help/: Add this directory for the yelp help files.
* configure.in, Makefile.am, docs/Makefile.am: Fix build to work.
2005-12-29 Richard Hughes <
[email protected]>
* gnome-power-manager.spec.in: Add "Requires: dbus-x11" to fix
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176656
* src/gpm-sysdev.{c|h}, src/gpm-console.c, src/gpm-core.c,
src/gpm-main.c, src/gpm-notification.c:
Replace all the SysDev functions with gpm_sysdev_ to closer match
GNOME CodingStyle.
* src/gpm-hal.c (gpm_hal_is_on_ac): Fix for the case of a desktop,
where there is no ac_adapter.
* src/gpm-screensaver (gpm_screensaver_get_idle): Do a
s/getIdleTime/getActiveTime to update to the new API.
2005-12-28 Richard Hughes <
[email protected]>
* src/gpm-prefs.c, src/gpm-main.c, src/gpm-screensaver.{c|h}:
Much modified patch from Jaap to use the gnome-screensaver
screensave enable gconf key, rather than our own complete replacement.
2005-12-26 Jaap Haitsma <
[email protected]>
* src/gpm_marshal.list: rename to gpm-marshal.list
* src/Makefile.am : change gpm_marshal.{c|h} to gpm-marshal.{c|h}
* src/gpm-dbus-common.c: change gpm_marshal.h to gpm-marshal.h
* src/gpm-hal-callback.c: change gpm_marshal.h to gpm-marshal.h
2005-12-26 Richard Hughes <
[email protected]>
* src/gpm-prefs.c: Patch from Jaap: Suspend is still using battery so
for a critical level of the battery suspend is not viable option.
2005-12-24 Richard Hughes <
[email protected]>
* src/gpm-prefs.c: Don't hardcode acpi_BAT1, but work out the name
using the capability.
Another mega patch from Jaap. I've merged the obvious bit for now,
and when I've reviewed the rest I'll commit that too.
* Renamed some function like gpm_screensaver_set_dpms to
gpm_screensaver_enable_dpms. This way it's immediately clear what the
argurment TRUE or FALSE does.
* Some other renames which should make the code clearer.
* Fixes a couple of minor bugs
* Moved some definition from *.h to *.c. It's good practice to export
as little as possible.
2005-12-23 Richard Hughes <
[email protected]>
* src/*: Rename the local dbus_* wrappers gpm_dbus_* to make sure
it's obvious that they are local functions and not the direct API.
* gnome-power-manager.conf: Add root to the allowed users. Required
for replacement without a GUI running.
* src/gpm-dbus-signal-handler.{c|h}: Add these files to abstract the
DBUS NameOwnerChanged and NameLost glib functionality.
* src/glibhal-callback.{c|h}: Remove the NameOwnerChanged bodged
support from these files. It never belonged here..
* src/Makefile.am, src/gpm-console.c, src/gpm-dbus-common.c,
src/gpm-main.c: Use gpm-dbus-signal-handler and start to implement
NameLost functionality for a shared bus. Also pass more connections
by reference, rather than assuming then are system or session.
* src/gpm-hal.c: Move gpm_hal_is_running here, and delete the copy in
glibhal-main.
* src/gpm-dbus-common.{c|h}, src/gpm-main.c, src/gpm-dbus-server.c:
Make USECACHE an ifdef to try and profile.
Also add GPM_SYSTEM_BUS so we can put g-p-m on the system bus if
we want, so it can be shared between users. This cannot be turned on
until
https://bugs.freedesktop.org/show_bug.cgi?id=4637 is fixed.
* src/gpm-hal.c: Fix valgrinds "Conditional jump or move depends on
uninitialised value(s)" by initialising the return value to 0.
* src/gpm-dbus-common.h, src/glibhal.c, src/glibhal-callback.c,
src/gpm-hal.c, src/gpm-main.c: Define the HAL_DBUS_* constants and
use them in preference to hardcoding each name.
* src/glibhal-main.{c|h}: Merge the remainder of these functions into
gpm-hal.{c|h} and prefix the functions with gpm_ for clarity.
* src/glibhal-callback.{c|h}: Move these functions into
gpm-hal-callback.{c|h} and prefix the functions with gpm_ for clarity.
2005-12-22 Richard Hughes <
[email protected]>
* src/gpm-prefs.c: If no valid options are available then disable
the "Actions" frame as it will be empty.
* src/gpm-prefs.h, src/gpm-main.c, gnome-power-manager.schemas.in:
Implement /apps/gnome-power-manager/notify/ac_adapter so we can
disable this message if we want to. Fixes the bug:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176433
* src/gpm-libnotify.{c|h}, src/gpm-notification.c, src/gpm-main.c:
Rename the local libnotify_* wrappers gpm_libnotify_* to make sure
it's obvious that they are local functions and not the direct API.
2005-12-21 Richard Hughes <
[email protected]>
* src/gpm-prefs.c: Only hide the battery stuff in the advanced
tab, and fix to actually hide the correct label in Options.
* src/gpm-notification.c: Don't g_free eggtrayicon->popup_menu
or eggtrayicon->tray_icon_tooltip else we segfault on rawhide.
* src/gpm-main.c: Assume we are on AC power (desktop) if we have
no batteries or ac_adapters detected. Fixes a problem with g-p-m
running on a VMWware host thinking we are on batteries.
* src/gpm-libnotify.c: Use widget->allocation to get size to avoid
having to ref the pixbuf. Also make lots of libnotify 0.3.x
fixes. I think notify-daemon has a positioning bug...
* src/gpm-idle.c: Only print debug messages once.
2005-12-20 Richard Hughes <
[email protected]>
* src/gpm-prefs.c: Hide, process, then show the top window so that
the dialogue resizes itself without redrawing.
Fixes
http://bugzilla.gnome.org/show_bug.cgi?id=323562
* gnome-power-manager.spec.in: Apply a patch from Matthias Saou to
fix
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=172963
2005-12-19 Richard Hughes <
[email protected]>
* src/eggtrayicon.c, src/gpm-prefs.c: Update so that if gnome-panel
disappears we just re-instantiate the icon without crashing.
Fixes
http://bugzilla.gnome.org/show_bug.cgi?id=324446
* src/gpm-sysdec.{c|h}, gpm-notification.c: Add the sd->isPresent
flag so we can detect when an sd has no present sds members.
Fixes
http://bugzilla.gnome.org/show_bug.cgi?id=323563
2005-12-19 Nikos Charonitakis <
[email protected]>
* configure.in: Added 'el' to ALL_LINGUAS.
2005-12-19 Ankit Patel <
[email protected]>
* configure.in: Added 'gu' to ALL_LINGUAS.
2005-12-18 Richard Hughes <
[email protected]>
* src/glibhal-extras.{c|h}: Rename to gpm-hal.{c|h} and prefix the
functions with "gpm_". Affects most of the other souce files!
* src/gpm-info.{c|h|glade}: Removed until we have a point.
* src/gpm-gtk-utils.{c|h}: Removed as unused.
* src/compiler.h: Removed as now unused.
* configure.in: Make warnings stop build. Fix said warnings.
* src/gpm-prefs.c: Don't use a pointer like a global variable, else
it bites back. Use INT_TO_POINTER to wrap it up nicely.
* src/gpm-hal.c, src/gpm-prefs.c: Add gpm_hal_is_on_ac() so we can get
rid of the gpm dbus dependance on gpp.
* configure.in, src/gpm-libnotify.c: Automatically compile the correct
code for the new libnotify. Thanks again to Jaap.
2005-12-17 Josep Puigdemont i Casamajó <
[email protected]>
* configure.in: Added 'ca' to ALL_LINGUAS.
2005-12-15 Richard Hughes <
[email protected]>
* configure.in: Bump to 0.3.3, and depend on HAL CVS (0.5.6) as we need
the new power_management keys and the Shutdown() method not present in
0.5.5.1.
* src/glibhal-extras.{c|h}, src/gpm-main.c, src/gpm-prefs.h:
Create the function hal_shutdown () that lets us simplify the
shutdown stuff, and take the magic string out of gconf.
MASSIVE Patch from Jaap Haitsma <
[email protected]> with tweaks from me:
* src/gpm-common.{c|h}: Move get_widget_position to gpm-libnotify.c
Remove the enumerated types, and conversion functions, and remove
the function run_gconf_script()
* src/compiler.h: Remove as unused.
* src/gpm-console: Refactor some code, and remove compiler definition.
* src/gpm-core.c: Refactor some code, remove globals, fix up some
wrong return values.
* src/gpm-dbus-common.c: Include <string.h>
* src/gpm-notification.c: Remove the enumerated types, and conversion
functions. Other minor warnings fixed.
* src/gpm-main.{c|h}: Added the constants for gconf.
Make the policy change more centered. Remove helper functions.
* src/gpm-networkmanager.c: Removed some unused variables.
* src/gpm-prefs.glade: Step size update
* src/gpm-screensaver.{c|h}: Removed some unused variables.
Added the constants for gconf.
* src/gpm-sysdev.{h|c}: Mark the debug functions as such, and use the
debug functions.
2005-12-11 Theppitak Karoonboonyanan <
[email protected]>
* configure.in: Added 'th' (Thai) to ALL_LINGUAS.
2005-12-10 Richard Hughes <
[email protected]>
* src/gpm-dbus-common.c: Cache the dbus connection in two private
pointers so we don't have to keep doing dbus_g_bus_get everytime we
want the bus address.
2005-12-07 Richard Hughes <
[email protected]>
* src/gpm-common.{c|h}, src/gpm-main.c, src/gpm-prefs.c:
Remove ACTION_WARNING as nothing uses it. Also make the critical
warning happen at the critical threshold, and any action performed when
it gets lower than that. This will stop the PC randomly shutting down
without giving a critical warning a few minutes before.
* src/gpm-main.c (gnome_shutdown): Create this function so we can
save the state interactivly for the case of a power button, or save
the state non-interactivly for the case of the power-critically-low
case. Inspired by a patch from Jaap Haitsma <
[email protected]>.
* src/gpm-prefs.c, gnome-power-manager.schema.in:
Remove the options for the power button, as we now display the menu
(which remembers our state, so we don't need a configurable).
Patch from Jaap Haitsma <
[email protected]>, many thanks.
2005-12-03 Richard Hughes <
[email protected]>
* src/gpm-common.h, src/gpm-main.c, gnome-power-manager.schemas.in:
Remove the reboot command as it's not used, and probably shouldn't be
part of g-p-m anyway. Taken from a larger patch from
Jaap Haitsma <
[email protected]>.
2005-12-03 Richard Hughes <
[email protected]>
* src/glibhal-extras.c: Now upstream HAL is using the new
power_management.* keys, we should not be checking .is_enabled as this
has been removed in CVS.
* src/gpm-common.c (get_timestring_from_minutes): Use ngettext to get
plural form. Based on a patch from Gabor Kelemen, many thanks.
Fixes bug
http://bugzilla.gnome.org/show_bug.cgi?id=322773
* src/gpm-main.c: Add in the virtual buttons Hibernate, Suspend and
Lock.
* src/gpm-screenaver.c: Do not expect a DBUS answer when we lock or
poke as we have to wait for the dbus connection to time out.
* src/gpm-main.c: Replace use of get_time_string with the data itself.
Fixes bug:
http://bugzilla.gnome.org/show_bug.cgi?id=323135
* src/gpm-common.c (get_time_string): Remove this function as it is
no longer in use.
2005-12-01 Richard Hughes <
[email protected]>
* configure.in: Bump to 0.3.2
* src/glibhal-extras.{h|c}: Move hal_pm_check() here, and create the
new methods hal_pm_can_suspend() and hal_pm_can_hibernate().
Also add hal_set_brightness_up() and hal_set_brightness_down () so
we can start to play around with new HAL stuff.
* src/gpm-main.c: Warn if we attempt to hibernate or suspend when HAL
says we shouldn't.
* src/gpm-main.c: Add support for the HAL "virtual button" device.
NB. This is not yet in HAL CVS, and support is patched in only if you
use the RPM's in my utopia-experimental repo. The interface WILL change
before it is accepted upstream.
* src/gpm-notification.c: Don't add the menu items if we can't do the
actions. NOTE: just because HAL (i.e. the kernel) says it has
hibernation or suspend support compiled in, doesn't automatically
mean that it will *work*.
* src/gpm-prefs.c: Don't show the options if we can't do the action.
Also make the whitespace a bit more sane in this file.
* src/gpm-prefs.c: Don't try to free a constant if schema missing.
Fixes bug:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174196