[gtk/fix-entry-completion: 1/4] entrycompletion: Name the controllers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-entry-completion: 1/4] entrycompletion: Name the controllers
- Date: Mon, 22 Jun 2020 16:51:17 +0000 (UTC)
commit 418bbb268547e4111d7435286fa632d74f098863
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 22 12:31:15 2020 -0400
entrycompletion: Name the controllers
This helps with debugging.
gtk/gtkentrycompletion.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index e2128842db..8fdc9d0739 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -2335,10 +2335,12 @@ connect_completion_signals (GtkEntryCompletion *completion)
GtkText *text = gtk_entry_get_text_widget (GTK_ENTRY (priv->entry));
controller = priv->entry_key_controller = gtk_event_controller_key_new ();
+ gtk_event_controller_set_name (controller, "gtk-entry-completion");
g_signal_connect (controller, "key-pressed",
G_CALLBACK (gtk_entry_completion_key_pressed), completion);
gtk_widget_add_controller (GTK_WIDGET (text), controller);
controller = priv->entry_focus_controller = gtk_event_controller_focus_new ();
+ gtk_event_controller_set_name (controller, "gtk-entry-completion");
g_signal_connect_swapped (controller, "leave", G_CALLBACK (text_focus_out), completion);
gtk_widget_add_controller (GTK_WIDGET (text), controller);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]