Use MooEditContext
parent
15062558d7
commit
ff8ef23036
|
@ -16,13 +16,6 @@
|
|||
#include "mooedit/mooedit-script.h"
|
||||
|
||||
|
||||
MSContext *
|
||||
_as_plugin_context_new (void)
|
||||
{
|
||||
return g_object_new (MOO_TYPE_EDIT_CONTEXT, NULL);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
as_plugin_context_setup (MSContext *ctx,
|
||||
MooEdit *doc,
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
MSContext *_as_plugin_context_new (void);
|
||||
gboolean _as_plugin_context_exec (MSContext *ctx,
|
||||
MSNode *script,
|
||||
MooEdit *doc,
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#endif
|
||||
|
||||
#include "mooedit/mooplugin-macro.h"
|
||||
#include "mooedit/mootextview.h"
|
||||
#include "mooedit/plugins/mooeditplugins.h"
|
||||
#include "mooedit/mooedit-script.h"
|
||||
#include "mooutils/eggregex.h"
|
||||
#include "as-plugin-script.h"
|
||||
#include "as-plugin.h"
|
||||
|
@ -749,7 +749,7 @@ as_plugin_init (ASPlugin *plugin)
|
|||
{
|
||||
plugin->lang_sets = g_hash_table_new_full (g_str_hash, g_str_equal, g_free,
|
||||
(GDestroyNotify) as_set_unref);
|
||||
plugin->ctx = _as_plugin_context_new ();
|
||||
plugin->ctx = moo_edit_context_new (NULL);
|
||||
|
||||
as_plugin_load (plugin);
|
||||
|
||||
|
|
Loading…
Reference in New Issue