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
4b62a084
Commit
4b62a084
authored
Jun 09, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* X11 skins are now loaded from home directory or if it fails, from
the share directory
parent
e09c1d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
modules/gui/skins/src/skin_main.cpp
modules/gui/skins/src/skin_main.cpp
+16
-12
No files found.
modules/gui/skins/src/skin_main.cpp
View file @
4b62a084
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* skin-main.cpp: skins plugin for VLC
* skin-main.cpp: skins plugin for VLC
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.3
5 2003/06/09 12:33:16
asmax Exp $
* $Id: skin_main.cpp,v 1.3
6 2003/06/09 21:14:17
asmax Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -232,25 +232,29 @@ static void Run( intf_thread_t *p_intf )
...
@@ -232,25 +232,29 @@ static void Run( intf_thread_t *p_intf )
if
(
skin_last
==
NULL
||
!
Loader
->
Load
(
skin_last
)
)
if
(
skin_last
==
NULL
||
!
Loader
->
Load
(
skin_last
)
)
{
{
// Too bad, it failed. Let's try with the default theme
// Too bad, it failed. Let's try with the default theme
#if 0
// if( ! Loader->Load( DEFAULT_SKIN_FILE ) )
if( ! Loader->Load( DEFAULT_SKIN_FILE ) )
#else
#ifdef WIN32
#ifdef WIN32
string
default_dir
=
(
string
)
p_intf
->
p_libvlc
->
psz_vlcpath
+
string
default_dir
=
(
string
)
p_intf
->
p_libvlc
->
psz_vlcpath
+
DIRECTORY_SEPARATOR
+
"skins"
+
DIRECTORY_SEPARATOR
+
"skins"
+
DIRECTORY_SEPARATOR
+
"default"
+
DIRECTORY_SEPARATOR
+
"default"
+
DIRECTORY_SEPARATOR
+
"theme.xml"
;
DIRECTORY_SEPARATOR
+
"theme.xml"
;
#else
// FIXME: find VLC directory
string
default_dir
=
(
string
)
"./share"
+
DIRECTORY_SEPARATOR
+
"skins"
+
DIRECTORY_SEPARATOR
+
"default"
+
DIRECTORY_SEPARATOR
+
"theme.xml"
;
#endif
if
(
!
Loader
->
Load
(
default_dir
)
)
if
(
!
Loader
->
Load
(
default_dir
)
)
#endif
{
{
// Last chance: the user can select a new theme file
// Last chance: the user can select a new theme file
#else
string
user_skin
=
(
string
)
p_intf
->
p_vlc
->
psz_homedir
+
DIRECTORY_SEPARATOR
+
CONFIG_DIR
+
DIRECTORY_SEPARATOR
+
"skins"
+
DIRECTORY_SEPARATOR
+
"default"
+
DIRECTORY_SEPARATOR
+
"theme.xml"
;
string
default_skin
=
(
string
)
DATA_PATH
+
DIRECTORY_SEPARATOR
+
"skins"
+
DIRECTORY_SEPARATOR
+
"default"
+
DIRECTORY_SEPARATOR
+
"theme.xml"
;
if
(
!
Loader
->
Load
(
user_skin
)
&&
!
Loader
->
Load
(
default_skin
)
)
{
#endif
#ifndef BASIC_SKINS
#ifndef BASIC_SKINS
wxMutexGuiEnter
();
wxMutexGuiEnter
();
wxFileDialog
dialog
(
NULL
,
wxFileDialog
dialog
(
NULL
,
...
...
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