|
|
|
|
@ -544,6 +544,8 @@ static GWEN_TYPE_UINT32 progressStartCB(AB_BANKING *ab, const char *utf8title,
|
|
|
|
|
0.0);
|
|
|
|
|
data->action_max = total;
|
|
|
|
|
GNCInteractor_setRunning(data);
|
|
|
|
|
printf("progressStartCB: Action \"%s\" started, total %d.\n",
|
|
|
|
|
text, total);
|
|
|
|
|
|
|
|
|
|
/* Show the dialog */
|
|
|
|
|
GNCInteractor_show(data);
|
|
|
|
|
@ -563,13 +565,15 @@ static int progressAdvanceCB(AB_BANKING *ab, GWEN_TYPE_UINT32 id,
|
|
|
|
|
g_assert(data);
|
|
|
|
|
|
|
|
|
|
if ((id != 0) && (id != progress_id)) {
|
|
|
|
|
printf("progressLogCB: Oops, wrong progress id %d -- ignored.\n", id);
|
|
|
|
|
/* printf("progressLogCB: Oops, wrong progress id %d -- ignored.\n", id); */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (progress != AB_BANKING_PROGRESS_NONE) {
|
|
|
|
|
printf("progressLogCB: Setting progress to %d out of %f.\n", progress, data->action_max);
|
|
|
|
|
gtk_progress_set_percentage (GTK_PROGRESS (data->action_progress),
|
|
|
|
|
progress/data->action_max);
|
|
|
|
|
printf("progressLogCB: Progress set to %d out of %f.\n",
|
|
|
|
|
progress, data->action_max);
|
|
|
|
|
if (progress <= data->action_max)
|
|
|
|
|
gtk_progress_set_percentage (GTK_PROGRESS (data->action_progress),
|
|
|
|
|
progress/data->action_max);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
keepAlive(data);
|
|
|
|
|
@ -590,7 +594,7 @@ static int progressLogCB(AB_BANKING *ab, GWEN_TYPE_UINT32 id,
|
|
|
|
|
text = gnc_hbci_utf8ToLatin1(data, utf8text);
|
|
|
|
|
|
|
|
|
|
if ((id != 0) && (id != progress_id)) {
|
|
|
|
|
printf("progressLogCB: Oops, wrong progress id %d -- ignored.\n", id);
|
|
|
|
|
/* printf("progressLogCB: Oops, wrong progress id %d -- ignored.\n", id); */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
printf("progressLogCB: Logging msg: %s\n", text);
|
|
|
|
|
@ -609,7 +613,7 @@ static int progressEndCB(AB_BANKING *ab, GWEN_TYPE_UINT32 id)
|
|
|
|
|
g_assert(data);
|
|
|
|
|
|
|
|
|
|
if ((id != 0) && (id != progress_id)) {
|
|
|
|
|
printf("progressLogCB: Oops, wrong progress id %d -- ignored.\n", id);
|
|
|
|
|
/* printf("progressLogCB: Oops, wrong progress id %d -- ignored.\n", id); */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GNCInteractor_setFinished(data);
|
|
|
|
|
|