]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/dialogs/fileinfo.cpp
Add a close button. Put "-" instead of nothing when there is no info
[vlc] / modules / gui / wxwidgets / dialogs / fileinfo.cpp
index a591801ef0c78e99ea52bb6d70c2cb84a8b9209f..1296a9d00e61449ecf305e5ac54e224c45b6425c 100644 (file)
@@ -40,7 +40,7 @@ enum
 
 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)
@@ -83,6 +83,9 @@ FileInfo::FileInfo( intf_thread_t *_p_intf, wxWindow *p_parent ):
     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 );