Revision: 3660 http://geany.svn.sourceforge.net/geany/?rev=3660&view=rev Author: ntrel Date: 2009-03-27 15:33:52 +0000 (Fri, 27 Mar 2009)
Log Message: ----------- Sort filetype IDs randomly (so we can append randomly).
Modified Paths: -------------- branches/reorder-filetypes/ChangeLog branches/reorder-filetypes/src/filetypes.h branches/reorder-filetypes/src/plugindata.h
Modified: branches/reorder-filetypes/ChangeLog =================================================================== --- branches/reorder-filetypes/ChangeLog 2009-03-27 14:14:46 UTC (rev 3659) +++ branches/reorder-filetypes/ChangeLog 2009-03-27 15:33:52 UTC (rev 3660) @@ -3,6 +3,8 @@ * src/dialogs.c, src/filetypes.c, src/filetypes.h: Sort open dialog filetypes in combo boxes by title. Add filetypes_foreach_sorted(), filetypes_find(). + * src/filetypes.h, src/plugindata.h: + Sort filetype IDs randomly (so we can append randomly).
2009-03-20 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: branches/reorder-filetypes/src/filetypes.h =================================================================== --- branches/reorder-filetypes/src/filetypes.h 2009-03-27 14:14:46 UTC (rev 3659) +++ branches/reorder-filetypes/src/filetypes.h 2009-03-27 15:33:52 UTC (rev 3660) @@ -31,51 +31,51 @@
typedef enum { - GEANY_FILETYPES_NONE = 0, /* first filetype */ + GEANY_FILETYPES_NONE = 0, /* first filetype is always None */
- GEANY_FILETYPES_ADA, - GEANY_FILETYPES_AS, - GEANY_FILETYPES_ASM, + GEANY_FILETYPES_PHP, + GEANY_FILETYPES_BASIC, /* FreeBasic */ + GEANY_FILETYPES_MATLAB, + GEANY_FILETYPES_RUBY, + GEANY_FILETYPES_LUA, + GEANY_FILETYPES_FERITE, + GEANY_FILETYPES_YAML, GEANY_FILETYPES_C, - GEANY_FILETYPES_CPP, - GEANY_FILETYPES_CS, - GEANY_FILETYPES_CAML, - GEANY_FILETYPES_D, - GEANY_FILETYPES_F77, - GEANY_FILETYPES_FORTRAN, - GEANY_FILETYPES_BASIC, /* FreeBasic */ + GEANY_FILETYPES_NSIS, GEANY_FILETYPES_GLSL, + GEANY_FILETYPES_PO, + GEANY_FILETYPES_MAKE, + GEANY_FILETYPES_TCL, + GEANY_FILETYPES_XML, + GEANY_FILETYPES_CSS, + GEANY_FILETYPES_REST, GEANY_FILETYPES_HASKELL, - GEANY_FILETYPES_HAXE, GEANY_FILETYPES_JAVA, + GEANY_FILETYPES_CAML, + GEANY_FILETYPES_AS, + GEANY_FILETYPES_R, + GEANY_FILETYPES_DIFF, + GEANY_FILETYPES_HTML, + GEANY_FILETYPES_PYTHON, + GEANY_FILETYPES_CS, + GEANY_FILETYPES_PERL, + GEANY_FILETYPES_VALA, GEANY_FILETYPES_PASCAL, - GEANY_FILETYPES_VALA, - GEANY_FILETYPES_VHDL, - GEANY_FILETYPES_FERITE, - GEANY_FILETYPES_JS, - GEANY_FILETYPES_LUA, - GEANY_FILETYPES_MAKE, - GEANY_FILETYPES_MATLAB, - GEANY_FILETYPES_PERL, - GEANY_FILETYPES_PHP, - GEANY_FILETYPES_PYTHON, - GEANY_FILETYPES_R, - GEANY_FILETYPES_RUBY, + GEANY_FILETYPES_LATEX, + GEANY_FILETYPES_ASM, + GEANY_FILETYPES_CONF, + GEANY_FILETYPES_HAXE, + GEANY_FILETYPES_CPP, GEANY_FILETYPES_SH, - GEANY_FILETYPES_TCL, - GEANY_FILETYPES_CSS, + GEANY_FILETYPES_FORTRAN, + GEANY_FILETYPES_SQL, + GEANY_FILETYPES_F77, GEANY_FILETYPES_DOCBOOK, - GEANY_FILETYPES_HTML, - GEANY_FILETYPES_XML, + GEANY_FILETYPES_D, + GEANY_FILETYPES_JS, + GEANY_FILETYPES_VHDL, + GEANY_FILETYPES_ADA, GEANY_FILETYPES_CMAKE, - GEANY_FILETYPES_CONF, - GEANY_FILETYPES_DIFF, - GEANY_FILETYPES_NSIS, - GEANY_FILETYPES_PO, - GEANY_FILETYPES_LATEX, - GEANY_FILETYPES_REST, - GEANY_FILETYPES_SQL, - GEANY_FILETYPES_YAML,
/* ^ append items here */ GEANY_MAX_BUILT_IN_FILETYPES /* Don't use this, use filetypes_array->len instead */
Modified: branches/reorder-filetypes/src/plugindata.h =================================================================== --- branches/reorder-filetypes/src/plugindata.h 2009-03-27 14:14:46 UTC (rev 3659) +++ branches/reorder-filetypes/src/plugindata.h 2009-03-27 15:33:52 UTC (rev 3660) @@ -51,7 +51,7 @@ * existing fields in the plugin data types have to be changed or reordered. */ /* This should usually stay the same if fields are only appended, assuming only pointers to * structs and not structs themselves are declared by plugins. */ - GEANY_ABI_VERSION = 60 + GEANY_ABI_VERSION = 61 };
/** Check the plugin can be loaded by Geany.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.