core/util: Drop duplicated MetaLocaleDirection
Clutter has an enum for that already, just use it instead of mapping between the types Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3962>
This commit is contained in:

committed by
Marge Bot

parent
4f606261d3
commit
5176a828eb
@ -625,7 +625,7 @@ meta_workspace_activate_with_focus (MetaWorkspace *workspace,
|
||||
meta_workspace_manager_calc_workspace_layout (workspace->manager, num_workspaces,
|
||||
new_space, &layout2);
|
||||
|
||||
if (meta_get_locale_direction () == META_LOCALE_DIRECTION_RTL)
|
||||
if (clutter_get_text_direction () == CLUTTER_TEXT_DIRECTION_RTL)
|
||||
{
|
||||
if (layout1.current_col > layout2.current_col)
|
||||
direction = META_MOTION_RIGHT;
|
||||
@ -1264,7 +1264,7 @@ meta_workspace_get_neighbor (MetaWorkspace *workspace,
|
||||
meta_verbose ("Getting neighbor of %d in direction %s",
|
||||
current_space, meta_motion_direction_to_string (direction));
|
||||
|
||||
ltr = (meta_get_locale_direction () == META_LOCALE_DIRECTION_LTR);
|
||||
ltr = (clutter_get_text_direction () == CLUTTER_TEXT_DIRECTION_LTR);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
Reference in New Issue
Block a user