[nautilus] places-sidebar: don't return TRUE in button-release when we eject



commit b37f08ef618b6418711a7c70ff7485961bc9058d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 31 13:29:05 2011 -0400

    places-sidebar: don't return TRUE in button-release when we eject
    
    Otherwise the GtkTreeView default handler won't run cleaning up
    what it set up in button-press-event and the next motion-event will
    trigger the DnD to begin.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646302

 src/nautilus-places-sidebar.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 1a789ac..21564ca 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -2688,7 +2688,6 @@ bookmarks_button_release_event_cb (GtkWidget *widget,
 	GtkTreePath *path;
 	GtkTreeModel *model;
 	GtkTreeView *tree_view;
-	gboolean ret;
 
 	path = NULL;
 
@@ -2697,9 +2696,10 @@ bookmarks_button_release_event_cb (GtkWidget *widget,
 	}
 
 	if (clicked_eject_button (sidebar, &path)) {
-		ret = eject_or_unmount_bookmark (sidebar, path);
+		eject_or_unmount_bookmark (sidebar, path);
 		gtk_tree_path_free (path);
-		return ret;
+
+		return FALSE;
 	}
 
 	tree_view = GTK_TREE_VIEW (widget);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]