Hello community, here is the log from the commit of package gnome-power-manager for openSUSE:Factory checked in at Tue May 17 12:28:14 CEST 2011.
-------- --- GNOME/gnome-power-manager/gnome-power-manager.changes 2011-04-25 16:34:36.000000000 +0200 +++ /mounts/work_src_done/STABLE/gnome-power-manager/gnome-power-manager.changes 2011-05-12 10:18:11.000000000 +0200 @@ -1,0 +2,6 @@ +Thu May 12 06:53:45 UTC 2011 - g...@novell.com + +- Add gnome-power-manager-update-status-property.patch to update + session status manually. bnc#692794 + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- gnome-power-manager-update-status-property.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-power-manager.spec ++++++ --- /var/tmp/diff_new_pack.O7seZ3/_old 2011-05-17 12:23:17.000000000 +0200 +++ /var/tmp/diff_new_pack.O7seZ3/_new 2011-05-17 12:23:17.000000000 +0200 @@ -19,7 +19,7 @@ Name: gnome-power-manager Version: 3.0.0 -Release: 1 +Release: 3 License: GPLv2+ Summary: Power Management for GNOME Url: http://gnome-power.sourceforge.net/ @@ -31,6 +31,8 @@ Patch12: gnome-power-manager-notify-idle-sleep.patch # PATCH-NEEDS-REBASE gnome-power-manager-no-fallback-to-hibernate.patch hma...@suse.de bnc#440410 (WAS: PATCH-FIX-OPENSUSE) Patch14: gnome-power-manager-no-fallback-to-hibernate.patch +# PATCH-FIX-UPSTREAM gnome-power-manager-update-status-property.patch g...@novell.com bnc#692794 -- update the session status manually +Patch15: gnome-power-manager-update-status-property.patch BuildRequires: docbook-utils BuildRequires: fdupes BuildRequires: gnome-doc-utils-devel @@ -67,6 +69,7 @@ %lang_package %prep %setup -q +%patch15 -p1 translation-update-upstream #gnome-patch-translation-prepare # Needs rebase: ++++++ gnome-power-manager-update-status-property.patch ++++++ commit 09185d4247656ff37bcbbcffe013c4d038603f2b Author: Matthias Clasen <mcla...@redhat.com> Date: Mon May 2 19:18:58 2011 -0400 gpm-idle: manually update the status property gnome-session doesn't emit PropertyChanged since it uses dbus-glib, therefore we need to manually update the cached property when receiving a SessionChanged signal. https://bugzilla.redhat.com/show_bug.cgi?id=679083 diff --git a/src/gpm-idle.c b/src/gpm-idle.c index 04225fc..0f2f1ee 100644 --- a/src/gpm-idle.c +++ b/src/gpm-idle.c @@ -424,6 +424,11 @@ gpm_idle_dbus_signal_cb (GDBusProxy *proxy, const gchar *sender_name, const gcha return; } if (g_strcmp0 (signal_name, "StatusChanged") == 0) { + guint status; + + g_variant_get (parameters, "(u)", &status); + g_dbus_proxy_set_cached_property (proxy, "status", + g_variant_new ("u", status)); g_debug ("Received gnome session status change"); gpm_idle_evaluate (idle); return; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org