mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
3e6f7a9463
commit
3e3660ae5f
@ -46,7 +46,6 @@ struct _PadMappingInfo
|
|||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
META_PAD_DIRECTION_NONE = -1,
|
|
||||||
META_PAD_DIRECTION_UP = 0,
|
META_PAD_DIRECTION_UP = 0,
|
||||||
META_PAD_DIRECTION_DOWN,
|
META_PAD_DIRECTION_DOWN,
|
||||||
META_PAD_DIRECTION_CW,
|
META_PAD_DIRECTION_CW,
|
||||||
@ -622,8 +621,6 @@ meta_pad_action_mapper_get_action_direction (MetaPadActionMapper *mapper,
|
|||||||
guint number;
|
guint number;
|
||||||
double value;
|
double value;
|
||||||
|
|
||||||
*direction = META_PAD_DIRECTION_NONE;
|
|
||||||
|
|
||||||
switch (event->type)
|
switch (event->type)
|
||||||
{
|
{
|
||||||
case CLUTTER_PAD_RING:
|
case CLUTTER_PAD_RING:
|
||||||
@ -766,8 +763,6 @@ format_directional_action (GString *str,
|
|||||||
case META_PAD_DIRECTION_DOWN:
|
case META_PAD_DIRECTION_DOWN:
|
||||||
g_string_append_printf (str, "↧ %s", action);
|
g_string_append_printf (str, "↧ %s", action);
|
||||||
break;
|
break;
|
||||||
case META_PAD_DIRECTION_NONE:
|
|
||||||
g_assert_not_reached ();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user