BEGIN_EVENT_TABLE(FileInfo, wxFrame)
/* Button events */
- EVT_BUTTON(wxID_OK, FileInfo::OnButtonClose)
+ EVT_BUTTON(wxID_CLOSE, FileInfo::OnButtonClose)
/* Hide the window when the user closes the window */
EVT_CLOSE(FileInfo::OnClose)
panel_sizer->Add( notebook, 1, wxEXPAND | wxALL, 5 );
#endif
+ panel_sizer->Add( new wxButton( this, wxID_CLOSE, wxU(_("Close") )) ,
+ 0, wxALL|wxALIGN_RIGHT, 5 );
+
panel_sizer->Layout();
SetSizerAndFit( panel_sizer );
#define UPDATE_META( meta, widget ) { \
char *psz_meta = vlc_input_item_GetInfo( p_item, _(VLC_META_INFO_CAT), \
_(meta) ); \
- if( psz_meta != NULL ) \
+ if( psz_meta != NULL && *psz_meta) \
{ \
widget->SetLabel( wxU( psz_meta ) ); \
} \
+ else { widget->SetLabel( wxU( "-" ) ); } \
}
UPDATE_META( VLC_META_ARTIST, artist_text );