[vlc-commits] Fix uninhibiting gnome power manager
Rafaël Carré
git at videolan.org
Tue Nov 15 06:00:41 CET 2011
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Nov 15 00:00:11 2011 -0500| [714ba1f156ec4bf1e69ae668f5c9d8447716c169] | committer: Rafaël Carré
Fix uninhibiting gnome power manager
LP#888002
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=714ba1f156ec4bf1e69ae668f5c9d8447716c169
---
modules/misc/inhibit.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/modules/misc/inhibit.c b/modules/misc/inhibit.c
index 14162e8..6d515f8 100644
--- a/modules/misc/inhibit.c
+++ b/modules/misc/inhibit.c
@@ -62,6 +62,11 @@ static const char *dbus_interface[] = {
[GNOME] = "org.gnome.SessionManager",
};
+static const char *dbus_uninhibit_method[] = {
+ [FREEDESKTOP] = "UnInhibit",
+ [GNOME] = "Uninhibit",
+};
+
/*****************************************************************************
* Local prototypes
@@ -232,7 +237,7 @@ static void UnInhibit( intf_thread_t *p_intf, int type )
intf_sys_t *p_sys = p_intf->p_sys;
DBusMessage *msg = dbus_message_new_method_call( dbus_service[type],
- dbus_path[type], dbus_interface[type], "UnInhibit" );
+ dbus_path[type], dbus_interface[type], dbus_uninhibit_method[type] );
if( unlikely(msg == NULL) )
return;
More information about the vlc-commits
mailing list