From 8bb6d00ce240286ade023bced18bf0e55e6efb66 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 16 Feb 2019 00:52:20 -0500 Subject: [PATCH] search entry: temporarily disable some functions The search entry needs to be rewritten to use a text child until then, keep it limping along. --- gtk/gtksearchentry.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c index b2368c308a..acbd5e110e 100644 --- a/gtk/gtksearchentry.c +++ b/gtk/gtksearchentry.c @@ -31,6 +31,7 @@ #include "gtkaccessible.h" #include "gtkbindings.h" +#include "gtkentryprivate.h" #include "gtkintl.h" #include "gtkmarshalers.h" #include "gtkstylecontext.h" @@ -164,10 +165,6 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass) GTK_TYPE_SEARCH_ENTRY, G_CALLBACK (gtk_search_entry_icon_release)); - g_signal_override_class_handler ("preedit-changed", - GTK_TYPE_SEARCH_ENTRY, - G_CALLBACK (gtk_search_entry_preedit_changed)); - /** * GtkSearchEntry::search-changed: * @entry: the entry on which the signal was emitted @@ -368,6 +365,9 @@ gtk_search_entry_init (GtkSearchEntry *entry) atk_object_set_name (atk_obj, _("Search")); gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), I_("search")); + + g_signal_connect (gtk_entry_get_text_widget (GTK_ENTRY (entry)), "preedit-changed", + G_CALLBACK (gtk_search_entry_preedit_changed), NULL); } /**