[nautilus/gnome-3-0] places-sidebar: don't return TRUE in button-release when we eject
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-0] places-sidebar: don't return TRUE in button-release when we eject
- Date: Mon, 25 Apr 2011 17:50:15 +0000 (UTC)
commit e10ab3116e9fb8ea9cc36b934a4a96ea55fb6bfb
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]