Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d388fc44
Commit
d388fc44
authored
Feb 10, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/*: keep compatibility with wxWidgets 2.4.x + changed default playlist size.
parent
f0d9d6b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+13
-11
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+1
-1
No files found.
modules/gui/wxwindows/interface.cpp
View file @
d388fc44
...
...
@@ -462,12 +462,11 @@ void Interface::CreateOurToolBar()
toolbar
->
AddTool
(
OpenFile_Event
,
wxT
(
""
),
wxBitmap
(
eject_xpm
),
wxU
(
_
(
HELP_OPEN
))
);
toolbar
->
AddSeparator
();
toolbar
->
AddTool
(
PlayStream_Event
,
wxT
(
""
),
wxBitmap
(
play_xpm
),
wxU
(
_
(
HELP_PLAY
))
);
#if 0
toolbar->AddTool( PlayStream_Event, wxT(""), wxBitmap( pause_xpm ),
wxU(_(HELP_PAUSE)) );
#endif
wxToolBarToolBase
*
p_tool
=
toolbar
->
AddTool
(
PlayStream_Event
,
wxT
(
""
),
wxBitmap
(
play_xpm
),
wxU
(
_
(
HELP_PLAY
))
);
p_tool
->
SetClientData
(
p_tool
);
toolbar
->
AddTool
(
StopStream_Event
,
wxT
(
""
),
wxBitmap
(
stop_xpm
),
wxU
(
_
(
HELP_STOP
))
);
toolbar
->
AddSeparator
();
...
...
@@ -969,15 +968,17 @@ void Interface::OnSliderUpdate( wxScrollEvent& event )
/* Update stream date */
char
psz_time
[
MSTRTIME_MAX_SIZE
],
psz_total
[
MSTRTIME_MAX_SIZE
];
mtime_t
i_seconds
;
vlc_value_t
val
;
i_seconds
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"length"
)
/
I64C
(
1000000
);
i_seconds
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"length"
)
/
I64C
(
1000000
);
secstotimestr
(
psz_total
,
i_seconds
);
i_seconds
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"time"
)
/
I64C
(
1000000
);
i_seconds
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"time"
)
/
I64C
(
1000000
);
secstotimestr
(
psz_time
,
i_seconds
);
statusbar
->
SetStatusText
(
wxU
(
psz_time
)
+
wxString
(
wxT
(
" / "
))
+
wxU
(
psz_total
),
0
);
statusbar
->
SetStatusText
(
wxU
(
psz_time
)
+
wxString
(
wxT
(
" / "
)
)
+
wxU
(
psz_total
),
0
);
}
}
#endif
...
...
@@ -1082,7 +1083,8 @@ void Interface::TogglePlayButton( int i_playing_status )
if
(
i_playing_status
==
i_old_playing_status
)
return
;
wxToolBarToolBase
*
p_tool
=
GetToolBar
()
->
FindById
(
PlayStream_Event
);
wxToolBarToolBase
*
p_tool
=
(
wxToolBarToolBase
*
)
GetToolBar
()
->
GetToolClientData
(
PlayStream_Event
);
if
(
!
p_tool
)
return
;
if
(
i_playing_status
==
PLAYING_S
)
...
...
modules/gui/wxwindows/playlist.cpp
View file @
d388fc44
...
...
@@ -197,7 +197,7 @@ friend class Playlist;
*****************************************************************************/
Playlist
::
Playlist
(
intf_thread_t
*
_p_intf
,
wxWindow
*
p_parent
)
:
wxFrame
(
p_parent
,
-
1
,
wxU
(
_
(
"Playlist"
)),
wxDefaultPosition
,
wxSize
(
345
,
4
00
),
wxDEFAULT_FRAME_STYLE
)
wxSize
(
500
,
3
00
),
wxDEFAULT_FRAME_STYLE
)
{
vlc_value_t
val
;
...
...
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