Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0b1ef649
Commit
0b1ef649
authored
May 27, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inhibit: dbus: add org.mate
parent
13397571
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/misc/inhibit/dbus.c
modules/misc/inhibit/dbus.c
+5
-0
No files found.
modules/misc/inhibit/dbus.c
View file @
0b1ef649
...
@@ -40,6 +40,7 @@ enum vlc_inhibit_api
...
@@ -40,6 +40,7 @@ enum vlc_inhibit_api
{
{
FDO_SS
,
/**< KDE >= 4 and GNOME >= 3.6 */
FDO_SS
,
/**< KDE >= 4 and GNOME >= 3.6 */
FDO_PM
,
/**< KDE and GNOME <= 2.26 */
FDO_PM
,
/**< KDE and GNOME <= 2.26 */
MATE
,
/**< >= 1.0 */
GNOME
,
/**< GNOME 2.26..3.4 */
GNOME
,
/**< GNOME 2.26..3.4 */
};
};
...
@@ -50,6 +51,7 @@ static const char dbus_service[][40] =
...
@@ -50,6 +51,7 @@ static const char dbus_service[][40] =
{
{
[
FDO_SS
]
=
"org.freedesktop.ScreenSaver"
,
[
FDO_SS
]
=
"org.freedesktop.ScreenSaver"
,
[
FDO_PM
]
=
"org.freedesktop.PowerManagement.Inhibit"
,
[
FDO_PM
]
=
"org.freedesktop.PowerManagement.Inhibit"
,
[
MATE
]
=
"org.mate.SessionManager"
,
[
GNOME
]
=
"org.gnome.SessionManager"
,
[
GNOME
]
=
"org.gnome.SessionManager"
,
};
};
...
@@ -57,6 +59,7 @@ static const char dbus_path[][33] =
...
@@ -57,6 +59,7 @@ static const char dbus_path[][33] =
{
{
[
FDO_SS
]
=
"/ScreenSaver"
,
[
FDO_SS
]
=
"/ScreenSaver"
,
[
FDO_PM
]
=
"/org/freedesktop/PowerManagement"
,
[
FDO_PM
]
=
"/org/freedesktop/PowerManagement"
,
[
MATE
]
=
"/org/mate/SessionManager"
,
[
GNOME
]
=
"/org/gnome/SessionManager"
,
[
GNOME
]
=
"/org/gnome/SessionManager"
,
};
};
...
@@ -64,6 +67,7 @@ static const char dbus_method_uninhibit[][10] =
...
@@ -64,6 +67,7 @@ static const char dbus_method_uninhibit[][10] =
{
{
[
FDO_SS
]
=
"UnInhibit"
,
[
FDO_SS
]
=
"UnInhibit"
,
[
FDO_PM
]
=
"UnInhibit"
,
[
FDO_PM
]
=
"UnInhibit"
,
[
MATE
]
=
"Uninhibit"
,
[
GNOME
]
=
"Uninhibit"
,
[
GNOME
]
=
"Uninhibit"
,
};
};
...
@@ -128,6 +132,7 @@ static void Inhibit(vlc_inhibit_t *ih, unsigned flags)
...
@@ -128,6 +132,7 @@ static void Inhibit(vlc_inhibit_t *ih, unsigned flags)
switch
(
type
)
switch
(
type
)
{
{
case
MATE
:
case
GNOME
:
case
GNOME
:
{
{
dbus_uint32_t
xid
=
0
;
// FIXME ?
dbus_uint32_t
xid
=
0
;
// FIXME ?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment