summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
authorDov Grobgeld <dov@imagic.weizmann.ac.il>2004-03-11 15:42:49 +0000
committerDov Grobgeld <dov@src.gnome.org>2004-03-11 15:42:49 +0000
commita1707142b8169c955c9e6a4eb22e3e761a7df2a2 (patch)
tree09112a50ff40fd4e3058d3701312a20a3a5776bb /gtk/gtktextlayout.c
parentcce69876e7c7b765c8f1548aa8659fdc4ad7374e (diff)
downloadgtk+-a1707142b8169c955c9e6a4eb22e3e761a7df2a2.tar.gz
Added call to gtk_text_layout_update_cursor_line() to solve in problem of
2004-03-11 Dov Grobgeld <dov@imagic.weizmann.ac.il> * gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added call to gtk_text_layout_update_cursor_line() to solve in problem of switching keyboard direction at widget creation: bug #136680
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 8c6f546081..874dc3cd84 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -344,6 +344,8 @@ gtk_text_layout_set_buffer (GtkTextLayout *layout,
G_CALLBACK (gtk_text_layout_buffer_insert_text), layout);
g_signal_connect_after (layout->buffer, "delete_range",
G_CALLBACK (gtk_text_layout_buffer_delete_range), layout);
+
+ gtk_text_layout_update_cursor_line (layout);
}
}
@@ -777,7 +779,7 @@ gtk_text_layout_invalidate_cursor_line (GtkTextLayout *layout)
if (priv->cursor_line == NULL)
return;
-
+
line_data = _gtk_text_line_get_data (priv->cursor_line, layout);
if (line_data)
{