forked from AuroraMiddleware/gtk
search entry: temporarily disable some functions
The search entry needs to be rewritten to use a text child until then, keep it limping along.
This commit is contained in:
parent
1930c74736
commit
8bb6d00ce2
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user