spell-plugin: Update to the new WindowActivatable interface

This commit is contained in:
JosephMcc 2017-01-10 03:08:44 -08:00
parent f65ce8f7ca
commit 30a61a9fd8
3 changed files with 1267 additions and 1323 deletions

View File

@ -2,12 +2,18 @@ DIST_SUBDIRS = \
docinfo \ docinfo \
filebrowser \ filebrowser \
modelines \ modelines \
sort sort \
spell
SUBDIRS = \ SUBDIRS = \
docinfo \ docinfo \
filebrowser \ filebrowser \
modelines \ modelines \
sort sort \
spell
if ENABLE_ENCHANT
SUBDIRS += spell
endif
-include $(top_srcdir)/git.mk -include $(top_srcdir)/git.mk

File diff suppressed because it is too large Load Diff

View File

@ -30,9 +30,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
/*
* Type checking and casting macros
*/
#define XED_TYPE_SPELL_PLUGIN (xed_spell_plugin_get_type ()) #define XED_TYPE_SPELL_PLUGIN (xed_spell_plugin_get_type ())
#define XED_SPELL_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XED_TYPE_SPELL_PLUGIN, XedSpellPlugin)) #define XED_SPELL_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XED_TYPE_SPELL_PLUGIN, XedSpellPlugin))
#define XED_SPELL_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), XED_TYPE_SPELL_PLUGIN, XedSpellPluginClass)) #define XED_SPELL_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), XED_TYPE_SPELL_PLUGIN, XedSpellPluginClass))
@ -40,13 +37,9 @@ G_BEGIN_DECLS
#define XED_IS_SPELL_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XED_TYPE_SPELL_PLUGIN)) #define XED_IS_SPELL_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XED_TYPE_SPELL_PLUGIN))
#define XED_SPELL_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XED_TYPE_SPELL_PLUGIN, XedSpellPluginClass)) #define XED_SPELL_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XED_TYPE_SPELL_PLUGIN, XedSpellPluginClass))
/* Private structure type */
typedef struct _XedSpellPluginPrivate XedSpellPluginPrivate;
/*
* Main object structure
*/
typedef struct _XedSpellPlugin XedSpellPlugin; typedef struct _XedSpellPlugin XedSpellPlugin;
typedef struct _XedSpellPluginPrivate XedSpellPluginPrivate;
typedef struct _XedSpellPluginClass XedSpellPluginClass;
struct _XedSpellPlugin struct _XedSpellPlugin
{ {
@ -55,22 +48,13 @@ struct _XedSpellPlugin
XedSpellPluginPrivate *priv; XedSpellPluginPrivate *priv;
}; };
/*
* Class definition
*/
typedef struct _XedSpellPluginClass XedSpellPluginClass;
struct _XedSpellPluginClass struct _XedSpellPluginClass
{ {
PeasExtensionBaseClass parent_class; PeasExtensionBaseClass parent_class;
}; };
/*
* Public methods
*/
GType xed_spell_plugin_get_type (void) G_GNUC_CONST; GType xed_spell_plugin_get_type (void) G_GNUC_CONST;
/* All the plugins must implement this function */
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS G_END_DECLS