Look, I'm not a GTK expert. I'm just a guy who tried to solve a problem that have occurred to him, and have found the answer.
There is tree values:
GTK_TEXT_DIR_NONE - use the default direction setting.
GTK_TEXT_DIR_LTR - left to right direction for a specific widget.
GTK_TEXT_DIR_RTL - right to left direction for a specific widget.
First, this is work. If you don't believe me and you're LTR(left to right) speaker(At-list in your GTK/desktop setting), try to write this in your code, before you create the window(donn'o if it's work after):
This will flip your window to RTL. For example, if you have a menu bar on top, it will began from the right side and not from the left(like English).
But you do right I have a mistake in the second code I gave, see again the change I made above if you want to try it.
The first one over-set(ignore the user setting) the default widget direction only for the current process(i.e. widgets that their direction set to GTK_TEXT_DIR_NONE), and the second(above, not here) set the direction of a specific widget. Again, if you don't believe me, see this from first source:http://developer.gnome.org/gtk/stable/G ... -directionhttp://developer.gnome.org/gtk/stable/G ... -direction