SF.net SVN: geany: [2742] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Jul 2 13:40:07 UTC 2008


Revision: 2742
          http://geany.svn.sourceforge.net/geany/?rev=2742&view=rev
Author:   ntrel
Date:     2008-07-02 06:40:06 -0700 (Wed, 02 Jul 2008)

Log Message:
-----------
Add document_close() to the plugin API.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-07-02 11:58:01 UTC (rev 2741)
+++ trunk/ChangeLog	2008-07-02 13:40:06 UTC (rev 2742)
@@ -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>

Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h	2008-07-02 11:58:01 UTC (rev 2741)
+++ trunk/src/plugindata.h	2008-07-02 13:40:06 UTC (rev 2742)
@@ -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 @@
 	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;
 

Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c	2008-07-02 11:58:01 UTC (rev 2741)
+++ trunk/src/plugins.c	2008-07-02 13:40:06 UTC (rev 2742)
@@ -106,7 +106,8 @@
 	&document_reload_file,
 	&document_set_encoding,
 	&document_set_text_changed,
-	&document_set_filetype
+	&document_set_filetype,
+	&document_close
 };
 
 static EditorFuncs editor_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