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
e4fb5cd2
Commit
e4fb5cd2
authored
Jan 05, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins: cosmetics about previous patch (thanks ivoire)
parent
24655a2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
modules/gui/skins2/src/theme_repository.cpp
modules/gui/skins2/src/theme_repository.cpp
+6
-11
No files found.
modules/gui/skins2/src/theme_repository.cpp
View file @
e4fb5cd2
...
...
@@ -73,18 +73,16 @@ ThemeRepository::ThemeRepository( intf_thread_t *pIntf ): SkinObject( pIntf )
parseDirectory
(
*
it
);
}
// retrieve skins f
or
skins directories and locate default skins
// retrieve skins f
rom
skins directories and locate default skins
map
<
string
,
string
>::
const_iterator
itmap
,
itdefault
;
for
(
itmap
=
m_skinsMap
.
begin
();
itmap
!=
m_skinsMap
.
end
();
itmap
++
)
{
string
path
=
itmap
->
first
;
string
name
=
itmap
->
second
;
val
.
psz_string
=
strdup
(
path
.
c_str
()
);
text
.
psz_string
=
strdup
(
name
.
c_str
()
);
val
.
psz_string
=
(
char
*
)
path
.
c_str
(
);
text
.
psz_string
=
(
char
*
)
name
.
c_str
(
);
var_Change
(
getIntf
(),
"intf-skins"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
free
(
val
.
psz_string
);
free
(
text
.
psz_string
);
if
(
name
==
"default"
)
itdefault
=
itmap
;
...
...
@@ -105,19 +103,16 @@ ThemeRepository::ThemeRepository( intf_thread_t *pIntf ): SkinObject( pIntf )
itmap
=
m_skinsMap
.
find
(
current
);
if
(
itmap
==
m_skinsMap
.
end
()
)
{
val
.
psz_string
=
strdup
(
current
.
c_str
()
);
text
.
psz_string
=
strdup
(
current
.
c_str
()
);
val
.
psz_string
=
(
char
*
)
current
.
c_str
(
);
text
.
psz_string
=
(
char
*
)
current
.
c_str
(
);
var_Change
(
getIntf
(),
"intf-skins"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
getIntf
(),
"intf-skins"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
free
(
val
.
psz_string
);
free
(
text
.
psz_string
);
}
else
{
val
.
psz_string
=
strdup
(
current
.
c_str
()
);
val
.
psz_string
=
(
char
*
)
current
.
c_str
(
);
var_Change
(
getIntf
(),
"intf-skins"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
free
(
val
.
psz_string
);
}
free
(
psz_current
);
m_skinsMap
.
clear
();
...
...
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