From 708f09884c7546415cd70226e9865d5e62c496c4 Mon Sep 17 00:00:00 2001 From: IgnorantGuru Date: Tue, 19 May 2015 13:32:33 -0600 Subject: [PATCH] fix icon/compact view left-click doesnt unselect other files --- ChangeLog | 1 + src/ptk/ptk-file-browser.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c9457412b..e80cb50ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ add View|Style|Thumbnails (global) add show_thumbnails socket property fix missing paths on command line hangs introduced in f167b283 #468 + fix icon/compact view left-click doesn't unselect other files 1.0.1 2015-05-04: extended bookmarks system added users manual Bookmarks section diff --git a/src/ptk/ptk-file-browser.c b/src/ptk/ptk-file-browser.c index a4f6f4918..0cb706f3a 100644 --- a/src/ptk/ptk-file-browser.c +++ b/src/ptk/ptk-file-browser.c @@ -4002,8 +4002,10 @@ on_folder_view_button_release_event ( GtkWidget *widget, { if ( exo_icon_view_is_rubber_banding_active( EXO_ICON_VIEW( widget ) ) ) return FALSE; - if ( app_settings.single_click ) - { + //sfm disabled 1.0.2 Why was this conditional on single_click? + // Caused a left-click to not unselect other files. + //if ( app_settings.single_click ) + //{ tree_path = exo_icon_view_get_path_at_pos( EXO_ICON_VIEW( widget ), event->x, event->y ); model = exo_icon_view_get_model( EXO_ICON_VIEW( widget ) ); @@ -4013,7 +4015,7 @@ on_folder_view_button_release_event ( GtkWidget *widget, exo_icon_view_unselect_all( EXO_ICON_VIEW( widget ) ); exo_icon_view_select_path( EXO_ICON_VIEW( widget ), tree_path ); } - } + //} } else if ( file_browser->view_mode == PTK_FB_LIST_VIEW ) {