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 ):
frame_sizer->Layout();
frame_sizer->Fit(this);
#if !defined(__WXX11__) && !defined(__WXMOTIF__)
#if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the main interface */
SetDropTarget( new DragAndDrop( p_intf ) );
#endif
......@@ -390,7 +390,7 @@ void Interface::CreateOurMenuBar()
/* Intercept all menu events in our custom event handler */
PushEventHandler( new MenuEvtHandler( p_intf, this ) );
#if !defined(__WXX11__) && !defined(__WXMOTIF__)
#if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the menubar */
menubar->SetDropTarget( new DragAndDrop( p_intf ) );
#endif
......@@ -478,7 +478,7 @@ void Interface::CreateOurToolBar()
toolbar->Realize();
#if !defined(__WXX11__) && !defined(__WXMOTIF__)
#if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the toolbar */
toolbar->SetDropTarget( new DragAndDrop( p_intf ) );
#endif
......@@ -1310,7 +1310,7 @@ void Interface::TogglePlayButton( int i_playing_status )
i_old_playing_status = i_playing_status;
}
#if !defined(__WXX11__) && !defined(__WXMOTIF__)
#if wxUSE_DRAG_AND_DROP
/*****************************************************************************
* Definition of DragAndDrop class.
*****************************************************************************/
......
......@@ -358,7 +358,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
main_sizer->Layout();
SetSizerAndFit( main_sizer );
#if !defined(__WXX11__) && !defined(__WXMOTIF__)
#if wxUSE_DRAG_AND_DROP
/* Associate drop targets with the playlist */
SetDropTarget( new DragAndDrop( p_intf, VLC_TRUE ) );
#endif
......
......@@ -819,7 +819,7 @@ private:
};
#if !defined(__WXX11__) && !defined(__WXMOTIF__)
#if wxUSE_DRAG_AND_DROP
/* Drag and Drop class */
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