SF.net SVN: geany: [1798] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Aug 15 11:52:09 UTC 2007


Revision: 1798
          http://geany.svn.sourceforge.net/geany/?rev=1798&view=rev
Author:   ntrel
Date:     2007-08-15 04:52:06 -0700 (Wed, 15 Aug 2007)

Log Message:
-----------
Apply patch from Jeff Pohlmeyer to add document_remove() to the
plugin API (thanks).
Add document_open_files() to plugin API.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/plugindata.h
    trunk/src/plugins.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-08-15 11:51:05 UTC (rev 1797)
+++ trunk/ChangeLog	2007-08-15 11:52:06 UTC (rev 1798)
@@ -1,3 +1,11 @@
+2007-08-15  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/plugindata.h, src/plugins.c:
+   Apply patch from Jeff Pohlmeyer to add document_remove() to the
+   plugin API (thanks).
+   Add document_open_files() to plugin API.
+
+
 2007-08-14  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * src/filetypes.c, src/filetypes.h, src/symbols.c,

Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h	2007-08-15 11:51:05 UTC (rev 1797)
+++ trunk/src/plugindata.h	2007-08-15 11:52:06 UTC (rev 1798)
@@ -68,7 +68,7 @@
 
 /* The API version should be incremented whenever any plugin data types below are
  * modified. */
-static const gint api_version = 10;
+static const gint api_version = 11;
 
 /* 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
@@ -163,6 +163,9 @@
 	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);
+	void	(*open_files)(const GSList *filenames, gboolean readonly, struct filetype *ft,
+			const gchar *forced_enc);
+	gboolean (*remove)(guint page_num);
 }
 DocumentFuncs;
 

Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c	2007-08-15 11:51:05 UTC (rev 1797)
+++ trunk/src/plugins.c	2007-08-15 11:52:06 UTC (rev 1798)
@@ -75,7 +75,9 @@
 	&document_get_cur_idx,
 	&document_get_current,
 	&document_save_file,
-	&document_open_file
+	&document_open_file,
+	&document_open_files,
+	&document_remove
 };
 
 static ScintillaFuncs sci_funcs = {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list