1
0
Fork 0

core: Drop META_PAD_DIRECTION_NONE

Avoid this strange value, and stick with the ones suitable
for rings/strips.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3005>
This commit is contained in:
Carlos Garnacho 2023-05-16 16:16:21 +02:00 committed by Marge Bot
parent 3e6f7a9463
commit 3e3660ae5f

View file

@ -46,7 +46,6 @@ struct _PadMappingInfo
typedef enum
{
META_PAD_DIRECTION_NONE = -1,
META_PAD_DIRECTION_UP = 0,
META_PAD_DIRECTION_DOWN,
META_PAD_DIRECTION_CW,
@ -622,8 +621,6 @@ meta_pad_action_mapper_get_action_direction (MetaPadActionMapper *mapper,
guint number;
double value;
*direction = META_PAD_DIRECTION_NONE;
switch (event->type)
{
case CLUTTER_PAD_RING:
@ -766,8 +763,6 @@ format_directional_action (GString *str,
case META_PAD_DIRECTION_DOWN:
g_string_append_printf (str, "↧ %s", action);
break;
case META_PAD_DIRECTION_NONE:
g_assert_not_reached ();
}
}