[gtk/text: 4/26] search entry: temporarily disable some functions



commit 4ac3bf29b38a0e974956a40c259fe94b79c6f29d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 16 00:52:20 2019 -0500

    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);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]