void vim_widget_add_document (VimWidget *widget, VimEditor *editor, GError **err) { g_assert (editor != NULL); if (!vim_widget_has_editor (widget, editor)) { if (g_ptr_array_find (widget->priv->unloaded, editor) == -1) g_ptr_array_add (widget->priv->unloaded, editor); ianjuta_file_open (IANJUTA_FILE (editor), editor->priv->file, NULL); } }
/* CHECKME unused */ void anjuta_docman_reload_file (AnjutaDocman *docman, GFile* file) { IAnjutaDocument *doc; g_return_if_fail (file != NULL); doc = anjuta_docman_get_document_for_file (docman, file); if (doc && IANJUTA_IS_EDITOR (doc)) { IAnjutaEditor *te; te = IANJUTA_EDITOR (doc); glong nNowPos = ianjuta_editor_get_lineno (te, NULL); ianjuta_file_open (IANJUTA_FILE (doc), file, NULL); ianjuta_editor_goto_line (te, nNowPos, NULL); } }