Enabled active strings plugin again
parent
de6a1e444e
commit
68e59ab990
|
@ -247,6 +247,7 @@ moo_plugin_register (const char *id,
|
|||
char **langs, **p;
|
||||
GHashTable *table;
|
||||
|
||||
/* XXX */
|
||||
langs = g_strsplit_set (info->langs, " \t\r\n", 0);
|
||||
table = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
|
||||
|
||||
|
@ -455,6 +456,7 @@ plugin_attach_doc (MooPlugin *plugin,
|
|||
if (!moo_plugin_enabled (plugin))
|
||||
return;
|
||||
|
||||
/* XXX ! */
|
||||
if (plugin->langs)
|
||||
{
|
||||
MooLang *lang;
|
||||
|
@ -899,7 +901,7 @@ moo_plugin_init_builtin (void)
|
|||
#if GTK_CHECK_VERSION(2,6,0)
|
||||
_moo_file_selector_plugin_init ();
|
||||
#endif
|
||||
// _moo_active_strings_plugin_init ();
|
||||
_moo_active_strings_plugin_init ();
|
||||
// _moo_completion_plugin_init ();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ DIST_SUBDIRS = activestrings completion fileselector
|
|||
|
||||
# subdirs = activestrings completion
|
||||
# libs = activestrings/libastrings.la completion/libcompletion.la
|
||||
subdirs =
|
||||
libs =
|
||||
subdirs = activestrings
|
||||
libs = activestrings/libastrings.la
|
||||
if GTK_2_6
|
||||
subdirs += fileselector
|
||||
libs += fileselector/libfileselector.la
|
||||
|
|
|
@ -123,7 +123,7 @@ _as_plugin_prefs_page (MooPlugin *plugin)
|
|||
helper, g_object_unref);
|
||||
|
||||
g_object_unref (xml);
|
||||
return page;
|
||||
return GTK_WIDGET (page);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -36,7 +36,8 @@ as_plugin_context_setup (MSContext *ctx,
|
|||
ms_value_unref (val);
|
||||
}
|
||||
|
||||
moo_edit_context_set_doc (MOO_EDIT_CONTEXT (ctx), doc);
|
||||
moo_edit_script_context_set_doc (MOO_EDIT_SCRIPT_CONTEXT (ctx),
|
||||
GTK_TEXT_VIEW (doc));
|
||||
}
|
||||
|
||||
|
||||
|
@ -49,7 +50,7 @@ as_plugin_context_clear (MSContext *ctx,
|
|||
for (i = 0; i < n_parens + 1; ++i)
|
||||
ms_context_assign_positional (ctx, i, NULL);
|
||||
|
||||
moo_edit_context_set_doc (MOO_EDIT_CONTEXT (ctx), NULL);
|
||||
moo_edit_script_context_set_doc (MOO_EDIT_SCRIPT_CONTEXT (ctx), NULL);
|
||||
}
|
||||
|
||||
|
||||
|
@ -65,7 +66,7 @@ _as_plugin_context_exec (MSContext *ctx,
|
|||
MSValue *val;
|
||||
gboolean success;
|
||||
|
||||
g_return_val_if_fail (MOO_IS_EDIT_CONTEXT (ctx), FALSE);
|
||||
g_return_val_if_fail (MOO_IS_EDIT_SCRIPT_CONTEXT (ctx), FALSE);
|
||||
g_return_val_if_fail (script != NULL, FALSE);
|
||||
g_return_val_if_fail (MOO_IS_EDIT (doc), FALSE);
|
||||
g_return_val_if_fail (insert != NULL, FALSE);
|
||||
|
|
|
@ -792,7 +792,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 = moo_edit_context_new (NULL, NULL);
|
||||
plugin->ctx = moo_edit_script_context_new (NULL, NULL);
|
||||
|
||||
as_plugin_load (plugin);
|
||||
|
||||
|
|
Loading…
Reference in New Issue