From ff8ef23036fca9a73754fa5b40462cdb3a780cf7 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sat, 8 Apr 2006 03:44:48 -0500 Subject: [PATCH] Use MooEditContext --- moo/mooedit/plugins/activestrings/as-plugin-script.c | 7 ------- moo/mooedit/plugins/activestrings/as-plugin-script.h | 1 - moo/mooedit/plugins/activestrings/as-plugin.c | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/moo/mooedit/plugins/activestrings/as-plugin-script.c b/moo/mooedit/plugins/activestrings/as-plugin-script.c index 9c308716..43466c31 100644 --- a/moo/mooedit/plugins/activestrings/as-plugin-script.c +++ b/moo/mooedit/plugins/activestrings/as-plugin-script.c @@ -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, diff --git a/moo/mooedit/plugins/activestrings/as-plugin-script.h b/moo/mooedit/plugins/activestrings/as-plugin-script.h index 8301254a..53a37ea5 100644 --- a/moo/mooedit/plugins/activestrings/as-plugin-script.h +++ b/moo/mooedit/plugins/activestrings/as-plugin-script.h @@ -22,7 +22,6 @@ G_BEGIN_DECLS -MSContext *_as_plugin_context_new (void); gboolean _as_plugin_context_exec (MSContext *ctx, MSNode *script, MooEdit *doc, diff --git a/moo/mooedit/plugins/activestrings/as-plugin.c b/moo/mooedit/plugins/activestrings/as-plugin.c index bcad0437..9a90fc00 100644 --- a/moo/mooedit/plugins/activestrings/as-plugin.c +++ b/moo/mooedit/plugins/activestrings/as-plugin.c @@ -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);