diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-20 04:07:59 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-20 04:07:59 +0000 |
commit | c191cced4be4333b966cae0432ae8de29663fa5f (patch) | |
tree | 2c095990cfc426ecda70f9a7d88d055ecb44e5cd /community/cinnamon-settings-daemon/upower_lid.patch | |
parent | 4d8724d2ae72ab2ea20a9ad299dd36f33bda4658 (diff) |
Sun Apr 20 04:02:05 UTC 2014
Diffstat (limited to 'community/cinnamon-settings-daemon/upower_lid.patch')
-rw-r--r-- | community/cinnamon-settings-daemon/upower_lid.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/cinnamon-settings-daemon/upower_lid.patch b/community/cinnamon-settings-daemon/upower_lid.patch new file mode 100644 index 000000000..a8f44dae5 --- /dev/null +++ b/community/cinnamon-settings-daemon/upower_lid.patch @@ -0,0 +1,28 @@ +--- a/plugins/power/csd-power-manager.c ++++ b/plugins/power/csd-power-manager.c +@@ -2215,7 +2215,11 @@ do_lid_closed_action (CsdPowerManager *m + + + static void ++#if UP_CHECK_VERSION(0,99,0) ++lid_state_changed_cb (UpClient *client, GParamSpec *pspec, CsdPowerManager *manager) ++#else + up_client_changed_cb (UpClient *client, CsdPowerManager *manager) ++#endif + { + gboolean tmp; + +@@ -3967,8 +3971,13 @@ csd_power_manager_start (CsdPowerManager + G_CALLBACK (engine_device_removed_cb), manager); + g_signal_connect (manager->priv->up_client, "device-changed", + G_CALLBACK (engine_device_changed_cb), manager); ++#if UP_CHECK_VERSION(0,99,0) ++ g_signal_connect_after (manager->priv->up_client, "notify::lid-is-closed", ++ G_CALLBACK (lid_state_changed_cb), manager); ++#else + g_signal_connect_after (manager->priv->up_client, "changed", + G_CALLBACK (up_client_changed_cb), manager); ++#endif + + /* use the fallback name from gnome-power-manager so the shell + * blocks this, and uses the power extension instead */ |