Commit 9846428b authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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.
parent fa0b788d
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),
......
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),
......
......@@ -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;
}
......
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