Revision: 4478 http://geany.svn.sourceforge.net/geany/?rev=4478&view=rev Author: ntrel Date: 2009-12-08 12:35:13 +0000 (Tue, 08 Dec 2009)
Log Message: ----------- Make group for custom filetypes.
Modified Paths: -------------- trunk/ChangeLog trunk/src/filetypes.c trunk/src/filetypes.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-12-07 21:24:41 UTC (rev 4477) +++ trunk/ChangeLog 2009-12-08 12:35:13 UTC (rev 4478) @@ -1,3 +1,9 @@ +2009-12-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/filetypes.c, src/filetypes.h: + Make group for custom filetypes. + + 2009-12-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/highlighting.c:
Modified: trunk/src/filetypes.c =================================================================== --- trunk/src/filetypes.c 2009-12-07 21:24:41 UTC (rev 4477) +++ trunk/src/filetypes.c 2009-12-08 12:35:13 UTC (rev 4478) @@ -504,7 +504,7 @@ ft->comment_open = g_strdup("--"); ft->comment_close = NULL; ft->group = GEANY_FILETYPE_GROUP_COMPILED; - + #define VERILOG ft = filetypes[GEANY_FILETYPES_VERILOG]; ft->lang = 39; @@ -710,6 +710,7 @@ ft->name = g_strdup(fn); filetype_make_title(ft, TITLE_FILE); ft->pattern = g_new0(gchar*, 1); + ft->group = GEANY_FILETYPE_GROUP_CUSTOM; ft->priv->custom = TRUE; filetype_add(ft); geany_debug("Added filetype %s (%d).", ft->name, ft->id); @@ -826,6 +827,7 @@ create_sub_menu(filetype_menu, GEANY_FILETYPE_GROUP_SCRIPT, _("_Scripting Languages")); create_sub_menu(filetype_menu, GEANY_FILETYPE_GROUP_MARKUP, _("_Markup Languages")); create_sub_menu(filetype_menu, GEANY_FILETYPE_GROUP_MISC, _("M_iscellaneous Languages")); + create_sub_menu(filetype_menu, GEANY_FILETYPE_GROUP_CUSTOM, _("_Custom Filetypes"));
/* Append all filetypes to the filetype menu */ foreach_slist(node, filetypes_by_title)
Modified: trunk/src/filetypes.h =================================================================== --- trunk/src/filetypes.h 2009-12-07 21:24:41 UTC (rev 4477) +++ trunk/src/filetypes.h 2009-12-08 12:35:13 UTC (rev 4478) @@ -96,6 +96,7 @@ GEANY_FILETYPE_GROUP_SCRIPT, GEANY_FILETYPE_GROUP_MARKUP, GEANY_FILETYPE_GROUP_MISC, + GEANY_FILETYPE_GROUP_CUSTOM, GEANY_FILETYPE_GROUP_COUNT } GeanyFiletypeGroupID;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.