mirror of
https://github.com/brl/mutter.git
synced 2025-07-24 02:18:02 +00:00
util: Move the text direction stuff out of MetaUI
GTK+ doesn't need to be initialized to get locale direction, which means we can do this without bringing up MetaUI at all.
This commit is contained in:
@@ -946,5 +946,19 @@ meta_later_remove (guint later_id)
|
||||
}
|
||||
}
|
||||
|
||||
MetaLocaleDirection
|
||||
meta_get_locale_direction (void)
|
||||
{
|
||||
switch (gtk_get_locale_direction ())
|
||||
{
|
||||
case GTK_TEXT_DIR_LTR:
|
||||
return META_LOCALE_DIRECTION_LTR;
|
||||
case GTK_TEXT_DIR_RTL:
|
||||
return META_LOCALE_DIRECTION_RTL;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
|
||||
/* eof util.c */
|
||||
|
||||
|
Reference in New Issue
Block a user