make get_current_preset return list of messages describing preset rather than just one message with preset parameters

This commit is contained in:
Tomasz Moń
2009-05-06 13:10:46 +02:00
parent d7f10eb509
commit 4509c14bbc
5 changed files with 88 additions and 20 deletions

6
gui.c
View File

@@ -192,9 +192,9 @@ static void apply_preset_to_gui(Preset *preset)
**/
static void apply_current_preset()
{
GString *msg = get_current_preset();
Preset *preset = create_preset_from_data(msg);
g_string_free(msg, TRUE);
GList *list = get_current_preset();
Preset *preset = create_preset_from_data(list);
preset_list_free(list);
apply_preset_to_gui(preset);
preset_free(preset);
}