SF.net SVN: geany:[5615] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Mar 22 17:09:49 UTC 2011
Revision: 5615
http://geany.svn.sourceforge.net/geany/?rev=5615&view=rev
Author: ntrel
Date: 2011-03-22 17:09:48 +0000 (Tue, 22 Mar 2011)
Log Message:
-----------
Make --ft-names list filetypes alphabetically.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-03-22 17:03:04 UTC (rev 5614)
+++ trunk/ChangeLog 2011-03-22 17:09:48 UTC (rev 5615)
@@ -1,3 +1,9 @@
+2011-03-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/main.c:
+ Make --ft-names list filetypes alphabetically.
+
+
2011-03-20 Colomban Wendling <colomban(at)geany(dot)org>
* data/filetypes.*, doc/geany.txt, doc/geany.html, src/callbacks.c,
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2011-03-22 17:03:04 UTC (rev 5614)
+++ trunk/src/main.c 2011-03-22 17:09:48 UTC (rev 5615)
@@ -472,14 +472,16 @@
static void print_filetypes(void)
{
- guint i;
+ GSList *node;
filetypes_init_types();
- printf("Geany's internal filetype names:\n");
+ printf("Geany's filetype names:\n");
- for (i = 0; i < filetypes_array->len; i++)
+ foreach_slist(node, filetypes_by_title)
{
- printf("%s\n", filetypes[i]->name);
+ GeanyFiletype *ft = node->data;
+
+ printf("%s\n", ft->name);
}
filetypes_free_types();
}
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