[gtk+/events-refactor: 321/1085] Add gdk_event_translator_get_type() prototype.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/events-refactor: 321/1085] Add gdk_event_translator_get_type() prototype.
- Date: Tue, 29 Sep 2009 10:45:05 +0000 (UTC)
commit 563675f62b79da45183872b64f2fefcc730dabf7
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu May 28 01:43:48 2009 +0200
Add gdk_event_translator_get_type() prototype.
gdk/x11/gdkeventtranslator.c | 1 +
gdk/x11/gdkeventtranslator.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkeventtranslator.c b/gdk/x11/gdkeventtranslator.c
index 6090a4e..32ef901 100644
--- a/gdk/x11/gdkeventtranslator.c
+++ b/gdk/x11/gdkeventtranslator.c
@@ -49,6 +49,7 @@ gdk_event_translator_translate (GdkEventTranslator *translator,
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
iface = GDK_EVENT_TRANSLATOR_GET_IFACE (translator);
+
if (!iface->translate_event)
return NULL;
diff --git a/gdk/x11/gdkeventtranslator.h b/gdk/x11/gdkeventtranslator.h
index 10a96cf..6ffe153 100644
--- a/gdk/x11/gdkeventtranslator.h
+++ b/gdk/x11/gdkeventtranslator.h
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
#define GDK_TYPE_EVENT_TRANSLATOR (gdk_event_translator_get_type ())
#define GDK_EVENT_TRANSLATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDK_TYPE_EVENT_TRANSLATOR, GdkEventTranslator))
#define GDK_IS_EVENT_TRANSLATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDK_TYPE_EVENT_TRANSLATOR))
-#define GDK_EVENT_TRANSLATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDK_TYPE_EVENT_TRANSLATOR, GdkEventTranslatorIface))
+#define GDK_EVENT_TRANSLATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GDK_TYPE_EVENT_TRANSLATOR, GdkEventTranslatorIface))
typedef struct _GdkEventTranslatorIface GdkEventTranslatorIface;
typedef struct _GdkEventTranslator GdkEventTranslator; /* Dummy typedef */
@@ -45,6 +45,8 @@ struct _GdkEventTranslatorIface
XEvent *xevent);
};
+GType gdk_event_translator_get_type (void) G_GNUC_CONST;
+
GdkEvent * gdk_event_translator_translate (GdkEventTranslator *translator,
GdkDisplay *display,
XEvent *xevent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]