[Gtk-sharp-list] Changing direction of menu items

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Sep 13 12:12:53 EDT 2008


On Sat, Sep 13, 2008 at 6:08 AM, True Friend <true.friend2004 at gmail.com> wrote:
> HI
> I want to change the direction of menu items on a menu bar, i mean the
> different action buttons on a menu like Open, New, Save etc. I want to
> change their direction to RTL.. Menubar has two properties Pack Direction
> and Chile Pack Direction both lets the direction of menu bar to RTL (on
> selecting Right to left) but the child items within a menu remain as they
> were i.e. LTR like "(Icon) Open Ctrl+O", while I want
> "Ctrl+O کھولیں (Icon)". Any ideas to do so in MD 1.0 designer?

GTK reverses your entire widget layout automatically if your system's
current locale is a RTL locale:
http://www-128.ibm.com/developerworks/aix/library/au-internatlgtk/index.html.

If there are any things you need to handle specially dpending on the
text direction, use the Widget.Direct property to determine what it
is.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Gtk-sharp-list mailing list