[Geany-devel] API: GEANY_FILETYPES_NONE = 0, sorted filetype IDs randomly

Nick Treleaven nick.treleaven at xxxxx
Fri Apr 3 14:33:09 UTC 2009

Hi all,
I've updated the filetype IDs so we can add filetypes without breaking
the plugin ABI. I'm not sure if this will affect any of geany-plugins,
but if so, it shouldn't take long to fix.

Just let me know if you find anything this breaks, in the core or

On Fri, 03 Apr 2009 14:23:45 +0000
ntrel at users.sourceforge.net wrote:

> Revision: 3681
>           http://geany.svn.sourceforge.net/geany/?rev=3681&view=rev
> Author:   ntrel
> Date:     2009-04-03 14:23:45 +0000 (Fri, 03 Apr 2009)
> Log Message:
> -----------
> Merge reorder-filetypes branch:
> Make GEANY_FILETYPES_NONE = 0, sort filetype IDs randomly (so we can
> append randomly without breaking the ABI).
> Make None filetype name = title = _("None").
> Add foreach_slist() macro.
> Add filetypes_by_title list to GeanyData for plugin API access
> - a list of filetype pointers, which includes the None filetype
> first. This list stays constant by the time plugins are initialized,
> so you can use e.g. g_slist_nth_data(filetypes_by_title, n) to
> index the sorted list.


More information about the Devel mailing list