PUSH_VAR( "aspect-ratio" );
PUSH_VAR( "crop" );
PUSH_VAR( "video-on-top" );
+#ifdef WIN32
PUSH_VAR( "directx-wallpaper" );
+#endif
PUSH_VAR( "video-snapshot" );
if( p_object )
return NULL;
}
-static QAction * FindActionWithText( QMenu *menu, QString &text )
-{
- QAction *action;
- foreach( action, menu->actions() )
- {
- if( action->text() == text )
- return action;
- }
- return NULL;
-}
-
/*****************************************************************************
* All normal menus
* Simple Code
ACT_ADD( current, "aspect-ratio", qtr( "&Aspect Ratio" ) );
ACT_ADD( current, "crop", qtr( "&Crop" ) );
ACT_ADD( current, "video-on-top", qtr( "Always &On Top" ) );
- /* ACT_ADD( current, "directx-wallpaper", qtr( "DirectX Wallpaper" ) ); */
+#ifdef WIN32
+ ACT_ADD( current, "directx-wallpaper", qtr( "DirectX Wallpaper" ) );
+#endif
ACT_ADD( current, "video-snapshot", qtr( "Sna&pshot" ) );
/* ACT_ADD( current, "ffmpeg-pp-q", qtr( "Decoder" ) ); */
}
}
if( var_Change( p_object, psz_var, VLC_VAR_GETLIST,
- &val_list, &text_list ) < 0 )
+ &val_list, &text_list ) < 0 )
{
return VLC_EGENERIC;
}
QAction *action = FindActionWithVar( menu, psz_var );
if( !action )
{
- /* This is a value */
- action = FindActionWithText( menu, text );
- if( !action )
- {
- action = new QAction( text, menu );
- menu->addAction( action );
- }
+ action = new QAction( text, menu );
+ menu->addAction( action );
}
- /* FIXME action->setText( text ); */
action->setToolTip( help );
-
action->setEnabled( i_object_id != 0 );
if( i_item_type == ITEM_CHECK )