Re: gtk+-2.8.x

TomPh wrote:

if (selected_names == NULL)
+ {
+   gtk_widget_grab_focus (view->treeview);
   return TRUE;
+ }

As it happens, that functionality has been under review, in pursuit of
faster and threaded filelist refreshing. Maybe that's why I haven't
seen the problem for a while.


That doesn't work.
The correct fix seems to be uncommenting a code block in e2_filelist.c line 1704:
---
if (view->selected_names == NULL)
{ //this is an initial load of the directory,
//select 1st row of view, if any
GtkTreeIter iter;
if (gtk_tree_model_get_iter_first (mdl, &iter))
{
GtkTreeSelection *sel = gtk_tree_view_get_selection
(GTK_TREE_VIEW (view->treeview));
gtk_tree_selection_select_iter (sel, &iter);
view->row = 0;
}
else
//nothing in the list, just unselect the dir line entry
gtk_widget_grab_focus (view->treeview);
}
else //this is a refresh, re-select the old names where possible
---


That works as advertised.

--
David Jensen



--
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: