mirror of
https://github.com/brl/mutter.git
synced 2025-07-28 12:38:04 +00:00
core: Replace gtk_get_default_locale usage
Clutter has an API to get the text direction but used to depend on gtk3's translation domain. In order to avoid broken i18n in case gtk3 is not installed, move the transtalable string to clutter itself. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2407>
This commit is contained in:
@@ -508,11 +508,11 @@ meta_external_binding_name_for_action (guint keybinding_action)
|
||||
MetaLocaleDirection
|
||||
meta_get_locale_direction (void)
|
||||
{
|
||||
switch (gtk_get_locale_direction ())
|
||||
switch (clutter_get_text_direction ())
|
||||
{
|
||||
case GTK_TEXT_DIR_LTR:
|
||||
case CLUTTER_TEXT_DIRECTION_LTR:
|
||||
return META_LOCALE_DIRECTION_LTR;
|
||||
case GTK_TEXT_DIR_RTL:
|
||||
case CLUTTER_TEXT_DIRECTION_RTL:
|
||||
return META_LOCALE_DIRECTION_RTL;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
|
Reference in New Issue
Block a user