emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes in frame/window code


From: Eli Zaretskii
Subject: Re: Changes in frame/window code
Date: Tue, 29 Jul 2014 19:34:15 +0300

> From: Jan Djärv <address@hidden>
> Date: Tue, 29 Jul 2014 17:29:07 +0200
> Cc: martin rudalics <address@hidden>,
>  address@hidden
> 
> >>> (Btw, shouldn't GTK scroll bars already support bidirectional text out
> >>> of the box?  Perhaps you need to set some flag(s) to get that.)
> >> 
> >> No idea.
> > 
> > Maybe Jan (CC'ed) can help us out.
> > 
> >> In any case I would have to tell GTK whether the "current text"
> >> (whatever that is) is L2R or R2L I suppose.
> > 
> > Yes, but we have current-bidi-paragraph-direction for that.
> 
> Not out of the box, but 
>    gtk_widget_set_direction (w, GTK_TEXT_DIR_RTL)
> and
>   gtk_range_set_flippable (w, TRUE);
> 
> where w is the scrollbar should do it according to the documentation.  I have 
> not tried it.
> gtk_range_set_flippable is since 2.18, so you would have to put in a check 
> for that.

Thanks.

So we should call gtk_range_set_flippable, and then actually flip the
direction by calling gtk_widget_set_direction according to what
current-bidi-paragraph-direction returns, is that right?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]