[gedit/gnome-2-28] Fix single click behavior when item is selected for file browser view



commit c66958ad0bbbc66908da6f53975dcf28872664a2
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sun Nov 15 21:57:47 2009 +0100

    Fix single click behavior when item is selected for file browser view

 plugins/filebrowser/gedit-file-browser-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-view.c b/plugins/filebrowser/gedit-file-browser-view.c
index 661b1a9..c890bdc 100644
--- a/plugins/filebrowser/gedit-file-browser-view.c
+++ b/plugins/filebrowser/gedit-file-browser-view.c
@@ -576,7 +576,7 @@ button_press_event (GtkWidget      *widget,
 
 				if (selected) {
 					call_parent = on_expander || gtk_tree_selection_count_selected_rows (selection) == 1;
-					view->priv->ignore_release = call_parent;
+					view->priv->ignore_release = call_parent && view->priv->click_policy != GEDIT_FILE_BROWSER_VIEW_CLICK_POLICY_SINGLE;
 				} else if  ((event->state & GDK_CONTROL_MASK) != 0) {
 					call_parent = FALSE;
 					gtk_tree_selection_select_path (selection, path);



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