talons

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

commit e8ccd6c449430e3b775f09e27ec8f1ad000def33
parent dea435bf8b8c0fdeb8b89c8a7a400c78d3ada6f0
Author: paul <paul@claws-mail.org>
Date:   Thu,  4 Feb 2021 10:14:31 +0000

show progressbar text

Diffstat:
Msrc/action.c | 3++-
Msrc/plugins/fancy/fancy_viewer.c | 3++-
Msrc/statusbar.c | 5+++--
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/action.c b/src/action.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2019 the Claws Mail Team and Hiroyuki Yamamoto + * Copyright (C) 1999-2021 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 @@ -1218,6 +1218,7 @@ static void update_io_dialog(Children *children) text = g_strdup_printf(format, _("Completed"), children->initial_nb - children->nb, children->initial_nb); + gtk_progress_bar_set_show_text(GTK_PROGRESS_BAR(children->progress_bar), TRUE); gtk_progress_bar_set_text(GTK_PROGRESS_BAR(children->progress_bar), text); g_free(text); } diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c @@ -1,7 +1,7 @@ /* * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client * == Fancy Plugin == - * Copyright(C) 1999-2015 the Claws Mail Team + * Copyright(C) 1999-2021 the Claws Mail Team * This file Copyright (C) 2009-2014 Salvatore De Paolis * <iwkse@claws-mail.org> and the Claws Mail Team * @@ -659,6 +659,7 @@ static void load_progress_cb(WebKitWebView *view, GParamSpec *param, gdouble progress = webkit_web_view_get_estimated_load_progress(view); gchar *label = g_strdup_printf("%d%% Loading...", (gint)(progress * 100)); gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(viewer->progress), progress); + gtk_progress_bar_set_show_text(GTK_PROGRESS_BAR(viewer->progress), TRUE); gtk_progress_bar_set_text(GTK_PROGRESS_BAR(viewer->progress), (const gchar*)label); g_free(label); diff --git a/src/statusbar.c b/src/statusbar.c @@ -1,6 +1,6 @@ /* - * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client + * Copyright (C) 1999-2021 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 @@ -171,6 +171,7 @@ void statusbar_progress_all (gint done, gint total, gint step) const gchar *format = "%d / %d"; #endif g_snprintf(buf, sizeof(buf), format, done, total); + gtk_progress_bar_set_show_text(progressbar, TRUE); gtk_progress_bar_set_text(progressbar, buf); gtk_progress_bar_set_fraction(progressbar, (gfloat)done / (gfloat)total);