getIM()->togglePlayPause();
}
+void MainInputManager::activatePlayQuit( bool b_exit )
+{
+ var_SetBool( THEPL, "play-and-exit", b_exit );
+}
+
/* Static callbacks for MIM */
static int PLItemChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *param )
if( mi->getControlsVisibilityStatus() & CONTROLS_ADVANCED )
action->setChecked( true );
+ if( with_intf )
+ // I don't want to manage consistency between menus, so no popup-menu
+ {
+ action = menu->addAction( qtr( "Quit after Playback" ) );
+ action->setCheckable( true );
+ CONNECT( action, triggered( bool ), THEMIM, activatePlayQuit( bool ) );
+ }
+
#if 0 /* For Visualisations. Not yet working */
adv = menu->addAction( qtr( "Visualizations selector" ),
mi, SLOT( visual() ) );