talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit d4db7d12146c10828487f2039661934e5d6cc702
parent 6aa5a37b201e6b5be8452f205dfb5278a8d6718f
Author: Paul <paul@claws-mail.org>
Date:   Tue, 12 May 2020 18:17:08 +0100

make the progress window more responsive when importing mbox file

Diffstat:
Msrc/gtk/gtkutils.c | 4++--
Msrc/mbox.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gtk/gtkutils.c b/src/gtk/gtkutils.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2018 Hiroyuki Yamamoto and the Claws Mail team + * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -757,7 +757,7 @@ static gboolean move_bar_cb(gpointer data) if (!GTK_IS_PROGRESS_BAR(w)) { return FALSE; } - + gtk_progress_bar_set_pulse_step(GTK_PROGRESS_BAR(w), 0.1); gtk_progress_bar_pulse(GTK_PROGRESS_BAR(w)); GTK_EVENTS_FLUSH(); return TRUE; diff --git a/src/mbox.c b/src/mbox.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail team + * Copyright (C) 1999-2020 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -134,7 +134,7 @@ gint proc_mbox(FolderItem *dest, const gchar *mbox, gboolean apply_filter, gint empty_lines; gint msgnum; - if (msgs%500 == 0) { + if (msgs%10 == 0) { long cur_offset_mb = ftell(mbox_fp) / (1024 * 1024); if (printed) statusbar_pop_all();