SF.net SVN: geany:[4280] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Oct 1 15:57:11 UTC 2009
Revision: 4280
http://geany.svn.sourceforge.net/geany/?rev=4280&view=rev
Author: ntrel
Date: 2009-10-01 15:56:51 +0000 (Thu, 01 Oct 2009)
Log Message:
-----------
Don't create templates/filetype.none either.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/templates.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-10-01 14:40:42 UTC (rev 4279)
+++ trunk/ChangeLog 2009-10-01 15:56:51 UTC (rev 4280)
@@ -12,6 +12,8 @@
* src/templates.c, src/interface.c, src/geanymenubuttonaction.c,
geany.glade:
Only use one 'New with template' submenu - reparent as needed.
+ * src/templates.c:
+ Don't create templates/filetype.none either.
2009-09-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/templates.c
===================================================================
--- trunk/src/templates.c 2009-10-01 14:40:42 UTC (rev 4279)
+++ trunk/src/templates.c 2009-10-01 15:56:51 UTC (rev 4280)
@@ -119,9 +119,6 @@
\n\
* \n\n\n";
-/* Used when starting a new file normally */
-static const gchar templates_filetype_none[] = "";
-
static gchar *templates[GEANY_MAX_TEMPLATES];
/* We should probably remove filetype templates support soon - users can use custom
@@ -216,7 +213,6 @@
}
-/* Users should use custom filetypes instead, except for filetype none template */
static void init_ft_templates(const gchar *year, const gchar *date, const gchar *datetime)
{
filetype_id ft_id;
@@ -227,14 +223,6 @@
gchar *shortname = g_strconcat("filetype.", ext, NULL);
gchar *fname = TEMPLATES_GET_FILENAME(shortname);
- switch (ft_id)
- {
- case GEANY_FILETYPES_NONE:
- create_template_file_if_necessary(fname, templates_filetype_none);
- break;
- default:
- break;
- }
TEMPLATES_READ_FILE(fname, &ft_templates[ft_id]);
ft_templates[ft_id] = replace_all(ft_templates[ft_id], year, date, datetime);
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