diff --git a/src/import-export/csv-exp/assistant-csv-export.c b/src/import-export/csv-exp/assistant-csv-export.c index 58a56d7c1a..fc0476e17f 100644 --- a/src/import-export/csv-exp/assistant-csv-export.c +++ b/src/import-export/csv-exp/assistant-csv-export.c @@ -814,8 +814,8 @@ csv_export_assistant_create (CsvExportInfo *info) time64 start_time, end_time; builder = gtk_builder_new(); - gnc_builder_add_from_file (builder , "assistant-csv-export.glade", "CSV Export Assistant"); - window = GTK_WIDGET(gtk_builder_get_object (builder, "CSV Export Assistant")); + gnc_builder_add_from_file (builder , "assistant-csv-export.glade", "csv_export_assistant"); + window = GTK_WIDGET(gtk_builder_get_object (builder, "csv_export_assistant")); info->window = window; /* Load default settings */ @@ -837,7 +837,7 @@ csv_export_assistant_create (CsvExportInfo *info) // Don't provide simple export layout for search registers and General Journal if ((info->export_type == XML_EXPORT_TREE) || (info->account == NULL)) gtk_widget_destroy (chkbox); - gtk_widget_destroy (info->account_page); + gtk_assistant_remove_page (GTK_ASSISTANT(window), 1); //remove accounts page } else { diff --git a/src/import-export/csv-exp/assistant-csv-export.glade b/src/import-export/csv-exp/assistant-csv-export.glade index 10eb18da60..3a200cc967 100644 --- a/src/import-export/csv-exp/assistant-csv-export.glade +++ b/src/import-export/csv-exp/assistant-csv-export.glade @@ -1,22 +1,23 @@ + - - - + + False 12 CSV Export Assistant 400 500 - - + + - + True False 12 + vertical True @@ -34,7 +35,7 @@ Select the type of Export required and the separator that will be used. - + True False @@ -58,23 +59,24 @@ Select the type of Export required and the separator that will be used. False 20 - + True False - 3 - 3 3 + 3 Use Quotes True True False + start True - GTK_FILL + 0 + 0 @@ -83,12 +85,13 @@ Select the type of Export required and the separator that will be used. True True False + start True 1 - 2 + 0 @@ -123,26 +126,25 @@ Select the type of Export required and the separator that will be used. False 20 - + True False - 2 - 3 - 3 3 - True + 3 Comma (,) True True False + start True True - GTK_FILL + 0 + 0 @@ -151,6 +153,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True comma_radio @@ -158,9 +161,7 @@ Select the type of Export required and the separator that will be used. 1 - 2 - GTK_FILL - GTK_FILL + 0 @@ -169,6 +170,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True comma_radio @@ -176,9 +178,7 @@ Select the type of Export required and the separator that will be used. 2 - 3 - GTK_FILL - GTK_FILL + 0 @@ -187,16 +187,15 @@ Select the type of Export required and the separator that will be used. True True False + start True True comma_radio + 0 1 - 2 - GTK_FILL - GTK_FILL @@ -204,20 +203,14 @@ Select the type of Export required and the separator that will be used. True True - True False False - True - True 1 - 3 1 - 2 - GTK_FILL - GTK_FILL + 2 @@ -244,13 +237,15 @@ Select the type of Export required and the separator that will be used. intro Choose Export Settings True + False - + True False 12 + vertical True @@ -265,21 +260,21 @@ Select the type of Export required and the separator that will be used. - + True True 1 - + True False 6 + vertical True False - 0 - 2 + start <b>_Accounts</b> True True @@ -296,15 +291,14 @@ Select the type of Export required and the separator that will be used. False 12 - + True False + vertical True True - automatic - automatic in @@ -314,7 +308,7 @@ Select the type of Export required and the separator that will be used. - + True False 3 @@ -334,7 +328,6 @@ Select the type of Export required and the separator that will be used. True False - 1 Accounts Selected: center @@ -376,55 +369,17 @@ Select the type of Export required and the separator that will be used. - + True False + _Select Subaccounts True True True 3 - - - True - False - 0 - 0 - - - True - False - 2 - - - True - False - gtk-add - - - False - False - 0 - - - - - True - False - _Select Subaccounts - True - - - False - False - 1 - - - - - - + True False @@ -455,15 +410,16 @@ Select the type of Export required and the separator that will be used. - + True False 12 + vertical True False - 0 + start <b>_Dates</b> True True @@ -480,6 +436,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True True @@ -496,6 +453,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True show_all @@ -508,23 +466,19 @@ Select the type of Export required and the separator that will be used. - + True False - 7 - 3 6 True False - 0 Start: - GTK_FILL - - 12 + 0 + 0 @@ -533,6 +487,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True True @@ -540,9 +495,7 @@ Select the type of Export required and the separator that will be used. 1 - 2 - GTK_FILL - + 0 @@ -551,6 +504,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True end_date_latest @@ -558,11 +512,7 @@ Select the type of Export required and the separator that will be used. 1 - 2 6 - 7 - GTK_FILL - @@ -571,6 +521,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True end_date_latest @@ -578,11 +529,7 @@ Select the type of Export required and the separator that will be used. 1 - 2 5 - 6 - GTK_FILL - @@ -591,6 +538,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True True @@ -598,39 +546,28 @@ Select the type of Export required and the separator that will be used. 1 - 2 4 - 5 - GTK_FILL - True False - 0 + 2 3 - 4 - GTK_FILL - True False - 0 End: + 0 4 - 5 - GTK_FILL - - 12 @@ -639,6 +576,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True start_date_earliest @@ -646,11 +584,7 @@ Select the type of Export required and the separator that will be used. 1 - 2 2 - 3 - GTK_FILL - @@ -659,6 +593,7 @@ Select the type of Export required and the separator that will be used. True True False + start True True start_date_earliest @@ -666,39 +601,59 @@ Select the type of Export required and the separator that will be used. 1 - 2 1 - 2 - GTK_FILL - - + True False 2 - 3 2 - 3 - - + True False 2 - 3 6 - 7 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + False @@ -722,13 +677,15 @@ Select the type of Export required and the separator that will be used. Account Selection + False - + True False 12 + vertical True @@ -747,6 +704,7 @@ Enter file name and location for the Export... Choose File Name for Export + False @@ -760,6 +718,7 @@ Cancel to abort. confirm Export Now... + False @@ -773,6 +732,15 @@ Cancel to abort. summary Export Summary True + False + + + + + False + + + False diff --git a/src/import-export/csv-exp/csv-tree-export.c b/src/import-export/csv-exp/csv-tree-export.c index a4afe1dc83..0ca38e254c 100644 --- a/src/import-export/csv-exp/csv-tree-export.c +++ b/src/import-export/csv-exp/csv-tree-export.c @@ -205,7 +205,9 @@ void csv_tree_export (CsvExportInfo *info) g_free (part2); /* Color */ currentSel = xaccAccountGetColor (acc) ? xaccAccountGetColor (acc) : "" ; - part2 = g_strconcat (part1, currentSel, mid_sep, NULL); + str_temp = csv_test_field_string (info, currentSel); + part2 = g_strconcat (part1, str_temp, mid_sep, NULL); + g_free (str_temp); g_free (part1); /* Notes */ currentSel = xaccAccountGetNotes (acc) ? xaccAccountGetNotes (acc) : "" ;