Commit dab00dc1 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/interface.cpp: work-around for non working...

* modules/gui/wxwindows/interface.cpp: work-around for non working wxToolBarToolBase::SetNormalBitmap() in wxGTK.
parent 517c9e5a
......@@ -498,7 +498,7 @@ void Interface::CreateOurToolBar()
}
wxToolBarToolBase *p_tool = toolbar->AddTool( PlayStream_Event, wxT(""),
wxBitmap( play_xpm ), wxU(_(HELP_PLAY)) );
wxBitmap( play_xpm ), wxU(_(HELP_PLAY)), wxITEM_CHECK );
p_tool->SetClientData( p_tool );
if (!minimal)
......@@ -1259,22 +1259,22 @@ void Interface::TogglePlayButton( int i_playing_status )
GetToolBar()->GetToolClientData( PlayStream_Event );
if( !p_tool ) return;
GetToolBar()->DeleteTool( p_tool->GetId() );
if( i_playing_status == PLAYING_S )
{
p_tool = GetToolBar()->InsertTool(2, PlayStream_Event, wxT(""),
wxBitmap( pause_xpm ), wxU(_(HELP_PAUSE)) );
p_tool->SetClientData( p_tool );
p_tool->SetNormalBitmap( wxBitmap( pause_xpm ) );
p_tool->SetLabel( wxU(_("Pause")) );
p_tool->SetShortHelp( wxU(_(HELP_PAUSE)) );
}
else
{
p_tool = GetToolBar()->InsertTool(2, PlayStream_Event, wxT(""),
wxBitmap( play_xpm ), wxU(_(HELP_PLAY)) );
p_tool->SetClientData( p_tool );
p_tool->SetNormalBitmap( wxBitmap( play_xpm ) );
p_tool->SetLabel( wxU(_("Play")) );
p_tool->SetShortHelp( wxU(_(HELP_PLAY)) );
}
GetToolBar()->Realize();
GetToolBar()->ToggleTool( PlayStream_Event, true );
GetToolBar()->ToggleTool( PlayStream_Event, false );
i_old_playing_status = i_playing_status;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment