From 99cbe762d7a23cd5f4cf44f0b7faf5aacb6a6b6d Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 29 Feb 2012 14:02:46 -0800 Subject: [PATCH] Expose MetaPlugin to introspection Add a type annotation on the xevent_filter vfunc. This is sufficient to remove the skip annotation on MetaPlugin and MetaPluginClass without triggering scan errors. https://bugzilla.gnome.org/show_bug.cgi?id=671098 --- src/meta/meta-plugin.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/meta/meta-plugin.h b/src/meta/meta-plugin.h index 47b8ecb7c..0f49d8c97 100644 --- a/src/meta/meta-plugin.h +++ b/src/meta/meta-plugin.h @@ -39,15 +39,7 @@ #define META_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_PLUGIN)) #define META_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_PLUGIN, MetaPluginClass)) -/** - * MetaPlugin: (skip) - * - */ typedef struct _MetaPlugin MetaPlugin; -/** - * MetaPluginClass: (skip) - * - */ typedef struct _MetaPluginClass MetaPluginClass; typedef struct _MetaPluginVersion MetaPluginVersion; typedef struct _MetaPluginInfo MetaPluginInfo; @@ -106,6 +98,10 @@ struct _MetaPluginClass /* General XEvent filter. This is fired *before* meta itself handles * an event. Return TRUE to block any further processing. */ + /** + * MetaPluginClass::xevent_filter: + * @event: (type xlib.XEvent): + */ gboolean (*xevent_filter) (MetaPlugin *plugin, XEvent *event);