From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Itai Seggev <is+debian@cs.hmc.edu>
Cc: Sven Joachim <svenjoac@gmx.de>,
439559-forwarded@bugs.debian.org, emacs-devel@gnu.org
Subject: Re: [Itai Seggev] Bug#439559: emacs22-gtk: forward/back buttons backwards when GTK is set to RTL language
Date: Mon, 03 Sep 2007 08:21:53 +0200 [thread overview]
Message-ID: <46DBA801.7050404@swipnet.se> (raw)
In-Reply-To: <20070902234808.GA1718@knuth.cs.hmc.edu>
Itai Seggev skrev:
> On Thu, Aug 30, 2007 at 08:10:26AM +0200, Jan Djärv wrote:
>>
>> Itai Seggev skrev:
>>> On Tue, Aug 28, 2007 at 12:19:43PM +0200, Jan Djärv wrote:
>>>> I've made a fix in CVS HEAD, can you try that?
>>> OK, I've downloaded and compiled CVS HEAD. After about 2 minutes of
>>> testing, it seems that the next-node/previous-node buttons are
>>> correctly ordered for a RTL language, but that
>>> forward-history/back-history are still in the LTR orientation. I'll
>>> play some more with it after work and see if there are any additional
>>> issues.
>> It seems that some themes don't supply RTL information. Can you try some
>> other themes and see if the forward-history/back-history are correct for
>> any of them? Crux, Bluecurve or Clearlooks works for me.
>
> OK, so it is a problem with some themes and not others. In particular with
> gtk-qt. However, if the problem really is with the theme, why is it
> that the next/previous buttons are OK, and only the back/forward
> buttons don't look right. Perhaps whatever changes to next/previous
> could also be applied to forward/back so that they also look OK in all
> themes.
The difference is that next/previous are not Gtk+ stock icons (i.e. defined by
the theme), but forward/back are. Gtk+ handles RTL/LTR by itself when stock
icons are used, but only if the theme supplies that information.
So in theory we should ask Gtk+ if RTL is used, and if so, does the stock
icons have any RTL information? Unfortunately, the Gtk+ API does not give us
access to RTL information for individual themed icons. So sometimes Gtk+ does
the right thing, sometimes it does not, depending on the theme used.
We could "untheme" forward/back, but that would be too drastic. The best I
can think of for your situation is to
a) file a bug report on the theme you are using. The root cuase is there.
b) As a workaround, you can "untheme" forward/back by customizing
x-gtk-stock-map (M-x customize-variable<RET>x-gtk-stock-map<RET>).
Delete the rows for etc/images/left-arrow and etc/images/right-arrow. The
downside is that forward/back are now not themed. But all themes will be
correct RTL-wise.
c) You can also swap icons in x-gtk-stock-map, so you map
etc/images/left-arrow to gtk-go-forward and etc/images/right-arrow to
gtk-go-back. But remember that you did this if you change theme or your theme
is fixed so that it supplies RTL information.
>
>> Well, it would look like a "normal" tool bar, like the one you get with
>> locale "C".
>
> So the menu bar would the RTL, but the toolbar would be LTR? That's a
> bit wiered, but I guess better than the current situation.
Emacs 22 and emacs CVS HEAD now behave the same in this regard, so forcing LTR
is not an option anymore.
Jan D.
prev parent reply other threads:[~2007-09-03 6:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-26 9:35 [Itai Seggev] Bug#439559: emacs22-gtk: forward/back buttons backwards when GTK is set to RTL language Sven Joachim
[not found] ` <46D3F6BF.9050605@swipnet.se>
[not found] ` <20070828183637.GA809@knuth.cs.hmc.edu>
2007-08-30 6:10 ` Jan Djärv
2007-09-02 23:48 ` Itai Seggev
2007-09-03 6:21 ` Jan Djärv [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46DBA801.7050404@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=439559-forwarded@bugs.debian.org \
--cc=emacs-devel@gnu.org \
--cc=is+debian@cs.hmc.edu \
--cc=svenjoac@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.