|
|
|
@ -245,9 +245,14 @@ Source::GenericView::GenericView(const std::string& file_path, const std::string |
|
|
|
if(language) { |
|
|
|
if(language) { |
|
|
|
get_source_buffer()->set_language(language); |
|
|
|
get_source_buffer()->set_language(language); |
|
|
|
Singleton::terminal()->print("Language for file "+file_path+" set to "+language->get_name()+".\n"); |
|
|
|
Singleton::terminal()->print("Language for file "+file_path+" set to "+language->get_name()+".\n"); |
|
|
|
/*auto completion=get_completion();
|
|
|
|
|
|
|
|
if(completion) |
|
|
|
auto completion=get_completion(); |
|
|
|
cout << completion->get_providers().size() << endl;*/ |
|
|
|
auto completion_words=Gsv::CompletionWords::create("", Glib::RefPtr<Gdk::Pixbuf>()); |
|
|
|
|
|
|
|
completion_words->register_provider(get_buffer()); |
|
|
|
|
|
|
|
completion->add_provider(completion_words); |
|
|
|
|
|
|
|
completion->property_show_headers()=false; |
|
|
|
|
|
|
|
completion->property_show_icons()=false; |
|
|
|
|
|
|
|
completion->property_accelerators()=0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|