[nautilus/wip/antoniof/view-focus-bugs: 2/2] files-view: Fallback focus grabbing correctly
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/view-focus-bugs: 2/2] files-view: Fallback focus grabbing correctly
- Date: Sat, 10 Sep 2022 22:46:08 +0000 (UTC)
commit 1f81a5eb57065c3c2358151e7b03980a804274e3
Author: António Fernandes <antoniof gnome org>
Date: Sat Sep 10 23:10:17 2022 +0100
files-view: Fallback focus grabbing correctly
If there is a child, bug grabbing focus on it fails, we should
chain up instead of returning FALSE right away.
Otherwise, keyboard focus is broken in empty folders.
src/nautilus-files-view.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index e185b4bbf..62e5bc0cb 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -3221,7 +3221,10 @@ nautilus_files_view_grab_focus (GtkWidget *widget)
if (child != NULL)
{
- return gtk_widget_grab_focus (GTK_WIDGET (child));
+ if (gtk_widget_grab_focus (GTK_WIDGET (child)))
+ {
+ return TRUE;
+ }
}
return GTK_WIDGET_CLASS (nautilus_files_view_parent_class)->grab_focus (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]