[nautilus/wip/antoniof/gnome-42: 1/72] Revert "query-editor: Restore type-to-search"
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gnome-42: 1/72] Revert "query-editor: Restore type-to-search"
- Date: Fri, 11 Feb 2022 19:27:58 +0000 (UTC)
commit b39fd5c017d6a098c233678f1f9ae19a24b383f6
Author: Ondrej Holy <oholy redhat com>
Date: Fri Feb 11 14:48:45 2022 +0100
Revert "query-editor: Restore type-to-search"
This reverts commit fd47742babfae904231efc7cb0d99afce5d37418.
src/nautilus-query-editor.c | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 98d69f3b0..15bcd1f57 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -795,7 +795,6 @@ nautilus_query_editor_handle_event (NautilusQueryEditor *self,
guint keyval,
GdkModifierType state)
{
- GtkWidget *text;
g_return_val_if_fail (NAUTILUS_IS_QUERY_EDITOR (self), GDK_EVENT_PROPAGATE);
g_return_val_if_fail (controller != NULL, GDK_EVENT_PROPAGATE);
@@ -807,19 +806,5 @@ nautilus_query_editor_handle_event (NautilusQueryEditor *self,
return GDK_EVENT_PROPAGATE;
}
- text = gtk_widget_get_first_child (GTK_WIDGET (self->entry));
- while (text != NULL)
- {
- if (GTK_IS_TEXT (text))
- {
- break;
- }
- text = gtk_widget_get_next_sibling (text);
- }
-
- if (text == NULL)
- {
- return FALSE;
- }
- return gtk_event_controller_key_forward (controller, text);
+ return gtk_event_controller_key_forward (controller, GTK_WIDGET (self->entry));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]