Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2b39d628
Commit
2b39d628
authored
Mar 31, 2005
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* small fixes (the icon change should now work under windows)
parent
6e006c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+8
-4
No files found.
modules/gui/wxwindows/interface.cpp
View file @
2b39d628
...
...
@@ -455,7 +455,7 @@ VLCVolCtrl::VLCVolCtrl( intf_thread_t *p_intf, wxWindow *p_parent,
wxBORDER_NONE
),
i_y_offset
((
VLCVOL_HEIGHT
-
TOOLBAR_BMP_HEIGHT
)
/
2
)
{
*
pp_volctrl
=
new
wxVolCtrl
(
p_intf
,
this
,
-
1
,
wxPoint
(
18
,
i_y_offset
),
*
pp_volctrl
=
new
wxVolCtrl
(
p_intf
,
this
,
-
1
,
wxPoint
(
0
,
i_y_offset
),
wxSize
(
44
,
TOOLBAR_BMP_HEIGHT
)
);
}
...
...
@@ -509,8 +509,10 @@ void Interface::CreateOurToolBar()
toolbar
->
AddControl
(
p_dummy_ctrl
);
toolbar
->
AddTool
(
Mute_Event
,
wxT
(
""
),
wxBitmap
(
speaker_xpm
),
wxU
(
_
(
HELP_MUTE
))
);
wxToolBarToolBase
*
p_tool2
=
toolbar
->
AddTool
(
Mute_Event
,
wxT
(
""
),
wxBitmap
(
speaker_xpm
),
wxU
(
_
(
HELP_MUTE
))
);
p_tool2
->
SetClientData
(
p_tool2
);
VLCVolCtrl
*
sound_control
=
new
VLCVolCtrl
(
p_intf
,
toolbar
,
&
volctrl
);
toolbar
->
AddControl
(
sound_control
);
...
...
@@ -1206,17 +1208,19 @@ void Interface::OnMute( wxCommandEvent& WXUNUSED(event) )
GetToolBar
()
->
GetToolClientData
(
Mute_Event
);
if
(
!
p_tool
)
return
;
if
(
i_volume
>
=
0
)
if
(
i_volume
!
=
0
)
{
p_tool
->
SetNormalBitmap
(
wxBitmap
(
speaker_xpm
)
);
p_tool
->
SetLabel
(
wxU
(
_
(
""
))
);
p_tool
->
SetShortHelp
(
wxU
(
_
(
HELP_MUTE
))
);
fprintf
(
stderr
,
"sound is on
\n
"
);
}
else
{
p_tool
->
SetNormalBitmap
(
wxBitmap
(
speaker_mute_xpm
)
);
p_tool
->
SetLabel
(
wxU
(
_
(
""
))
);
p_tool
->
SetShortHelp
(
wxU
(
_
(
HELP_MUTE
))
);
fprintf
(
stderr
,
"sound is off
\n
"
);
}
GetToolBar
()
->
Realize
();
...
...
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