[PATCH] for minor focus problme in list view # 127384



when one  performs the following actions using mouse 
1.select a file in list view
2. go to location bar 
3. try to  select again the samefile , focus does not come to selected
file. this problem appears both in gnome 2.4 and gnome2.5. it works as
expected in nautilus 2.2.1 

in file-manager/fm-list-view.c -> button_press_callback function button
event is not handed over to parent tree_view object when one clicks on
already selected path. But when the tree_view object does not have
current focus with it, we need to grab focus even when one clicks on
already selected path to make things appear properly.

Index: fm-list-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-list-view.c,v
retrieving revision 1.208
diff -p -u -r1.208 fm-list-view.c
--- fm-list-view.c      12 Nov 2003 00:26:01 -0000      1.208
+++ fm-list-view.c      20 Nov 2003 05:41:35 -0000
@@ -479,6 +479,8 @@ button_press_callback (GtkWidget *widget
                                                                        
                                                    
                if (call_parent) {
                        tree_view_class->button_press_event (widget,
event);
+               } else if (gtk_tree_selection_path_is_selected
(selection, path)) {
+                       gtk_widget_grab_focus(widget);
                }
                                                                        
                                                    
                if (event->button == 1 || event->button == 2) {






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