mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
bf71cb2e3c
In cogl use cogl-config.h and in clutter use clutter-build-config.h. We can't use clutter-config.h in clutter because its already used and installed. https://bugzilla.gnome.org/show_bug.cgi?id=768976
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
#include "clutter-build-config.h"
|
|
|
|
#include "clutter-event-translator.h"
|
|
|
|
#include "clutter-backend.h"
|
|
#include "clutter-private.h"
|
|
|
|
#define clutter_event_translator_get_type _clutter_event_translator_get_type
|
|
|
|
typedef ClutterEventTranslatorIface ClutterEventTranslatorInterface;
|
|
|
|
G_DEFINE_INTERFACE (ClutterEventTranslator, clutter_event_translator, G_TYPE_OBJECT);
|
|
|
|
static ClutterTranslateReturn
|
|
default_translate_event (ClutterEventTranslator *translator,
|
|
gpointer native,
|
|
ClutterEvent *event)
|
|
{
|
|
return CLUTTER_TRANSLATE_CONTINUE;
|
|
}
|
|
|
|
static void
|
|
clutter_event_translator_default_init (ClutterEventTranslatorIface *iface)
|
|
{
|
|
iface->translate_event = default_translate_event;
|
|
}
|
|
|
|
ClutterTranslateReturn
|
|
_clutter_event_translator_translate_event (ClutterEventTranslator *translator,
|
|
gpointer native,
|
|
ClutterEvent *translated)
|
|
{
|
|
ClutterEventTranslatorIface *iface;
|
|
|
|
iface = CLUTTER_EVENT_TRANSLATOR_GET_IFACE (translator);
|
|
|
|
return iface->translate_event (translator, native, translated);
|
|
}
|