diff options
author | Brian Tarricone <brian@tarricone.org> | 2007-11-15 06:22:11 +0000 |
---|---|---|
committer | Brian Tarricone <brian@tarricone.org> | 2007-11-15 06:22:11 +0000 |
commit | 7e41d8fb9ff5fc3d6c2f5349a18b8c4fbdbbd293 (patch) | |
tree | ff962f9a7b2bbba3bdef21fb4fb3a4be97e9f1bf | |
parent | dfb7ba9be5449db619a1e62601fd46e43643636c (diff) | |
download | xfdesktop-7e41d8fb9ff5fc3d6c2f5349a18b8c4fbdbbd293.tar.gz |
ok, this should fix the annoying spurious drag when double-clicking
a volume icon that fails to mount (bug 3426)
(Old svn revision: 26293)
-rw-r--r-- | src/xfdesktop-icon-view.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c index 3b779b4d..69f9506c 100644 --- a/src/xfdesktop-icon-view.c +++ b/src/xfdesktop-icon-view.c @@ -564,6 +564,11 @@ xfdesktop_icon_view_button_press(GtkWidget *widget, icon_view->priv->first_clicked_item = NULL; } } else if(evt->type == GDK_2BUTTON_PRESS) { + /* be sure to cancel any pending drags that might have snuck through. + * this shouldn't happen. */ + icon_view->priv->definitely_dragging = FALSE; + icon_view->priv->maybe_begin_drag = FALSE; + if(evt->button == 1) { GList *icon_l = g_list_find_custom(icon_view->priv->icons, evt, (GCompareFunc)xfdesktop_check_icon_clicked); |