From bdb31d01651aeae6fb3d3a46a8ed091b0b774206 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 14 Nov 2011 22:47:41 +0100 Subject: Merged imcontext.patch --- hildon/hildon-text-view.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/hildon/hildon-text-view.c b/hildon/hildon-text-view.c index 8bb94ab..1e3b23f 100644 --- a/hildon/hildon-text-view.c +++ b/hildon/hildon-text-view.c @@ -164,8 +164,12 @@ hildon_text_view_button_press_event (GtkWidget *widget, gtk_widget_grab_focus (widget); - if (GTK_TEXT_VIEW (widget)->editable && - hildon_gtk_im_context_filter_event (GTK_TEXT_VIEW (widget)->im_context, (GdkEvent*)event)) { + if (GTK_TEXT_VIEW (widget)->editable +#ifdef MAEMO_GTK + && hildon_gtk_im_context_filter_event (GTK_TEXT_VIEW (widget)->im_context, (GdkEvent*)event) +#endif + ) + { GTK_TEXT_VIEW (widget)->need_im_reset = TRUE; return TRUE; } @@ -214,8 +218,12 @@ hildon_text_view_button_release_event (GtkWidget *widget, GtkTextIter iter; gint x, y; - if (text_view->editable && - hildon_gtk_im_context_filter_event (text_view->im_context, (GdkEvent*)event)) { + if (text_view->editable +#ifdef MAEMO_GTK + && hildon_gtk_im_context_filter_event (text_view->im_context, (GdkEvent*)event) +#endif + ) + { text_view->need_im_reset = TRUE; return TRUE; } -- cgit v1.2.3-18-g5258