Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2ff05ab8
Commit
2ff05ab8
authored
Feb 21, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a close button. Put "-" instead of nothing when there is no info
parent
71b544d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
modules/gui/wxwidgets/dialogs/fileinfo.cpp
modules/gui/wxwidgets/dialogs/fileinfo.cpp
+4
-1
modules/gui/wxwidgets/dialogs/infopanels.cpp
modules/gui/wxwidgets/dialogs/infopanels.cpp
+2
-1
No files found.
modules/gui/wxwidgets/dialogs/fileinfo.cpp
View file @
2ff05ab8
...
@@ -40,7 +40,7 @@ enum
...
@@ -40,7 +40,7 @@ enum
BEGIN_EVENT_TABLE
(
FileInfo
,
wxFrame
)
BEGIN_EVENT_TABLE
(
FileInfo
,
wxFrame
)
/* Button events */
/* Button events */
EVT_BUTTON
(
wxID_
OK
,
FileInfo
::
OnButtonClose
)
EVT_BUTTON
(
wxID_
CLOSE
,
FileInfo
::
OnButtonClose
)
/* Hide the window when the user closes the window */
/* Hide the window when the user closes the window */
EVT_CLOSE
(
FileInfo
::
OnClose
)
EVT_CLOSE
(
FileInfo
::
OnClose
)
...
@@ -83,6 +83,9 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
...
@@ -83,6 +83,9 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
panel_sizer
->
Add
(
notebook
,
1
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
notebook
,
1
,
wxEXPAND
|
wxALL
,
5
);
#endif
#endif
panel_sizer
->
Add
(
new
wxButton
(
this
,
wxID_CLOSE
,
wxU
(
_
(
"Close"
)
))
,
0
,
wxALL
|
wxALIGN_RIGHT
,
5
);
panel_sizer
->
Layout
();
panel_sizer
->
Layout
();
SetSizerAndFit
(
panel_sizer
);
SetSizerAndFit
(
panel_sizer
);
...
...
modules/gui/wxwidgets/dialogs/infopanels.cpp
View file @
2ff05ab8
...
@@ -122,10 +122,11 @@ void MetaDataPanel::Update( input_item_t *p_item )
...
@@ -122,10 +122,11 @@ void MetaDataPanel::Update( input_item_t *p_item )
#define UPDATE_META( meta, widget ) { \
#define UPDATE_META( meta, widget ) { \
char *psz_meta = vlc_input_item_GetInfo( p_item, _(VLC_META_INFO_CAT), \
char *psz_meta = vlc_input_item_GetInfo( p_item, _(VLC_META_INFO_CAT), \
_(meta) ); \
_(meta) ); \
if( psz_meta != NULL
)
\
if( psz_meta != NULL
&& *psz_meta)
\
{ \
{ \
widget->SetLabel( wxU( psz_meta ) ); \
widget->SetLabel( wxU( psz_meta ) ); \
} \
} \
else { widget->SetLabel( wxU( "-" ) ); } \
}
}
UPDATE_META
(
VLC_META_ARTIST
,
artist_text
);
UPDATE_META
(
VLC_META_ARTIST
,
artist_text
);
...
...
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