This is the expected reading direction for text and UI.
This function depends on the current locale being set with
setlocale() and will default to setting the GTK_TEXT_DIR_LTR
direction otherwise. GTK_TEXT_DIR_NONE will never be returned.
This function is only needed rare cases when the locale is
changed after GTK has already been initialized. In this case,
you can use it to update the default text direction as follows:
Gets the direction of the current locale.
This is the expected reading direction for text and UI.
This function depends on the current locale being set with
setlocale()and will default to setting theGTK_TEXT_DIR_LTRdirection otherwise.GTK_TEXT_DIR_NONEwill never be returned.GTK sets the default text direction according to the locale during Gtk.init, and you should normally use Gtk.Widget.get_direction or Gtk.Widget.get_default_direction to obtain the current direction.
This function is only needed rare cases when the locale is changed after GTK has already been initialized. In this case, you can use it to update the default text direction as follows: