Add document_close() to the plugin API.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2742 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-07-02 13:40:06 +00:00
parent 89161c353d
commit 70df7f6388
3 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,8 @@
are set as keybindings for Go to Line Start/End.
This uses a new ignore_keybinding variable because changing
KeyCallback to return gboolean would break plugin keybindings.
* src/plugindata.h, src/plugins.c:
Add document_close() to the plugin API.
2008-07-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -36,7 +36,7 @@
/* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */
static const gint api_version = 72;
static const gint api_version = 73;
/* The ABI version should be incremented whenever existing fields in the plugin
* data types below have to be changed or reordered. It should stay the same if fields
@ -217,6 +217,7 @@ typedef struct DocumentFuncs
void (*set_encoding) (struct GeanyDocument *doc, const gchar *new_encoding);
void (*set_text_changed) (struct GeanyDocument *doc, gboolean changed);
void (*set_filetype) (struct GeanyDocument *doc, struct GeanyFiletype *type);
gboolean (*close) (GeanyDocument *doc);
}
DocumentFuncs;

View File

@ -106,7 +106,8 @@ static DocumentFuncs doc_funcs = {
&document_reload_file,
&document_set_encoding,
&document_set_text_changed,
&document_set_filetype
&document_set_filetype,
&document_close
};
static EditorFuncs editor_funcs = {