[nautilus/wip/csoriano/zoomsv3: 16/18] query-editor: make search popover keyboard navigable
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/zoomsv3: 16/18] query-editor: make search popover keyboard navigable
- Date: Tue, 23 Feb 2016 14:51:18 +0000 (UTC)
commit 6fee5f530159ad4ce9244e70b8afc7edb6e65332
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Feb 23 14:21:43 2016 +0100
query-editor: make search popover keyboard navigable
We need to move the focus back and forth from it.
https://bugzilla.gnome.org/show_bug.cgi?id=762136
src/nautilus-query-editor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 403929e..0421fb9 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -576,6 +576,9 @@ setup_widgets (NautilusQueryEditor *editor)
/* setup the search popover */
priv->popover = nautilus_search_popover_new ();
+ g_signal_connect (priv->popover, "show", (GCallback) gtk_widget_grab_focus, NULL);
+ g_signal_connect_swapped (priv->popover, "closed", (GCallback) gtk_widget_grab_focus, editor);
+
g_object_bind_property (editor, "query",
priv->popover, "query",
G_BINDING_DEFAULT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]