diff options
author | root <root@rshg047.dnsready.net> | 2011-06-05 22:48:57 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-05 22:48:57 +0000 |
commit | 3695b5d62c2aef6e82abc95d775a2ebd89bce081 (patch) | |
tree | db3a874c568e5f5ad3dfe651ceda1df63d5f354f /extra/gnome-power-manager | |
parent | 80ba845c7cb571644d9dea61b9872c393d128c37 (diff) |
Sun Jun 5 22:48:57 UTC 2011
Diffstat (limited to 'extra/gnome-power-manager')
-rw-r--r-- | extra/gnome-power-manager/PKGBUILD | 11 | ||||
-rw-r--r-- | extra/gnome-power-manager/fix-suspend.patch | 31 |
2 files changed, 38 insertions, 4 deletions
diff --git a/extra/gnome-power-manager/PKGBUILD b/extra/gnome-power-manager/PKGBUILD index e731c944b..c84277844 100644 --- a/extra/gnome-power-manager/PKGBUILD +++ b/extra/gnome-power-manager/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 124602 2011-05-23 10:33:56Z ibiru $ +# $Id: PKGBUILD 126303 2011-06-04 12:33:16Z ibiru $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=gnome-power-manager pkgver=3.0.2 -pkgrel=1 +pkgrel=2 pkgdesc="Session daemon that makes it easy to manage your laptop or desktop system." arch=(i686 x86_64) url="http://www.gnome.org/projects/gnome-power-manager/" @@ -14,11 +14,14 @@ makedepends=('intltool' 'gnome-doc-utils' 'gnome-control-center') options=(!emptydirs) install=gnome-power-manager.install groups=(gnome) -source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2) -sha256sums=('d0e00fdcfbc3bfb709f9ed82a14de325c51cf0bb86eeacefcda2dd7fcf6cbc2b') +source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 + fix-suspend.patch) +sha256sums=('d0e00fdcfbc3bfb709f9ed82a14de325c51cf0bb86eeacefcda2dd7fcf6cbc2b' + '898454c9a22ecdf56e555687d4d41a0dfa3d590408dc2a17ef6cf4eaec83b262') build() { cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/fix-suspend.patch" ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/gnome-power-manager \ diff --git a/extra/gnome-power-manager/fix-suspend.patch b/extra/gnome-power-manager/fix-suspend.patch new file mode 100644 index 000000000..acd9093cd --- /dev/null +++ b/extra/gnome-power-manager/fix-suspend.patch @@ -0,0 +1,31 @@ +From 44503c5bca065290ce73b0d064a1a0db7de2936d Mon Sep 17 00:00:00 2001 +From: Matthias Clasen <mclasen@redhat.com> +Date: Mon, 02 May 2011 23:18:58 +0000 +Subject: 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 + +Signed-off-by: Richard Hughes <richard@hughsie.com> +--- +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; +-- +cgit v0.9 |