mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 19:12:04 +00:00
Remove the unused ClutterEventFlags enum and the flags member of
the ClutterEvent structure. ClutterEvent objects are not added until translated so they do not need a 'pending' state.
This commit is contained in:
parent
e3ab4b5e08
commit
922aafbd2d
@ -318,9 +318,7 @@ clutter_event_new (ClutterEventType type)
|
|||||||
event_hash = g_hash_table_new (g_direct_hash, NULL);
|
event_hash = g_hash_table_new (g_direct_hash, NULL);
|
||||||
|
|
||||||
new_event = g_slice_new0 (ClutterEvent);
|
new_event = g_slice_new0 (ClutterEvent);
|
||||||
|
|
||||||
new_event->type = new_event->any.type = type;
|
new_event->type = new_event->any.type = type;
|
||||||
new_event->flags = CLUTTER_EVENT_NONE;
|
|
||||||
|
|
||||||
g_hash_table_insert (event_hash, new_event, GUINT_TO_POINTER (1));
|
g_hash_table_insert (event_hash, new_event, GUINT_TO_POINTER (1));
|
||||||
|
|
||||||
|
@ -60,12 +60,6 @@ typedef enum
|
|||||||
CLUTTER_DESTROY_NOTIFY
|
CLUTTER_DESTROY_NOTIFY
|
||||||
} ClutterEventType;
|
} ClutterEventType;
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
CLUTTER_EVENT_NONE = 0,
|
|
||||||
CLUTTER_EVENT_PENDING = 1 << 0
|
|
||||||
} ClutterEventFlags;
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
CLUTTER_SCROLL_UP,
|
CLUTTER_SCROLL_UP,
|
||||||
@ -161,7 +155,6 @@ struct _ClutterStageStateEvent
|
|||||||
union _ClutterEvent
|
union _ClutterEvent
|
||||||
{
|
{
|
||||||
ClutterEventType type;
|
ClutterEventType type;
|
||||||
ClutterEventFlags flags;
|
|
||||||
|
|
||||||
ClutterAnyEvent any;
|
ClutterAnyEvent any;
|
||||||
ClutterButtonEvent button;
|
ClutterButtonEvent button;
|
||||||
|
Loading…
Reference in New Issue
Block a user