
Hello community, here is the log from the commit of package gnome-power-manager checked in at Mon Oct 9 20:14:37 CEST 2006. -------- --- GNOME/gnome-power-manager/gnome-power-manager.changes 2006-10-03 22:10:53.000000000 +0200 +++ /mounts/work_src_done/STABLE/gnome-power-manager/gnome-power-manager.changes 2006-10-09 19:54:00.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Oct 9 19:53:33 CEST 2006 - hmacht@suse.de + +- add temporary patch to grab org.freedesktop.Policy.Power system + interface on startup + +------------------------------------------------------------------- New: ---- gnome-power-manager-system-policy.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-power-manager.spec ++++++ --- /var/tmp/diff_new_pack.1zz4dP/_old 2006-10-09 20:13:33.000000000 +0200 +++ /var/tmp/diff_new_pack.1zz4dP/_new 2006-10-09 20:13:33.000000000 +0200 @@ -13,7 +13,7 @@ Name: gnome-power-manager BuildRequires: ImageMagick-devel gnome-common gnome-doc-utils gnutls-devel intltool libglade2-devel libgnomeprintui-devel libgnomeui-devel libnotify-devel libwnck-devel mDNSResponder-devel perl-XML-Parser scrollkeeper update-desktop-files Version: 2.16.1 -Release: 1 +Release: 2 URL: http://gnome-power.sourceforge.net/ Group: System/GUI/GNOME License: GPL @@ -29,6 +29,7 @@ Patch6: gnome-power-manager-165471.patch Patch7: gnome-power-manager-prefs-layout.patch Patch8: gpm-zh_CN-translation.patch +Patch9: gnome-power-manager-system-policy.patch Autoreqprov: on Requires: hal dbus-1 gnome-screensaver notification-daemon BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -62,6 +63,7 @@ #%patch6 -p1 #%patch7 -p1 %patch8 +%patch9 %build # gnome-common intltool are needed only here @@ -114,6 +116,9 @@ %config /usr/share/dbus-1/services/gnome-power-manager.service %changelog -n gnome-power-manager +* Mon Oct 09 2006 - hmacht@suse.de +- add temporary patch to grab org.freedesktop.Policy.Power system + interface on startup * Tue Oct 03 2006 - jhargadon@suse.de - update to version 2.16.1 - Use the step value we computed (rather than one) to fix pressing ++++++ gnome-power-manager-system-policy.patch ++++++ --- src/gpm-main.c +++ src/gpm-main.c @@ -134,6 +134,7 @@ GError *error = NULL; GOptionContext *context; GnomeProgram *program; + gint ret; const GOptionEntry options[] = { { "no-daemon", '\0', 0, G_OPTION_ARG_NONE, &no_daemon, @@ -221,6 +222,20 @@ loop = g_main_loop_new (NULL, FALSE); + ret = dbus_bus_request_name(dbus_g_connection_get_connection(system_connection), + "org.freedesktop.Policy.Power", + DBUS_NAME_FLAG_REPLACE_EXISTING, NULL); + switch (ret) { + case DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER: + gpm_debug("Successfully acquired interface org.freedesktop.Policy.Power."); + break; + case DBUS_REQUEST_NAME_REPLY_IN_QUEUE: + printf("Queued for interface org.freedesktop.Policy.Power."); + break; + default: + break; + }; + /* Only timeout and close the mainloop if we have specified it * on the command line */ if (timed_exit) { ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org