Reset im context before committing \n or \t.

2005-09-02  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
	im context before committing \n or \t.
This commit is contained in:
Matthias Clasen 2005-09-02 17:15:47 +00:00 committed by Matthias Clasen
parent fa0b788dde
commit 9846428b25
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-09-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
im context before committing \n or \t.
2005-09-02 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),

View File

@ -1,3 +1,8 @@
2005-09-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_key_press_event): Reset
im context before committing \n or \t.
2005-09-02 Alexander Larsson <alexl@redhat.com>
* gtk/gtkfilechooserdefault.c: (shortcuts_add_volumes),

View File

@ -3881,6 +3881,7 @@ gtk_text_view_key_press_event (GtkWidget *widget, GdkEventKey *event)
/* this won't actually insert the newline if the cursor isn't
* editable
*/
gtk_text_view_reset_im_context (text_view);
gtk_text_view_commit_text (text_view, "\n");
obscure = TRUE;
@ -3896,6 +3897,7 @@ gtk_text_view_key_press_event (GtkWidget *widget, GdkEventKey *event)
*/
if (text_view->accepts_tab && text_view->editable)
{
gtk_text_view_reset_im_context (text_view);
gtk_text_view_commit_text (text_view, "\t");
obscure = TRUE;
}