Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
bdcb3f1a
Commit
bdcb3f1a
authored
Apr 27, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows: use wxUSE_DRAG_AND_DROP to check for drag&drop support.
parent
a4a0388b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+4
-4
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+1
-1
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+1
-1
No files found.
modules/gui/wxwindows/interface.cpp
View file @
bdcb3f1a
...
@@ -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.
*****************************************************************************/
*****************************************************************************/
...
...
modules/gui/wxwindows/playlist.cpp
View file @
bdcb3f1a
...
@@ -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
...
...
modules/gui/wxwindows/wxwindows.h
View file @
bdcb3f1a
...
@@ -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
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment