Use MooEditContext

master
Yevgen Muntyan 2006-04-08 03:44:48 -05:00
parent 15062558d7
commit ff8ef23036
3 changed files with 2 additions and 10 deletions

View File

@ -16,13 +16,6 @@
#include "mooedit/mooedit-script.h" #include "mooedit/mooedit-script.h"
MSContext *
_as_plugin_context_new (void)
{
return g_object_new (MOO_TYPE_EDIT_CONTEXT, NULL);
}
static void static void
as_plugin_context_setup (MSContext *ctx, as_plugin_context_setup (MSContext *ctx,
MooEdit *doc, MooEdit *doc,

View File

@ -22,7 +22,6 @@
G_BEGIN_DECLS G_BEGIN_DECLS
MSContext *_as_plugin_context_new (void);
gboolean _as_plugin_context_exec (MSContext *ctx, gboolean _as_plugin_context_exec (MSContext *ctx,
MSNode *script, MSNode *script,
MooEdit *doc, MooEdit *doc,

View File

@ -20,8 +20,8 @@
#endif #endif
#include "mooedit/mooplugin-macro.h" #include "mooedit/mooplugin-macro.h"
#include "mooedit/mootextview.h"
#include "mooedit/plugins/mooeditplugins.h" #include "mooedit/plugins/mooeditplugins.h"
#include "mooedit/mooedit-script.h"
#include "mooutils/eggregex.h" #include "mooutils/eggregex.h"
#include "as-plugin-script.h" #include "as-plugin-script.h"
#include "as-plugin.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, plugin->lang_sets = g_hash_table_new_full (g_str_hash, g_str_equal, g_free,
(GDestroyNotify) as_set_unref); (GDestroyNotify) as_set_unref);
plugin->ctx = _as_plugin_context_new (); plugin->ctx = moo_edit_context_new (NULL);
as_plugin_load (plugin); as_plugin_load (plugin);