[Pkg-xfce-commits] r8553 - /desktop/branches/experimental/xfce4-power-manager/debian/patches/01_fix-logind-handle-xfconf-keys.patch
Yves-Alexis Perez
corsac at moszumanska.debian.org
Wed Aug 27 20:22:27 UTC 2014
Author: corsac
Date: Wed Aug 27 20:22:26 2014
New Revision: 8553
URL: http://svn.debian.org/wsvn/pkg-xfce/?sc=1&rev=8553
Log:
rename variables for more clarity
Modified:
desktop/branches/experimental/xfce4-power-manager/debian/patches/01_fix-logind-handle-xfconf-keys.patch
Modified: desktop/branches/experimental/xfce4-power-manager/debian/patches/01_fix-logind-handle-xfconf-keys.patch
URL: http://svn.debian.org/wsvn/pkg-xfce/desktop/branches/experimental/xfce4-power-manager/debian/patches/01_fix-logind-handle-xfconf-keys.patch?rev=8553&op=diff
==============================================================================
--- desktop/branches/experimental/xfce4-power-manager/debian/patches/01_fix-logind-handle-xfconf-keys.patch (original)
+++ desktop/branches/experimental/xfce4-power-manager/debian/patches/01_fix-logind-handle-xfconf-keys.patch Wed Aug 27 20:22:26 2014
@@ -1,22 +1,36 @@
diff --git a/src/xfpm-manager.c b/src/xfpm-manager.c
-index a7417a5..96d042c 100644
+index a7417a5..d6c533c 100644
--- a/src/xfpm-manager.c
+++ b/src/xfpm-manager.c
-@@ -513,13 +513,13 @@ xfpm_manager_get_systemd_events(XfpmManager *manager)
- LOGIND_HANDLE_LID_SWITCH, &handle_lid_switch,
+@@ -504,22 +504,22 @@ xfpm_manager_get_systemd_events(XfpmManager *manager)
+ {
+ GSList *events = NULL;
+ gchar *what = "";
+- gboolean handle_power_key, handle_suspend_key, handle_hibernate_key, handle_lid_switch;
++ gboolean logind_handle_power_key, logind_handle_suspend_key, logind_handle_hibernate_key, logind_handle_lid_switch;
+
+ g_object_get (G_OBJECT (manager->priv->conf),
+- LOGIND_HANDLE_POWER_KEY, &handle_power_key,
+- LOGIND_HANDLE_SUSPEND_KEY, &handle_suspend_key,
+- LOGIND_HANDLE_HIBERNATE_KEY, &handle_hibernate_key,
+- LOGIND_HANDLE_LID_SWITCH, &handle_lid_switch,
++ LOGIND_HANDLE_POWER_KEY, &logind_handle_power_key,
++ LOGIND_HANDLE_SUSPEND_KEY, &logind_handle_suspend_key,
++ LOGIND_HANDLE_HIBERNATE_KEY, &logind_handle_hibernate_key,
++ LOGIND_HANDLE_LID_SWITCH, &logind_handle_lid_switch,
NULL);
- if (handle_power_key)
-+ if (!handle_power_key)
++ if (!logind_handle_power_key)
events = g_slist_append(events, "handle-power-key");
- if (handle_suspend_key)
-+ if (!handle_suspend_key)
++ if (!logind_handle_suspend_key)
events = g_slist_append(events, "handle-suspend-key");
- if (handle_hibernate_key)
-+ if (!handle_hibernate_key)
++ if (!logind_handle_hibernate_key)
events = g_slist_append(events, "handle-hibernate-key");
- if (handle_lid_switch)
-+ if (!handle_lid_switch)
++ if (!logind_handle_lid_switch)
events = g_slist_append(events, "handle-lid-switch");
while (events != NULL)
More information about the Pkg-xfce-commits
mailing list