Commit bdcb3f1a authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows: use wxUSE_DRAG_AND_DROP to check for drag&drop support.

parent a4a0388b
...@@ -275,7 +275,7 @@ Interface::Interface( intf_thread_t *_p_intf ): ...@@ -275,7 +275,7 @@ Interface::Interface( intf_thread_t *_p_intf ):
frame_sizer->Layout(); frame_sizer->Layout();
frame_sizer->Fit(this); frame_sizer->Fit(this);
#if !defined(__WXX11__) && !defined(__WXMOTIF__) #if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the main interface */ /* Associate drop targets with the main interface */
SetDropTarget( new DragAndDrop( p_intf ) ); SetDropTarget( new DragAndDrop( p_intf ) );
#endif #endif
...@@ -390,7 +390,7 @@ void Interface::CreateOurMenuBar() ...@@ -390,7 +390,7 @@ void Interface::CreateOurMenuBar()
/* Intercept all menu events in our custom event handler */ /* Intercept all menu events in our custom event handler */
PushEventHandler( new MenuEvtHandler( p_intf, this ) ); PushEventHandler( new MenuEvtHandler( p_intf, this ) );
#if !defined(__WXX11__) && !defined(__WXMOTIF__) #if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the menubar */ /* Associate drop targets with the menubar */
menubar->SetDropTarget( new DragAndDrop( p_intf ) ); menubar->SetDropTarget( new DragAndDrop( p_intf ) );
#endif #endif
...@@ -478,7 +478,7 @@ void Interface::CreateOurToolBar() ...@@ -478,7 +478,7 @@ void Interface::CreateOurToolBar()
toolbar->Realize(); toolbar->Realize();
#if !defined(__WXX11__) && !defined(__WXMOTIF__) #if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the toolbar */ /* Associate drop targets with the toolbar */
toolbar->SetDropTarget( new DragAndDrop( p_intf ) ); toolbar->SetDropTarget( new DragAndDrop( p_intf ) );
#endif #endif
...@@ -1310,7 +1310,7 @@ void Interface::TogglePlayButton( int i_playing_status ) ...@@ -1310,7 +1310,7 @@ void Interface::TogglePlayButton( int i_playing_status )
i_old_playing_status = i_playing_status; i_old_playing_status = i_playing_status;
} }
#if !defined(__WXX11__) && !defined(__WXMOTIF__) #if wxUSE_DRAG_AND_DROP
/***************************************************************************** /*****************************************************************************
* Definition of DragAndDrop class. * Definition of DragAndDrop class.
*****************************************************************************/ *****************************************************************************/
......
...@@ -358,7 +358,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ): ...@@ -358,7 +358,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
main_sizer->Layout(); main_sizer->Layout();
SetSizerAndFit( main_sizer ); SetSizerAndFit( main_sizer );
#if !defined(__WXX11__) && !defined(__WXMOTIF__) #if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the playlist */ /* Associate drop targets with the playlist */
SetDropTarget( new DragAndDrop( p_intf, VLC_TRUE ) ); SetDropTarget( new DragAndDrop( p_intf, VLC_TRUE ) );
#endif #endif
......
...@@ -819,7 +819,7 @@ private: ...@@ -819,7 +819,7 @@ private:
}; };
#if !defined(__WXX11__) && !defined(__WXMOTIF__) #if wxUSE_DRAG_AND_DROP
/* Drag and Drop class */ /* Drag and Drop class */
class DragAndDrop: public wxFileDropTarget class DragAndDrop: public wxFileDropTarget
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment