Revision: 1796 http://geany.svn.sourceforge.net/geany/?rev=1796&view=rev Author: ntrel Date: 2007-08-14 09:29:03 -0700 (Tue, 14 Aug 2007)
Log Message: ----------- Apply patch from blackdog to add document_save_file() to the plugin API (thanks). Add document_open_file() to plugin API.
Modified Paths: -------------- trunk/ChangeLog trunk/src/plugindata.h trunk/src/plugins.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-08-14 16:00:13 UTC (rev 1795) +++ trunk/ChangeLog 2007-08-14 16:29:03 UTC (rev 1796) @@ -14,6 +14,10 @@ * HACKING: Add more information for adding a filetype. 2 minor edits. + * src/plugindata.h, src/plugins.c: + Apply patch from blackdog to add document_save_file() to the plugin + API (thanks). + Add document_open_file() to plugin API.
2007-08-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/plugindata.h =================================================================== --- trunk/src/plugindata.h 2007-08-14 16:00:13 UTC (rev 1795) +++ trunk/src/plugindata.h 2007-08-14 16:29:03 UTC (rev 1796) @@ -68,7 +68,7 @@
/* The API version should be incremented whenever any plugin data types below are * modified. */ -static const gint api_version = 9; +static const gint api_version = 10;
/* 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 @@ -160,6 +160,9 @@ gint (*new_file) (const gchar *filename, struct filetype *ft); gint (*get_cur_idx) (); struct document* (*get_current) (); + gboolean (*save_file)(gint idx, gboolean force); + gboolean (*open_file)(gint idx, const gchar *filename, gint pos, gboolean readonly, + struct filetype *ft, const gchar *forced_enc); } DocumentFuncs;
Modified: trunk/src/plugins.c =================================================================== --- trunk/src/plugins.c 2007-08-14 16:00:13 UTC (rev 1795) +++ trunk/src/plugins.c 2007-08-14 16:29:03 UTC (rev 1796) @@ -73,7 +73,9 @@ static DocumentFuncs doc_funcs = { &document_new_file, &document_get_cur_idx, - &document_get_current + &document_get_current, + &document_save_file, + &document_open_file };
static ScintillaFuncs sci_funcs = {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.