Mercurial > hg > forks > geeqie
changeset 2732:cff064279094
Fix #592: Directory widget loses focus on tab completion
https://github.com/BestImageViewer/geeqie/issues/592
The call to layout_set_path() was shifting the focus.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Sun, 04 Mar 2018 12:00:19 +0000 |
parents | 304fbae3fd0f |
children | 28978fd4c263 0d8300b608b4 |
files | src/layout.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout.c Tue Feb 27 17:12:33 2018 +0000 +++ b/src/layout.c Sun Mar 04 12:00:19 2018 +0000 @@ -234,6 +234,7 @@ { if ((!lw->dir_fd || strcmp(lw->dir_fd->path, buf) != 0) && layout_set_path(lw, buf)) { + gtk_widget_grab_focus(GTK_WIDGET(lw->path_entry)); gint pos = -1; /* put the G_DIR_SEPARATOR back, if we are in tab completion for a dir and result was path change */ gtk_editable_insert_text(GTK_EDITABLE(lw->path_entry), G_DIR_SEPARATOR_S, -1, &pos);