moo_text_view_set_lang_by_id(): set style scheme too
This commit is contained in:
parent
536d5df25e
commit
62b487fc97
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user