summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-04-28 14:05:07 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-04-29 11:44:05 -0400
commitcd5a1e5cf95a165c66e7a097530058864dc3a38f (patch)
tree7fb746f0559fcdcba0b14adf0d62a2e75d520f43
parent2000c7c61f88b6ecaa0ede221b59a3a3f2a4daca (diff)
downloadnautilus-cd5a1e5cf95a165c66e7a097530058864dc3a38f.tar.gz
places-sidebar: make sure to return if we click inside empty space
https://bugzilla.gnome.org/show_bug.cgi?id=648872
-rw-r--r--src/nautilus-places-sidebar.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 6e49a4cf4..56216ab62 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -2685,6 +2685,7 @@ bookmarks_button_release_event_cb (GtkWidget *widget,
GtkTreeIter iter;
GtkTreeModel *model;
GtkTreeView *tree_view;
+ gboolean res;
path = NULL;
@@ -2708,8 +2709,12 @@ bookmarks_button_release_event_cb (GtkWidget *widget,
return FALSE;
}
- gtk_tree_view_get_path_at_pos (tree_view, (int) event->x, (int) event->y,
- &path, NULL, NULL, NULL);
+ res = gtk_tree_view_get_path_at_pos (tree_view, (int) event->x, (int) event->y,
+ &path, NULL, NULL, NULL);
+
+ if (!res) {
+ return FALSE;
+ }
gtk_tree_model_get_iter (model, &iter, path);