Kaydet (Commit) 2cfd077f authored tarafından Nick Treleaven's avatar Nick Treleaven

Fix loading Perl, TCL system config files first

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@673 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 55edaf55
......@@ -4,6 +4,7 @@
* src/keyfile.c, src/filetypes.c, src/filetypes.h:
Use unique filetype id in geany.conf to avoid new filetype problems.
Make unique id numbers compatible with Geany 0.7 filetype order.
* src/highlighting.c: Fix loading Perl, TCL system config files first.
2006-08-04 Nick Treleaven <nick.treleaven@btinternet.com>
......
......@@ -1260,7 +1260,7 @@ static void styleset_perl_init(void)
gchar *f0 = g_strconcat(app->datadir, G_DIR_SEPARATOR_S "filetypes.perl", NULL);
gchar *f = g_strconcat(app->configdir, G_DIR_SEPARATOR_S GEANY_FILEDEFS_SUBDIR G_DIR_SEPARATOR_S "filetypes.perl", NULL);
styleset_load_file(config, f, G_KEY_FILE_KEEP_COMMENTS, NULL);
styleset_load_file(config, f0, G_KEY_FILE_KEEP_COMMENTS, NULL);
g_key_file_load_from_file(config_home, f, G_KEY_FILE_KEEP_COMMENTS, NULL);
types[GEANY_FILETYPES_PERL] = g_new(style_set, 1);
......@@ -2230,7 +2230,7 @@ static void styleset_tcl_init(void)
gchar *f0 = g_strconcat(app->datadir, G_DIR_SEPARATOR_S "filetypes.tcl", NULL);
gchar *f = g_strconcat(app->configdir, G_DIR_SEPARATOR_S GEANY_FILEDEFS_SUBDIR G_DIR_SEPARATOR_S "filetypes.tcl", NULL);
styleset_load_file(config, f, G_KEY_FILE_KEEP_COMMENTS, NULL);
styleset_load_file(config, f0, G_KEY_FILE_KEEP_COMMENTS, NULL);
g_key_file_load_from_file(config_home, f, G_KEY_FILE_KEEP_COMMENTS, NULL);
types[GEANY_FILETYPES_TCL] = g_new(style_set, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment