Kaydet (Commit) e345d180 authored tarafından Lex Trotman's avatar Lex Trotman

Fixed load/save filetypes build config, implemented Build Commands Dialog clear button

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3947 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 1726e570
2009-07-10 geany test <elextr(at)gmail(dot)com>
* src/build.c
fixed problem loading old format filetype files, some formatting fixes
fixed saving new format files
added operation for clear button on build commands dialog
* src/filetypes.c
fixed loading and saving filetype files
2009-07-09 geany test <elextr(at)gmail(dot)com>
Configurable Build Menu Changes
......
This diff is collapsed.
......@@ -118,7 +118,7 @@ void build_finalize(void);
/* menu configuration dialog functions */
GtkWidget *build_commands_table( GeanyDocument *doc, GeanyBuildSource dst, TableData *data, GeanyFiletype *ft );
gboolean read_build_commands( GeanyBuildCommand ***dstcmd, GeanyBuildSource dst, TableData data, gint response );
gboolean read_build_commands( GeanyBuildCommand ***dstcmd, TableData data, gint response );
void free_build_data( TableData data );
......
......@@ -1253,9 +1253,9 @@ void filetypes_save_commands(void)
ext = filetypes_get_conf_extension(i);
fname = g_strconcat(conf_prefix, ext, NULL);
g_free(ext);
config_home = g_key_file_new();
g_key_file_load_from_file(config_home, fname, G_KEY_FILE_KEEP_COMMENTS, NULL);
save_build_menu(config_home, (gpointer)(filetypes[i]), BCS_HOME_FT);
data = g_key_file_to_data(config_home, NULL, NULL);
utils_write_file(fname, data);
g_free(data);
......
......@@ -762,7 +762,7 @@ static gboolean update_config(const PropertyDialogElements *e)
}
rbc_array[GBG_NON_FT] = &non_ft_proj;
rbc_array[GBG_EXEC] = &exec_proj;
read_build_commands( rbc_array, BCS_PROJ, e->build_properties, GTK_RESPONSE_ACCEPT );
read_build_commands( rbc_array, e->build_properties, GTK_RESPONSE_ACCEPT );
if(ft!=NULL&&ft->projfilecmds!=oldvalue && ft->project_list_entry<0)
{
ft->project_list_entry = p->build_filetypes_list->len;
......
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