[vlc-commits] inhibit: dbus: add org.mate
Francois Cartegnie
git at videolan.org
Mon May 27 16:03:00 CEST 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 27 15:42:40 2013 +0200| [0b1ef649c51148cc7bd8ac2573be33b6c3d26592] | committer: Francois Cartegnie
inhibit: dbus: add org.mate
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b1ef649c51148cc7bd8ac2573be33b6c3d26592
---
modules/misc/inhibit/dbus.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/misc/inhibit/dbus.c b/modules/misc/inhibit/dbus.c
index 6f7007b..7106e91 100644
--- a/modules/misc/inhibit/dbus.c
+++ b/modules/misc/inhibit/dbus.c
@@ -40,6 +40,7 @@ enum vlc_inhibit_api
{
FDO_SS, /**< KDE >= 4 and GNOME >= 3.6 */
FDO_PM, /**< KDE and GNOME <= 2.26 */
+ MATE, /**< >= 1.0 */
GNOME, /**< GNOME 2.26..3.4 */
};
@@ -50,6 +51,7 @@ static const char dbus_service[][40] =
{
[FDO_SS] = "org.freedesktop.ScreenSaver",
[FDO_PM] = "org.freedesktop.PowerManagement.Inhibit",
+ [MATE] = "org.mate.SessionManager",
[GNOME] = "org.gnome.SessionManager",
};
@@ -57,6 +59,7 @@ static const char dbus_path[][33] =
{
[FDO_SS] = "/ScreenSaver",
[FDO_PM] = "/org/freedesktop/PowerManagement",
+ [MATE] = "/org/mate/SessionManager",
[GNOME] = "/org/gnome/SessionManager",
};
@@ -64,6 +67,7 @@ static const char dbus_method_uninhibit[][10] =
{
[FDO_SS] = "UnInhibit",
[FDO_PM] = "UnInhibit",
+ [MATE] = "Uninhibit",
[GNOME] = "Uninhibit",
};
@@ -128,6 +132,7 @@ static void Inhibit(vlc_inhibit_t *ih, unsigned flags)
switch (type)
{
+ case MATE:
case GNOME:
{
dbus_uint32_t xid = 0; // FIXME ?
More information about the vlc-commits
mailing list