moo_text_view_set_lang_by_id(): set style scheme too

This commit is contained in:
Yevgen Muntyan 2006-08-31 00:33:18 -05:00
parent 536d5df25e
commit 62b487fc97

View File

@ -2580,13 +2580,16 @@ moo_text_view_set_lang_by_id (MooTextView *view,
MooEditor *editor;
MooLangMgr *mgr;
MooLang *lang;
MooTextStyleScheme *scheme;
editor = moo_editor_instance ();
g_return_if_fail (editor != NULL);
mgr = moo_editor_get_lang_mgr (editor);
lang = moo_lang_mgr_get_lang (mgr, lang_id);
scheme = _moo_lang_mgr_get_active_scheme (mgr);
moo_text_view_set_style_scheme (view, scheme);
moo_text_view_set_lang (view, lang);
}