From 86bdb487d48e9bf80c4947b323b0df719a381322 Mon Sep 17 00:00:00 2001 From: "Alejandro G. Castro" Date: Thu, 16 Jul 2009 11:14:02 +0200 Subject: [PATCH] Grabbed the focus in the HildonTextView button press callback * hildon/hildon-text-view.c, (hildon_text_view_button_press_event): Grabbed the focus in button press, this way we are sure the widget has the focus in the release event, required for HIM. Fixes: NB#121445 (Virtual keyboard opening is not working in same way for each text entry field) --- ChangeLog | 10 ++++++++++ hildon/hildon-text-view.c | 2 ++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9e8c7a8..0b331cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-07-16 Alejandro G. Castro + + * hildon/hildon-text-view.c, + (hildon_text_view_button_press_event): Grabbed the focus in button + press, this way we are sure the widget has the focus in the + release event, required for HIM. + + Fixes: NB#121445 (Virtual keyboard opening is not working in same + way for each text entry field) + 2009-07-15 Alejandro Pinheiro * hildon/hildon-pannable-area.[ch](hildon_pannable_area_set_focus_child) diff --git a/hildon/hildon-text-view.c b/hildon/hildon-text-view.c index 4fb0086..62edec5 100644 --- a/hildon/hildon-text-view.c +++ b/hildon/hildon-text-view.c @@ -244,6 +244,8 @@ hildon_text_view_button_press_event (GtkWidget *widget, { HildonTextViewPrivate *priv = HILDON_TEXT_VIEW_GET_PRIVATE (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)) { GTK_TEXT_VIEW (widget)->need_im_reset = TRUE; -- 1.7.9.5