yet). Compilation fix for MacOSX as well (wxEntry() not declared).
* src/misc/variables.c: added a FreeMutex() function.
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: interface.cpp,v 1.9 2002/11/23 18:42:59 gbazin Exp $
+ * $Id: interface.cpp,v 1.10 2002/12/08 19:56:04 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
frame_sizer->Layout();
frame_sizer->Fit(this);
+#if !defined(__WXX11__)
/* Associate drop targets with the main interface */
SetDropTarget( new DragAndDrop( p_intf ) );
+#endif
}
Interface::~Interface()
/* Attach the menu bar to the frame */
SetMenuBar( menubar );
+#if !defined(__WXX11__)
/* Associate drop targets with the menubar */
menubar->SetDropTarget( new DragAndDrop( p_intf ) );
+#endif
}
void Interface::CreateOurToolBar()
toolbar_sizer->Layout();
frame_sizer->SetMinSize( toolbar_sizer->GetMinSize().GetWidth(), -1 );
+#if !defined(__WXX11__)
/* Associate drop targets with the toolbar */
toolbar->SetDropTarget( new DragAndDrop( p_intf ) );
+#endif
}
void Interface::CreateOurSlider()
vlc_object_release( p_playlist );
}
+#if !defined(__WXX11__)
/*****************************************************************************
* Definition of DragAndDrop class.
*****************************************************************************/
return TRUE;
}
+#endif
* playlist.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: playlist.cpp,v 1.4 2002/11/23 18:42:59 gbazin Exp $
+ * $Id: playlist.cpp,v 1.5 2002/12/08 19:56:04 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
*
main_sizer->Layout();
SetSizerAndFit( main_sizer );
+#if !defined(__WXX11__)
/* Associate drop targets with the playlist */
SetDropTarget( new DragAndDrop( p_intf ) );
+#endif
/* Update the playlist */
Rebuild();
* wxwindows.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
- * $Id: wxwindows.cpp,v 1.6 2002/11/23 16:17:12 gbazin Exp $
+ * $Id: wxwindows.cpp,v 1.7 2002/12/08 19:56:04 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
#include "wxwindows.h"
+/* Temporary hack */
+#ifdef __DARWIN__
+int wxEntry( int argc, char *argv[] , bool enterLoop = TRUE );
+#endif
+
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
* wxwindows.h: private wxWindows interface description
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: wxwindows.h,v 1.3 2002/11/23 14:28:51 gbazin Exp $
+ * $Id: wxwindows.h,v 1.4 2002/12/08 19:56:04 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
wxButton *ok_button;
};
+#if !defined(__WXX11__)
/* Drag and Drop class */
class DragAndDrop: public wxFileDropTarget
{
private:
intf_thread_t *p_intf;
};
+#endif
* variables.c: routines for object variables handling
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: variables.c,v 1.15 2002/12/07 15:25:27 gbazin Exp $
+ * $Id: variables.c,v 1.16 2002/12/08 19:56:04 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
static void FreeDummy( vlc_value_t *p_val ) { (void)p_val; /* unused */ }
static void FreeString( vlc_value_t *p_val ) { free( p_val->psz_string ); }
+static void FreeMutex( vlc_value_t *p_val ) { vlc_mutex_destroy( (vlc_mutex_t*)p_val->p_address ); free( p_val->p_address ); }
/*****************************************************************************
* Local prototypes
break;
case VLC_VAR_MUTEX:
p_var->pf_cmp = CmpAddress;
+ p_var->pf_free = FreeMutex;
p_var->val.p_address = malloc( sizeof(vlc_mutex_t) );
vlc_mutex_init( p_this, (vlc_mutex_t*)p_var->val.p_address );
break;
/* Free value if needed */
p_var->pf_free( &p_var->val );
- switch( p_var->i_type & VLC_VAR_TYPE )
- {
- /* XXX: find a way to put this in pf_free */
- case VLC_VAR_MUTEX:
- vlc_mutex_destroy( (vlc_mutex_t*)p_var->val.p_address );
- free( p_var->val.p_address );
- break;
- }
-
/* Free choice list if needed */
if( p_var->pp_choices )
{