diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-09-09 07:19:52 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-09-09 07:19:52 +0000 |
commit | f7ca35cbcbb20c446d2fc392adcb67bf3ccacc77 (patch) | |
tree | 23096150e8bea463a5b7ff6d4e63eaa7eee1b9b8 /src/mainwindow.c | |
parent | 1bddee29d23efedb91b43a1fa6667090a52f54f9 (diff) |
update progress bar when executing long IMAP4 operations.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@567 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 14e7e0e9..5bd94bfe 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1520,6 +1520,20 @@ void main_window_progress_set(MainWindow *mainwin, gint cur, gint total) (gfloat)cur / (gfloat)total); } +void main_window_progress_show(gint cur, gint total) +{ + MainWindow *mainwin; + + mainwin = main_window_get(); + + if (total > 0) { + gtk_progress_set_show_text(GTK_PROGRESS(mainwin->progressbar), + TRUE); + main_window_progress_set(mainwin, cur, total); + } else + main_window_progress_off(mainwin); +} + void main_window_toggle_online(MainWindow *mainwin, gboolean online) { if (prefs_common.online_mode != online) |