[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?
- Re: Changes in frame/window code, (continued)
- Re: Changes in frame/window code, martin rudalics, 2014/07/30
- Re: Changes in frame/window code, Eli Zaretskii, 2014/07/30
- Re: Changes in frame/window code, martin rudalics, 2014/07/31
- Re: Changes in frame/window code, Eli Zaretskii, 2014/07/31
- Re: Changes in frame/window code, martin rudalics, 2014/07/31
- Re: Changes in frame/window code, Eli Zaretskii, 2014/07/31
- Re: Changes in frame/window code, martin rudalics, 2014/07/31
- Re: Changes in frame/window code, Jan Djärv, 2014/07/29
- Re: Changes in frame/window code, martin rudalics, 2014/07/29
- Re: Changes in frame/window code, Jan Djärv, 2014/07/29
- Re: Changes in frame/window code,
Eli Zaretskii <=
- Re: Changes in frame/window code, Stefan Monnier, 2014/07/31
- Re: Changes in frame/window code, Eli Zaretskii, 2014/07/31
- Re: Changes in frame/window code, Tassilo Horn, 2014/07/31
- Re: Changes in frame/window code, martin rudalics, 2014/07/31
- Re: Changes in frame/window code, Eli Zaretskii, 2014/07/31
- Re: Changes in frame/window code, martin rudalics, 2014/07/31
- Re: Changes in frame/window code, martin rudalics, 2014/07/27
Re: Changes in frame/window code, Jan Djärv, 2014/07/27
Re: Changes in frame/window code, Stefan Monnier, 2014/07/27