diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-03-01 16:07:45 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-03-01 16:07:45 +0000 |
commit | 8130a8a227f891d0d3aab433c7b19ccaf51e5fa7 (patch) | |
tree | 48c76c69ac87b41ab48ff08a64b970a40f90d44f /gtk/gtktextlayout.h | |
parent | f0d22047c3126ab2c420dc084b4caaa82a0bd324 (diff) | |
download | gtk+-8130a8a227f891d0d3aab433c7b19ccaf51e5fa7.tar.gz |
Patch from Dov Grobgeld to implement auto-bidi-direction for GtkTextView
Mon Mar 1 10:41:27 2004 Owen Taylor <otaylor@redhat.com>
Patch from Dov Grobgeld to implement auto-bidi-direction
for GtkTextView (#118543)
* gtk/gtktextbtree.[ch]: Resolve bidi base direction
for each line by propagating backwards/forwards as
necessary.
* gtk/gtktextlayout.[ch] gtk/gtktextview.c: Set the
bidi base direction for the ;ine with the cursor from
the keyboard direction. Add gtk_text_layout_set_keyboard_direction().
Mon Mar 1 10:31:11 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.[ch]: Implement auto-bidi-direction,
based on a patch from Dov Grobgeld. (#118540)
Diffstat (limited to 'gtk/gtktextlayout.h')
-rw-r--r-- | gtk/gtktextlayout.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h index 58e8e97c45..fa6802ebb0 100644 --- a/gtk/gtktextlayout.h +++ b/gtk/gtktextlayout.h @@ -165,6 +165,11 @@ struct _GtkTextLayout */ guint cursor_direction : 2; + /* The keyboard direction is used to default the alignment when + there are no strong characters. + */ + guint keyboard_direction : 2; + /* The preedit string and attributes, if any */ gchar *preedit_string; @@ -265,7 +270,9 @@ void gtk_text_layout_set_contexts (GtkTextLayout *lay PangoContext *ltr_context, PangoContext *rtl_context); void gtk_text_layout_set_cursor_direction (GtkTextLayout *layout, - GtkTextDirection direction); + GtkTextDirection direction); +void gtk_text_layout_set_keyboard_direction (GtkTextLayout *layout, + GtkTextDirection keyboard_dir); void gtk_text_layout_default_style_changed (GtkTextLayout *layout); void gtk_text_layout_set_screen_width (GtkTextLayout *layout, |