Revision: 5332 http://geany.svn.sourceforge.net/geany/?rev=5332&view=rev Author: ntrel Date: 2010-10-26 17:36:35 +0000 (Tue, 26 Oct 2010)
Log Message: ----------- Leave text/plain mime_type fields as NULL (like custom filetypes).
Modified Paths: -------------- trunk/ChangeLog trunk/src/filetypes.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-10-26 17:30:16 UTC (rev 5331) +++ trunk/ChangeLog 2010-10-26 17:36:35 UTC (rev 5332) @@ -17,6 +17,8 @@ * src/ui_utils.c: Add notebook tab document icons (based on patch by Colomban Wendling, thanks). + * src/filetypes.c: + Leave text/plain mime_type fields as NULL (like custom filetypes).
2010-10-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/filetypes.c =================================================================== --- trunk/src/filetypes.c 2010-10-26 17:30:16 UTC (rev 5331) +++ trunk/src/filetypes.c 2010-10-26 17:36:35 UTC (rev 5332) @@ -95,7 +95,6 @@ ft = filetypes[GEANY_FILETYPES_NONE]; ft->name = g_strdup(_("None")); ft->title = g_strdup(_("None")); - ft->mime_type = g_strdup("text/plain"); ft->group = GEANY_FILETYPE_GROUP_NONE;
#define C @@ -159,7 +158,6 @@ ft->lang = 9; ft->name = g_strdup("ASM"); ft->title = g_strdup_printf(_("%s source file"), "Assembler"); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_COMPILED;
#define BASIC @@ -167,7 +165,6 @@ ft->lang = 26; ft->name = g_strdup("FreeBasic"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_COMPILED;
#define FORTRAN @@ -191,7 +188,6 @@ ft->lang = 31; ft->name = g_strdup("GLSL"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_COMPILED;
#define CAML @@ -262,7 +258,6 @@ ft->lang = 19; ft->name = g_strdup("Ferite"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_SCRIPT;
#define HASKELL @@ -278,7 +273,6 @@ ft->lang = 36; ft->name = g_strdup("Markdown"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_MISC;
#define TXT2TAGS @@ -294,7 +288,6 @@ ft->lang = 38; ft->name = g_strdup("Abc"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_MISC;
#define SH @@ -373,7 +366,6 @@ ft->lang = 39; ft->name = g_strdup("Verilog"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_COMPILED;
#define DIFF @@ -388,7 +380,6 @@ ft = filetypes[GEANY_FILETYPES_LISP]; ft->name = g_strdup("Lisp"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_SCRIPT;
#define ERLANG @@ -403,7 +394,6 @@ ft->lang = 10; ft->name = g_strdup("Conf"); ft->title = g_strdup(_("Config file")); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_MISC;
#define PO @@ -418,7 +408,6 @@ ft->lang = 27; ft->name = g_strdup("Haxe"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_COMPILED;
#define ACTIONSCRIPT @@ -434,7 +423,6 @@ ft->lang = 40; ft->name = g_strdup("R"); ft->title = g_strdup_printf(_("%s script file"), "R"); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_SCRIPT;
#define REST @@ -442,7 +430,6 @@ ft->lang = 28; ft->name = g_strdup("reStructuredText"); filetype_make_title(ft, TITLE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_MISC;
#define MATLAB @@ -457,7 +444,6 @@ ft = filetypes[GEANY_FILETYPES_YAML]; ft->name = g_strdup("YAML"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_MISC;
#define CMAKE @@ -472,7 +458,6 @@ ft->lang = 35; ft->name = g_strdup("NSIS"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_MISC;
#define ADA @@ -486,7 +471,6 @@ ft = filetypes[GEANY_FILETYPES_FORTH]; ft->name = g_strdup("Forth"); filetype_make_title(ft, TITLE_SOURCE_FILE); - ft->mime_type = g_strdup("text/plain"); /* FIXME */ ft->group = GEANY_FILETYPE_GROUP_SCRIPT; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.