Commit 8c941d2b authored by Javier Jardón's avatar Javier Jardón

Add _gtk_entry_get_im_context() internal accessor

It's needed by gtktreeview
parent fb3429e5
......@@ -5840,6 +5840,11 @@ gtk_entry_im_context_filter_keypress (GtkEntry *entry,
return gtk_im_context_filter_keypress (entry->im_context, event);
}
GtkIMContext*
_gtk_entry_get_im_context (GtkEntry *entry)
{
return entry->im_context;
}
static gint
gtk_entry_find_position (GtkEntry *entry,
......
......@@ -84,6 +84,7 @@ void _gtk_entry_get_borders (GtkEntry *entry,
void _gtk_entry_effective_inner_border (GtkEntry *entry,
GtkBorder *border);
void _gtk_entry_reset_im_context (GtkEntry *entry);
GtkIMContext* _gtk_entry_get_im_context (GtkEntry *entry);
G_END_DECLS
#endif /* __GTK_ENTRY_PRIVATE_H__ */
......@@ -47,6 +47,7 @@
#include "gtkscrollable.h"
#include "gtkprivate.h"
#include "gtkwidgetprivate.h"
#include "gtkentryprivate.h"
/**
......@@ -10467,10 +10468,12 @@ gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view)
g_signal_connect (tree_view->priv->search_entry,
"activate", G_CALLBACK (gtk_tree_view_search_activate),
tree_view);
g_signal_connect (GTK_ENTRY (tree_view->priv->search_entry)->im_context,
g_signal_connect (_gtk_entry_get_im_context (GTK_ENTRY (tree_view->priv->search_entry)),
"preedit-changed",
G_CALLBACK (gtk_tree_view_search_preedit_changed),
tree_view);
gtk_container_add (GTK_CONTAINER (vbox),
tree_view->priv->search_entry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment