[nautilus] canvas-dnd: don't trigger dnd hover on the desktop
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] canvas-dnd: don't trigger dnd hover on the desktop
- Date: Wed, 20 Feb 2013 04:50:31 +0000 (UTC)
commit 146f04eb23722eac2e6ca4d2b0b779ba0713c964
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Feb 19 23:47:24 2013 -0500
canvas-dnd: don't trigger dnd hover on the desktop
libnautilus-private/nautilus-canvas-dnd.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-canvas-dnd.c b/libnautilus-private/nautilus-canvas-dnd.c
index 4be79bd..dc32fff 100644
--- a/libnautilus-private/nautilus-canvas-dnd.c
+++ b/libnautilus-private/nautilus-canvas-dnd.c
@@ -1527,6 +1527,11 @@ check_hover_timer (NautilusCanvasContainer *container,
if (g_strcmp0 (uri, dnd_info->target_uri) == 0) {
return;
}
+
+ if (nautilus_canvas_container_get_is_desktop (container)) {
+ return;
+ }
+
remove_hover_timer (dnd_info);
settings = gtk_widget_get_settings (GTK_WIDGET (container));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]