[nautilus] places-sidebar: make sure to return if we click inside empty space
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] places-sidebar: make sure to return if we click inside empty space
- Date: Thu, 28 Apr 2011 18:06:14 +0000 (UTC)
commit 8e8f0ed6edd3c5d4f9cca0e07a5624a3d5e2ec29
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 28 14:05:07 2011 -0400
places-sidebar: make sure to return if we click inside empty space
https://bugzilla.gnome.org/show_bug.cgi?id=648872
src/nautilus-places-sidebar.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 16982bd..073ed36 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]