summaryrefslogtreecommitdiff
path: root/src/nautilus-query-editor.h
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2021-08-08 16:18:01 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2021-12-22 01:38:47 +0000
commit41ee24721ef2ccfeca877e2e3801c37e602660c0 (patch)
treeeb89345fc04db98b5a5b22bc466f9b0d81633f15 /src/nautilus-query-editor.h
parent522e3911af6c1ec2bdcb673f4fb04d1241ce399a (diff)
downloadnautilus-41ee24721ef2ccfeca877e2e3801c37e602660c0.tar.gz
query-editor: Drop gtk_search_entry_handle_event()
It's going away in GTK4. Also, as we use a key event controller now, we can use gtk_event_controller_key_forward() instead. This is how GTK4 implements gtk_search_entry_set_key_capture_widget(), so reimplement it here. We were not going to inherit anyway, because we need a custom widget for a tagged entry in GTK4.
Diffstat (limited to 'src/nautilus-query-editor.h')
-rw-r--r--src/nautilus-query-editor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-query-editor.h b/src/nautilus-query-editor.h
index c09de18a0..ec9db128e 100644
--- a/src/nautilus-query-editor.h
+++ b/src/nautilus-query-editor.h
@@ -73,5 +73,7 @@ void nautilus_query_editor_set_text (NautilusQueryEditor *editor,
const gchar *text);
gboolean
-nautilus_query_editor_handle_event (NautilusQueryEditor *self,
- GdkEvent *event);
+nautilus_query_editor_handle_event (NautilusQueryEditor *self,
+ GtkEventControllerKey *controller,
+ guint keyval,
+ GdkModifierType state);