From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Changes in frame/window code Date: Tue, 29 Jul 2014 19:34:15 +0300 Message-ID: <83ha20t988.fsf@gnu.org> References: <53CE6A44.1010708@gmx.at> <53D4FF76.1060804@gmx.at> <8338dmj1of.fsf@gnu.org> <83wqayhe0o.fsf@gnu.org> <53D542B3.20206@gmx.at> <83tx62hane.fsf@gnu.org> <53D6172A.5010909@gmx.at> <83fvhlhad5.fsf@gnu.org> <53D656BB.3010201@gmx.at> <83egx5h86z.fsf@gnu.org> <45C5C690-8050-4158-909D-94566B438718@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1406651665 13701 80.91.229.3 (29 Jul 2014 16:34:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 16:34:25 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 29 18:34:17 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XCALt-0002Wm-NV for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 18:34:13 +0200 Original-Received: from localhost ([::1]:47028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCALt-0002QZ-AC for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 12:34:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCALl-0002PN-8u for emacs-devel@gnu.org; Tue, 29 Jul 2014 12:34:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCALg-0003pF-BX for emacs-devel@gnu.org; Tue, 29 Jul 2014 12:34:05 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:51269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCALg-0003p3-3V for emacs-devel@gnu.org; Tue, 29 Jul 2014 12:34:00 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N9H00L00F8MCQ00@mtaout29.012.net.il> for emacs-devel@gnu.org; Tue, 29 Jul 2014 19:34:08 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N9H00DOMFCWS670@mtaout29.012.net.il>; Tue, 29 Jul 2014 19:34:08 +0300 (IDT) In-reply-to: <45C5C690-8050-4158-909D-94566B438718@swipnet.se> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173260 Archived-At: > From: Jan Dj=E4rv > Date: Tue, 29 Jul 2014 17:29:07 +0200 > Cc: martin rudalics , > emacs-devel@gnu.org >=20 > >>> (Btw, shouldn't GTK scroll bars already support bidirectional t= ext out > >>> of the box? Perhaps you need to set some flag(s) to get that.) > >>=20 > >> No idea. > >=20 > > Maybe Jan (CC'ed) can help us out. > >=20 > >> In any case I would have to tell GTK whether the "current text" > >> (whatever that is) is L2R or R2L I suppose. > >=20 > > Yes, but we have current-bidi-paragraph-direction for that. >=20 > Not out of the box, but=20 > gtk_widget_set_direction (w, GTK_TEXT_DIR_RTL) > and > gtk_range_set_flippable (w, TRUE); >=20 > where w is the scrollbar should do it according to the documentatio= n. 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?