summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-10-07 15:49:38 +0200
committerAlexander Larsson <alexl@redhat.com>2009-10-20 13:09:27 +0200
commit024fab20ad0dc9fe45e16a5959d812b732d2ee6e (patch)
treec9bf1742d06c10e9b7d89bfa6b1d8bfdb4d6012e
parent5bc9d596aed2f44de7b32b510aceec1c90f7b98c (diff)
downloadnautilus-024fab20ad0dc9fe45e16a5959d812b732d2ee6e.tar.gz
Chain up to the parent handler if we click outside any row.
By doing so, the tree view widget will gain focus anyway. Fix bug #589088.
-rw-r--r--src/file-manager/fm-list-view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index e04f21504..6df7ebed1 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -730,6 +730,7 @@ button_press_callback (GtkWidget *widget, GdkEventButton *event, gpointer callba
/* Deselect if people click outside any row. It's OK to
let default code run; it won't reselect anything. */
gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (tree_view));
+ tree_view_class->button_press_event (widget, event);
if (event->button == 3) {
do_popup_menu (widget, view, event);