/*****************************************************************************
* menus.cpp : wxWindows plugin for vlc
*****************************************************************************
- * Copyright (C) 2000-2004 VideoLAN
+ * Copyright (C) 2000-2004 the VideoLAN team
* $Id$
*
* Authors: Gildas Bazin <gbazin@videolan.org>
{
#define MAX_POPUP_ITEMS 45
+ int minimal = config_GetInt( p_intf, "wxwin-minimal" );
+
vlc_object_t *p_object, *p_input;
char *ppsz_varnames[MAX_POPUP_ITEMS];
int pi_objects[MAX_POPUP_ITEMS];
FIND_PARENT );
if( p_object != NULL )
{
-#if defined(WIN32)
+#if (wxCHECK_VERSION(2,5,0))
ppsz_varnames[i] = "intf-switch";
pi_objects[i++] = p_object->i_object_id;
#endif
{
vlc_value_t val;
popupmenu.InsertSeparator( 0 );
+ if (!minimal)
+ {
popupmenu.Insert( 0, Stop_Event, wxU(_("Stop")) );
popupmenu.Insert( 0, Previous_Event, wxU(_("Previous")) );
popupmenu.Insert( 0, Next_Event, wxU(_("Next")) );
+ }
var_Get( p_input, "state", &val );
if( val.i_int == PAUSE_S )
popupmenu.Append( MenuDummy_Event, wxU(_("Miscellaneous")),
MiscMenu( p_intf ), wxT("") );
+ if (!minimal)
+ {
popupmenu.Append( MenuDummy_Event, wxU(_("Open")),
OpenStreamMenu( p_intf ), wxT("") );
+ }
p_intf->p_sys->p_popup_menu = &popupmenu;
p_parent->PopupMenu( &popupmenu, pos.x, pos.y );
FIND_PARENT );
if( p_object != NULL )
{
-#if defined(WIN32)
+#if (wxCHECK_VERSION(2,5,0))
ppsz_varnames[i] = "intf-switch";
pi_objects[i++] = p_object->i_object_id;
#endif
wxMutexGuiLeave(); // We don't want deadlocks
var_Set( p_object, p_menuitemext->psz_var, p_menuitemext->val );
- wxMutexGuiEnter();
+ //wxMutexGuiEnter();
vlc_object_release( p_object );
}