Panel HIG: rtl layouts
Stefan Stuhr
xfce4devlist at sstuhr.dk
Sun Dec 23 13:50:17 CET 2007
Diego Ongaro wrote:
> On the panel HIG ( http://wiki.xfce.org/panel-hig ), I proposed that
> Class B (Button) plugins such as xfdesktop's menu and the places
> plugin should display the icon/image on the left and the label on the
> right (for horizontal panels). Fabian responded that users with rtl
> languages such as Arabic would probably want the opposite order.
>
> Would users of rtl languages want the opposite order? What about on
> vertical panels?
>
> How could a plugin tell (in code) if it's being used with an rtl language?
>
> Does GTK provide any support for this, for example by packing things
> into boxes in the opposite order?
You can test it yourself by using
gtk_widget_set_default_direction(GTK_TEXT_DIR_RTL)
in any application/plugin you want to test.
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-set-default-direction
Screenshot of Abiword in Yiddish:
http://www.abisource.com/screenshots/abi-yiddish.png
Screenshots of GNOME 2.18 in Arabic:
http://wiki.arabeyes.org/%D8%B5%D9%88%D8%B1%D8%A9:Arabicgnome2-18.png
http://wiki.arabeyes.org/%D8%B5%D9%88%D8%B1%D8%A9:Gnome-2.18.png
http://wiki.arabeyes.org/%D8%B5%D9%88%D8%B1%D8%A9:Gedit-2.18.png
Screenshots from SharifLinux 2 (Iranian GNU/Linux-distribution):
http://www.farsiweb.ir/wiki/Image:Gnome.png
http://www.farsiweb.ir/wiki/Image:Application_Menu.png
http://www.farsiweb.ir/wiki/Image:Calc.png
> Thanks,
> Diego
Stefan
More information about the Xfce4-dev
mailing list