SF.net SVN: geany:[5497] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Dec 22 16:59:38 UTC 2010


Revision: 5497
          http://geany.svn.sourceforge.net/geany/?rev=5497&view=rev
Author:   ntrel
Date:     2010-12-22 16:59:38 +0000 (Wed, 22 Dec 2010)

Log Message:
-----------
Add filetypes_get_display_name() to API.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-12-22 16:49:20 UTC (rev 5496)
+++ trunk/ChangeLog	2010-12-22 16:59:38 UTC (rev 5497)
@@ -8,6 +8,8 @@
    cursor position in a snippet (#3139490).
  * doc/geany.txt, doc/geany.html:
    Add short 'View menu' section and 'Color schemes menu' section.
+ * src/plugindata.h, src/plugins.c, plugins/geanyfunctions.h:
+   Add filetypes_get_display_name() to API.
 
 
 2010-12-09  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/plugins/geanyfunctions.h
===================================================================
--- trunk/plugins/geanyfunctions.h	2010-12-22 16:49:20 UTC (rev 5496)
+++ trunk/plugins/geanyfunctions.h	2010-12-22 16:59:38 UTC (rev 5497)
@@ -350,6 +350,8 @@
 	geany_functions->p_filetypes->filetypes_lookup_by_name
 #define filetypes_index \
 	geany_functions->p_filetypes->filetypes_index
+#define filetypes_get_display_name \
+	geany_functions->p_filetypes->filetypes_get_display_name
 #define navqueue_goto_line \
 	geany_functions->p_navqueue->navqueue_goto_line
 #define main_reload_configuration \

Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h	2010-12-22 16:49:20 UTC (rev 5496)
+++ trunk/src/plugindata.h	2010-12-22 16:59:38 UTC (rev 5497)
@@ -54,7 +54,7 @@
  * @warning You should not test for values below 200 as previously
  * @c GEANY_API_VERSION was defined as an enum value, not a macro.
  */
-#define GEANY_API_VERSION 200
+#define GEANY_API_VERSION 201
 
 /** The Application Binary Interface (ABI) version, incremented whenever
  * existing fields in the plugin data types have to be changed or reordered.
@@ -560,6 +560,7 @@
 	GeanyFiletype*	(*filetypes_detect_from_file) (const gchar *utf8_filename);
 	GeanyFiletype*	(*filetypes_lookup_by_name) (const gchar *name);
 	GeanyFiletype*	(*filetypes_index)(gint idx);
+	const gchar*	(*filetypes_get_display_name)(GeanyFiletype *ft);
 	/* Remember to convert any filetype_id arguments to GeanyFiletype pointers in any
 	 * appended functions */
 }

Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c	2010-12-22 16:49:20 UTC (rev 5496)
+++ trunk/src/plugins.c	2010-12-22 16:59:38 UTC (rev 5497)
@@ -304,7 +304,8 @@
 static FiletypeFuncs filetype_funcs = {
 	&filetypes_detect_from_file,
 	&filetypes_lookup_by_name,
-	&filetypes_index
+	&filetypes_index,
+	&filetypes_get_display_name
 };
 
 static NavQueueFuncs navqueue_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