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
This commit is contained in:
Evan Broder 2012-02-29 14:02:46 -08:00 committed by Owen W. Taylor
parent 7a2c019514
commit 99cbe762d7

View File

@ -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);