Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2f926206
Commit
2f926206
authored
Apr 19, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed a segfault
parent
23b6ca2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
modules/gui/skins/gtk2/gtk2_dragdrop.cpp
modules/gui/skins/gtk2/gtk2_dragdrop.cpp
+9
-5
modules/gui/skins/gtk2/gtk2_dragdrop.h
modules/gui/skins/gtk2/gtk2_dragdrop.h
+3
-3
modules/gui/skins/gtk2/gtk2_window.cpp
modules/gui/skins/gtk2/gtk2_window.cpp
+2
-2
No files found.
modules/gui/skins/gtk2/gtk2_dragdrop.cpp
View file @
2f926206
...
...
@@ -2,7 +2,7 @@
* gtk2_dragdrop.cpp: GTK2 implementation of the drag & drop
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_dragdrop.cpp,v 1.
4 2003/04/19 11:16:17
asmax Exp $
* $Id: gtk2_dragdrop.cpp,v 1.
5 2003/04/19 11:46:11
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -66,11 +66,15 @@ void GTK2DropObject::HandleDropStart( GdkDragContext *context )
for
(
int
i
=
0
;
i
<
len
/
sizeof
(
GdkAtom
);
i
++
)
{
GdkAtom
atom
=
(
(
GdkAtom
*
)
buffer
)[
i
];
string
name
=
gdk_atom_name
(
atom
);
if
(
name
==
"text/plain"
||
name
==
"STRING"
)
gchar
*
name
=
gdk_atom_name
(
atom
);
if
(
name
)
{
target
=
name
;
break
;
string
curTarget
=
name
;
if
(
(
curTarget
==
"text/plain"
||
curTarget
==
"STRING"
)
)
{
target
=
curTarget
;
break
;
}
}
}
...
...
modules/gui/skins/gtk2/gtk2_dragdrop.h
View file @
2f926206
...
...
@@ -2,7 +2,7 @@
* gtk2_dragdrop.h: GTK2 implementation of the drag & drop
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_dragdrop.h,v 1.
2 2003/04/19 11:16:17
asmax Exp $
* $Id: gtk2_dragdrop.h,v 1.
3 2003/04/19 11:46:11
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -34,8 +34,8 @@
//---------------------------------------------------------------------------
class
GTK2DropObject
{
intf_thread_t
*
p_intf
;
private:
intf_thread_t
*
p_intf
;
public:
GTK2DropObject
(
intf_thread_t
*
_p_intf
);
...
...
modules/gui/skins/gtk2/gtk2_window.cpp
View file @
2f926206
...
...
@@ -2,7 +2,7 @@
* gtk2_window.cpp: GTK2 implementation of the Window class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_window.cpp,v 1.2
1 2003/04/19 11:16:17
asmax Exp $
* $Id: gtk2_window.cpp,v 1.2
2 2003/04/19 11:46:11
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -106,7 +106,7 @@ GTK2Window::GTK2Window( intf_thread_t *p_intf, GdkWindow *gwnd, int x, int y,
if
(
DragDrop
)
{
// register the listview as a drop target
GTK2DropObject
*
DropDrop
=
new
GTK2DropObject
(
p_intf
);
DropObject
=
new
GTK2DropObject
(
p_intf
);
gdk_window_register_dnd
(
gwnd
);
}
...
...
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