SF.net SVN: geany-plugins:[1377] trunk/geany-plugins/geanyextrasel

sheckley at users.sourceforge.net sheckley at xxxxx
Sat May 22 07:20:15 UTC 2010


Revision: 1377
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1377&view=rev
Author:   sheckley
Date:     2010-05-22 07:20:14 +0000 (Sat, 22 May 2010)

Log Message:
-----------
use documents_foreach() if foreach_document() is not available

Modified Paths:
--------------
    trunk/geany-plugins/geanyextrasel/ChangeLog
    trunk/geany-plugins/geanyextrasel/src/extrasel.c

Modified: trunk/geany-plugins/geanyextrasel/ChangeLog
===================================================================
--- trunk/geany-plugins/geanyextrasel/ChangeLog	2010-05-22 07:12:02 UTC (rev 1376)
+++ trunk/geany-plugins/geanyextrasel/ChangeLog	2010-05-22 07:20:14 UTC (rev 1377)
@@ -2,6 +2,7 @@
 
  * src/extrasel.c:
    Fixed crash in plugin_cleanup() - patch by Colomban Wendling, thanks.
+   Use documents_foreach() if foreach_document() is not available.
  
 2010-05-21  Dimitar Zhekov  <hamster at mbox.contact.bg>
 

Modified: trunk/geany-plugins/geanyextrasel/src/extrasel.c
===================================================================
--- trunk/geany-plugins/geanyextrasel/src/extrasel.c	2010-05-22 07:12:02 UTC (rev 1376)
+++ trunk/geany-plugins/geanyextrasel/src/extrasel.c	2010-05-22 07:20:14 UTC (rev 1377)
@@ -293,6 +293,11 @@
 		"key-press-event", FALSE, G_CALLBACK(on_key_press_event), NULL);
 }
 
+/* for 0.18 compatibility */
+#ifndef foreach_document
+#define foreach_document documents_foreach
+#endif
+
 void plugin_cleanup(void)
 {
 	guint i;


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



More information about the Plugins-Commits mailing list