Commit 714ba1f1 authored by Rafaël Carré's avatar Rafaël Carré

Fix uninhibiting gnome power manager

LP#888002
parent 39b9b363
...@@ -62,6 +62,11 @@ static const char *dbus_interface[] = { ...@@ -62,6 +62,11 @@ static const char *dbus_interface[] = {
[GNOME] = "org.gnome.SessionManager", [GNOME] = "org.gnome.SessionManager",
}; };
static const char *dbus_uninhibit_method[] = {
[FREEDESKTOP] = "UnInhibit",
[GNOME] = "Uninhibit",
};
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
...@@ -232,7 +237,7 @@ static void UnInhibit( intf_thread_t *p_intf, int type ) ...@@ -232,7 +237,7 @@ static void UnInhibit( intf_thread_t *p_intf, int type )
intf_sys_t *p_sys = p_intf->p_sys; intf_sys_t *p_sys = p_intf->p_sys;
DBusMessage *msg = dbus_message_new_method_call( dbus_service[type], 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) ) if( unlikely(msg == NULL) )
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment