Changeset 07541e2ef1b5a33992883049d83171781cfcd125
- Timestamp:
- 12/08/02 20:56:04
(6 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1039377364 +0000
- git-parent:
[caf200f5e94783c777e0a859e92bddc6608a01c0]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1039377364 +0000
- Message:
* modules/gui/wxwindows/*: compilation fixes for wxX11 (it doesn't support drag and drop
yet). Compilation fix for MacOSX as well (wxEntry() not declared).
* src/misc/variables.c: added a FreeMutex?() function.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2c208e6 |
r07541e2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000-2001 VideoLAN |
|---|
| 5 | | * $Id: interface.cpp,v 1.9 2002/11/23 18:42:59 gbazin Exp $ |
|---|
| | 5 | * $Id: interface.cpp,v 1.10 2002/12/08 19:56:04 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 165 | 165 | frame_sizer->Fit(this); |
|---|
| 166 | 166 | |
|---|
| | 167 | #if !defined(__WXX11__) |
|---|
| 167 | 168 | /* Associate drop targets with the main interface */ |
|---|
| 168 | 169 | SetDropTarget( new DragAndDrop( p_intf ) ); |
|---|
| | 170 | #endif |
|---|
| 169 | 171 | } |
|---|
| 170 | 172 | |
|---|
| … | … | |
| 233 | 235 | SetMenuBar( menubar ); |
|---|
| 234 | 236 | |
|---|
| | 237 | #if !defined(__WXX11__) |
|---|
| 235 | 238 | /* Associate drop targets with the menubar */ |
|---|
| 236 | 239 | menubar->SetDropTarget( new DragAndDrop( p_intf ) ); |
|---|
| | 240 | #endif |
|---|
| 237 | 241 | } |
|---|
| 238 | 242 | |
|---|
| … | … | |
| 286 | 290 | frame_sizer->SetMinSize( toolbar_sizer->GetMinSize().GetWidth(), -1 ); |
|---|
| 287 | 291 | |
|---|
| | 292 | #if !defined(__WXX11__) |
|---|
| 288 | 293 | /* Associate drop targets with the toolbar */ |
|---|
| 289 | 294 | toolbar->SetDropTarget( new DragAndDrop( p_intf ) ); |
|---|
| | 295 | #endif |
|---|
| 290 | 296 | } |
|---|
| 291 | 297 | |
|---|
| … | … | |
| 452 | 458 | } |
|---|
| 453 | 459 | |
|---|
| | 460 | #if !defined(__WXX11__) |
|---|
| 454 | 461 | /***************************************************************************** |
|---|
| 455 | 462 | * Definition of DragAndDrop class. |
|---|
| … | … | |
| 486 | 493 | return TRUE; |
|---|
| 487 | 494 | } |
|---|
| | 495 | #endif |
|---|
| r2c208e6 |
r07541e2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000-2001 VideoLAN |
|---|
| 5 | | * $Id: playlist.cpp,v 1.4 2002/11/23 18:42:59 gbazin Exp $ |
|---|
| | 5 | * $Id: playlist.cpp,v 1.5 2002/12/08 19:56:04 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 156 | 156 | SetSizerAndFit( main_sizer ); |
|---|
| 157 | 157 | |
|---|
| | 158 | #if !defined(__WXX11__) |
|---|
| 158 | 159 | /* Associate drop targets with the playlist */ |
|---|
| 159 | 160 | SetDropTarget( new DragAndDrop( p_intf ) ); |
|---|
| | 161 | #endif |
|---|
| 160 | 162 | |
|---|
| 161 | 163 | /* Update the playlist */ |
|---|
| rc7cf1f0 |
r07541e2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000-2001 VideoLAN |
|---|
| 5 | | * $Id: wxwindows.cpp,v 1.6 2002/11/23 16:17:12 gbazin Exp $ |
|---|
| | 5 | * $Id: wxwindows.cpp,v 1.7 2002/12/08 19:56:04 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 47 | 47 | #include "wxwindows.h" |
|---|
| 48 | 48 | |
|---|
| | 49 | /* Temporary hack */ |
|---|
| | 50 | #ifdef __DARWIN__ |
|---|
| | 51 | int wxEntry( int argc, char *argv[] , bool enterLoop = TRUE ); |
|---|
| | 52 | #endif |
|---|
| | 53 | |
|---|
| 49 | 54 | /***************************************************************************** |
|---|
| 50 | 55 | * Local prototypes. |
|---|
| r434b232 |
r07541e2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 5 | | * $Id: wxwindows.h,v 1.3 2002/11/23 14:28:51 gbazin Exp $ |
|---|
| | 5 | * $Id: wxwindows.h,v 1.4 2002/12/08 19:56:04 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 167 | 167 | }; |
|---|
| 168 | 168 | |
|---|
| | 169 | #if !defined(__WXX11__) |
|---|
| 169 | 170 | /* Drag and Drop class */ |
|---|
| 170 | 171 | class DragAndDrop: public wxFileDropTarget |
|---|
| … | … | |
| 179 | 180 | intf_thread_t *p_intf; |
|---|
| 180 | 181 | }; |
|---|
| | 182 | #endif |
|---|
| r0d62cd7 |
r07541e2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: variables.c,v 1.15 2002/12/07 15:25:27 gbazin Exp $ |
|---|
| | 5 | * $Id: variables.c,v 1.16 2002/12/08 19:56:04 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 57 | 57 | static void FreeDummy( vlc_value_t *p_val ) { (void)p_val; /* unused */ } |
|---|
| 58 | 58 | static void FreeString( vlc_value_t *p_val ) { free( p_val->psz_string ); } |
|---|
| | 59 | static void FreeMutex( vlc_value_t *p_val ) { vlc_mutex_destroy( (vlc_mutex_t*)p_val->p_address ); free( p_val->p_address ); } |
|---|
| 59 | 60 | |
|---|
| 60 | 61 | /***************************************************************************** |
|---|
| … | … | |
| 173 | 174 | case VLC_VAR_MUTEX: |
|---|
| 174 | 175 | p_var->pf_cmp = CmpAddress; |
|---|
| | 176 | p_var->pf_free = FreeMutex; |
|---|
| 175 | 177 | p_var->val.p_address = malloc( sizeof(vlc_mutex_t) ); |
|---|
| 176 | 178 | vlc_mutex_init( p_this, (vlc_mutex_t*)p_var->val.p_address ); |
|---|
| … | … | |
| 217 | 219 | /* Free value if needed */ |
|---|
| 218 | 220 | p_var->pf_free( &p_var->val ); |
|---|
| 219 | | |
|---|
| 220 | | switch( p_var->i_type & VLC_VAR_TYPE ) |
|---|
| 221 | | { |
|---|
| 222 | | /* XXX: find a way to put this in pf_free */ |
|---|
| 223 | | case VLC_VAR_MUTEX: |
|---|
| 224 | | vlc_mutex_destroy( (vlc_mutex_t*)p_var->val.p_address ); |
|---|
| 225 | | free( p_var->val.p_address ); |
|---|
| 226 | | break; |
|---|
| 227 | | } |
|---|
| 228 | 221 | |
|---|
| 229 | 222 | /* Free choice list if needed */ |
|---|