Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xfce
thunar
Commits
58568697
Commit
58568697
authored
Dec 20, 2009
by
Jannis Pohlmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid requesting drag data if target is GDK_NONE (bug #5771).
Patch provided by k.blammo@gmail.com.
parent
eb6e6fc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
thunar/thunar-standard-view.c
thunar/thunar-standard-view.c
+3
-1
No files found.
thunar/thunar-standard-view.c
View file @
58568697
...
@@ -2814,6 +2814,7 @@ thunar_standard_view_drag_motion (GtkWidget *view,
...
@@ -2814,6 +2814,7 @@ thunar_standard_view_drag_motion (GtkWidget *view,
{
{
/* check if we can handle that drag data (yet?) */
/* check if we can handle that drag data (yet?) */
target
=
gtk_drag_dest_find_target
(
view
,
context
,
NULL
);
target
=
gtk_drag_dest_find_target
(
view
,
context
,
NULL
);
if
((
target
==
gdk_atom_intern_static_string
(
"XdndDirectSave0"
))
||
(
target
==
gdk_atom_intern_static_string
(
"_NETSCAPE_URL"
)))
if
((
target
==
gdk_atom_intern_static_string
(
"XdndDirectSave0"
))
||
(
target
==
gdk_atom_intern_static_string
(
"_NETSCAPE_URL"
)))
{
{
/* determine the file for the given coordinates */
/* determine the file for the given coordinates */
...
@@ -2857,7 +2858,8 @@ thunar_standard_view_drag_motion (GtkWidget *view,
...
@@ -2857,7 +2858,8 @@ thunar_standard_view_drag_motion (GtkWidget *view,
else
else
{
{
/* request the drag data from the source */
/* request the drag data from the source */
gtk_drag_get_data
(
view
,
context
,
target
,
timestamp
);
if
(
target
!=
GDK_NONE
)
gtk_drag_get_data
(
view
,
context
,
target
,
timestamp
);
}
}
/* tell Gdk whether we can drop here */
/* tell Gdk whether we can drop here */
...
...
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