]> git.sesse.net Git - vlc/commitdiff
Fix update dialog layout in Windows
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 28 Mar 2006 14:02:49 +0000 (14:02 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 28 Mar 2006 14:02:49 +0000 (14:02 +0000)
modules/gui/wxwidgets/dialogs/updatevlc.cpp
modules/gui/wxwidgets/interface.cpp

index c2f82f20a1209eadf36bc873bed62cf6b4bb5fb0..249805fed50e875a5f9aee1baae0f61c0b3189a1 100644 (file)
@@ -64,7 +64,8 @@ END_EVENT_TABLE()
 UpdateVLC::UpdateVLC( intf_thread_t *_p_intf, wxWindow *p_parent ):
     wxFrame( p_parent, -1, wxU(_("VLC media player - Updates")),
              wxDefaultPosition, wxDefaultSize,
-         wxSYSTEM_MENU|wxCLOSE_BOX|wxFRAME_FLOAT_ON_PARENT|wxFRAME_TOOL_WINDOW)
+             wxSYSTEM_MENU|wxCLOSE_BOX|wxFRAME_FLOAT_ON_PARENT
+             |wxFRAME_TOOL_WINDOW|wxCAPTION )
 {
     /* Initializations */
     p_intf = _p_intf;
@@ -115,7 +116,7 @@ void UpdateVLC::OnCheckForUpdate( wxCommandEvent& event )
         wxListCtrl *list =
             new wxListCtrl( this, ChooseItem_Event,
                             wxDefaultPosition, wxSize( 400, 300 ),
-                            wxLC_AUTOARRANGE|wxLC_SINGLE_SEL );
+                            wxLC_SINGLE_SEL|wxLC_LIST );
         wxImageList *images = new wxImageList( 32, 32, TRUE );
         images->Add( wxIcon( update_ascii_xpm ) );
         images->Add( wxIcon( update_info_xpm ) );
index c5ff7f54409f15cadf542e408f75d4fb25caf633..c3b660b134f0ad4024ae4d240de01ee08e183b10 100644 (file)
@@ -603,10 +603,8 @@ void Interface::CreateOurMenuBar()
     /* Create the "Help" menu */
     wxMenu *help_menu = new wxMenu;
     help_menu->Append( About_Event, wxU(_("About VLC media player")) );
-#ifndef WIN32
     help_menu->AppendSeparator();
     help_menu->Append( UpdateVLC_Event, wxU(_("Check for updates ...")) );
-#endif
 
     /* Append the freshly created menus to the menu bar... */
     wxMenuBar *menubar = new wxMenuBar();