• Nick Treleaven's avatar
    Merge the editor-struct branch: · 000e8fcc
    Nick Treleaven yazdı
    Note: this breaks the plugin API for editor-related document fields
    and functions.
    Split new GeanyEditor struct type from GeanyDocument fields sci,
    line_wrapping, auto_indent, scroll_percent, use_tabs, line_breaking.
    GeanyEditor::document allows access back to document fields.
    Add GeanyDocument::editor field; this is only valid when the
    document is valid, and NULL otherwise. This means any checks for
    doc->editor->scintilla != NULL will segfault for invalid
    documents - check against doc->is_valid or doc->editor != NULL
    instead.
    Change plugin API EditorFuncs to use GeanyEditor pointers.
    Make editor_set_font() take a pango-style font string, and use a
    GeanyEditor pointer.
    Use GeanyEditor* instead of GeanyDocument* in editor.c (most global
    editor functions still need conversion though, but this may be done
    gradually or as required).
    Move utils_get_current_function() to symbols.c.
    Move utils_replace_filename() to document.c.
    
    
    git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2779 ea778897-0a13-0410-b9d1-a72fbfd435f5
    000e8fcc
keyfile.c 45.6 KB