Bring back missing icons, thanks to Slávek Banko for the tip.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/1/head
gregory guy 4 years ago
parent 0aea32338c
commit 9977caccb3
No known key found for this signature in database
GPG Key ID: 3BCCA0F7AB4536F4

@ -12,7 +12,7 @@
namespace Codeine namespace Codeine
{ {
PlayAction::PlayAction( TQObject *receiver, const char *slot, TDEActionCollection *ac ) PlayAction::PlayAction( TQObject *receiver, const char *slot, TDEActionCollection *ac )
: TDEToggleAction( i18n("Play"), "player_play", TQt::Key_Space, receiver, slot, ac, "play" ) : TDEToggleAction( i18n("Play"), "media-playback-start", TQt::Key_Space, receiver, slot, ac, "play" )
{} {}
void void

@ -251,7 +251,7 @@ MainWindow::setupActions()
connect( new FullScreenAction( this, ac ), SIGNAL(toggled( bool )), SLOT(fullScreenToggled( bool )) ); connect( new FullScreenAction( this, ac ), SIGNAL(toggled( bool )), SLOT(fullScreenToggled( bool )) );
new PlayAction( this, SLOT(play()), ac ); new PlayAction( this, SLOT(play()), ac );
new TDEAction( i18n("Stop"), "player_stop", Key_S, engine(), SLOT(stop()), ac, "stop" ); new TDEAction( i18n("Stop"), "media-playback-stop", Key_S, engine(), SLOT(stop()), ac, "stop" );
new TDEToggleAction( i18n("Record"), "player_record", CTRL + Key_R, engine(), SLOT(record()), ac, "record" ); new TDEToggleAction( i18n("Record"), "player_record", CTRL + Key_R, engine(), SLOT(record()), ac, "record" );

@ -87,7 +87,7 @@ MainWindow::engineStateChanged( Engine::State state )
// KDE has a shit special action for this, but it stupidly changes // KDE has a shit special action for this, but it stupidly changes
// the toolbar icon too. // the toolbar icon too.
// TODO do this from the playAction since we do it in context menu too // TODO do this from the playAction since we do it in context menu too
const KGuiItem item = (state == Playing) ? KGuiItem( i18n("&Pause"), "player_pause" ) : KGuiItem( i18n("&Play"), "player_play" ); const KGuiItem item = (state == Playing) ? KGuiItem( i18n("&Pause"), "media-playback-pause" ) : KGuiItem( i18n("&Play"), "media-playback-start" );
file_menu->changeItem( play_id, item.iconSet(), item.text() ); file_menu->changeItem( play_id, item.iconSet(), item.text() );
file_menu->setItemChecked( play_id, false ); file_menu->setItemChecked( play_id, false );

@ -35,7 +35,7 @@ namespace Codeine
//FIXME this will terminate the host, eg Konqueror //FIXME this will terminate the host, eg Konqueror
Debug::fatal() << "Couldn't init xine!\n"; Debug::fatal() << "Couldn't init xine!\n";
TDEAction *play = new TDEToggleAction( i18n("Play"), "player_play", TQt::Key_Space, videoWindow(), SLOT(togglePlay()), actionCollection(), "play" ); TDEAction *play = new TDEToggleAction( i18n("Play"), "media-playback-start", TQt::Key_Space, videoWindow(), SLOT(togglePlay()), actionCollection(), "play" );
TDEAction *mute = new TDEToggleAction( i18n("Mute"), "player_mute", TQt::Key_M, videoWindow(), SLOT(toggleMute()), actionCollection(), "mute" ); TDEAction *mute = new TDEToggleAction( i18n("Mute"), "player_mute", TQt::Key_M, videoWindow(), SLOT(toggleMute()), actionCollection(), "mute" );
TDEToolBar *toolBar = new MouseOverToolBar( widget() ); TDEToolBar *toolBar = new MouseOverToolBar( widget() );
play->plug( toolBar ); play->plug( toolBar );

Loading…
Cancel
Save