mirror of
https://gitlab.com/CinnamonSlackBuilds/csb.git
synced 2024-12-25 21:59:21 +01:00
cinnamon-settings-daemon: Add upstream patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
36ae3078bd
commit
3c834d2a12
2 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
|||
From a3b1e3af333c34d19e288cd77a208440f0fe6820 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Webster <miketwebster@gmail.com>
|
||||
Date: Sun, 30 Jun 2019 18:44:10 -0400
|
||||
Subject: [PATCH] csd-power-manager.c: Define UP_DEVICE_LEVEL_NONE for
|
||||
ourselves if it's missing. UpDeviceLevel was new in 0.99.0.
|
||||
|
||||
related commit in cinnamon: linuxmint/cinnamon@4d1da807ee6e73
|
||||
|
||||
Fixes #258
|
||||
---
|
||||
plugins/power/csd-power-manager.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/plugins/power/csd-power-manager.c b/plugins/power/csd-power-manager.c
|
||||
index 9ca0852..fae6510 100644
|
||||
--- a/plugins/power/csd-power-manager.c
|
||||
+++ b/plugins/power/csd-power-manager.c
|
||||
@@ -4414,6 +4414,10 @@ csd_power_manager_finalize (GObject *object)
|
||||
G_OBJECT_CLASS (csd_power_manager_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
+#if !UP_CHECK_VERSION(0,99,0)
|
||||
+#define UP_DEVICE_LEVEL_NONE 1
|
||||
+#endif
|
||||
+
|
||||
static GVariant *
|
||||
device_to_variant_blob (UpDevice *device)
|
||||
{
|
|
@ -72,6 +72,7 @@ find -L . \
|
|||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
sed -i "s|UpDeviceLevel battery_level|UpDeviceClass battery_level|g" plugins/power/csd-power-manager.c
|
||||
patch -p1 < $CWD/a3b1e3af333c34d19e288cd77a208440f0fe6820.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
|
Loading…
Reference in a new issue