Commit 29685170 authored by Javier Jardón's avatar Javier Jardón

gdk/x11/gdkeventtranslator.c: use G_DEFINE_INTERFACE macro

parent 3247a3a7
......@@ -22,24 +22,16 @@
#include "gdkeventtranslator.h"
GType
gdk_event_translator_get_type (void)
{
static GType translator_type = 0;
if (G_UNLIKELY (!translator_type))
{
translator_type = g_type_register_static_simple (G_TYPE_INTERFACE,
g_intern_static_string ("GdkEventTranslator"),
sizeof (GdkEventTranslatorIface),
NULL, 0, NULL, 0);
typedef GdkEventTranslatorIface GdkEventTranslatorInterface;
G_DEFINE_INTERFACE (GdkEventTranslator, gdk_event_translator, G_TYPE_OBJECT);
g_type_interface_add_prerequisite (translator_type, G_TYPE_OBJECT);
}
return translator_type;
static void
gdk_event_translator_default_init (GdkEventTranslatorInterface *iface)
{
}
GdkEvent *
gdk_event_translator_translate (GdkEventTranslator *translator,
GdkDisplay *display,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment