[Commits] [SCM] claws branch, quota-info, updated. 4.3.1-56-gcea094a33
miras at claws-mail.org
miras at claws-mail.org
Tue Mar 11 01:54:55 UTC 2025
The branch, quota-info has been updated
via cea094a331ded341a3c58275c0c844549c462df9 (commit)
from 5e6310461cb9f4f89b178c95f93bd0a69e9402b3 (commit)
Summary of changes:
src/summaryview.c | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
- Log -----------------------------------------------------------------
commit cea094a331ded341a3c58275c0c844549c462df9
Author: Michael Rasmussen <mir at datanom.net>
Date: Tue Mar 11 02:54:45 2025 +0100
Only add size and limit to tooltip if current folder supports QOUTA extension
Signed-off-by: Michael Rasmussen <mir at datanom.net>
diff --git a/src/summaryview.c b/src/summaryview.c
index 5ca5c295c..d1aa1710a 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -2776,15 +2776,15 @@ static void summary_status_show(SummaryView *summaryview)
g_free(str);
if (has_quota) {
- str = g_strdup_printf(_("%d new, %d unread, %d total (%s) [used: %d%%]"),
+ str = g_strdup_printf(_("%d new, %d unread, %d total (%s) [used: %d%%]"),
n_new, n_unread, n_total,
to_human_readable((goffset)n_size),
(size*100)/limit);
- } else {
- str = g_strdup_printf(_("%d new, %d unread, %d total (%s)"),
- n_new, n_unread, n_total,
- to_human_readable((goffset)n_size));
- }
+ } else {
+ str = g_strdup_printf(_("%d new, %d unread, %d total (%s)"),
+ n_new, n_unread, n_total,
+ to_human_readable((goffset)n_size));
+ }
g_signal_connect(G_OBJECT(summaryview->popupmenu), "selection-done",
G_CALLBACK(popup_menu_selection_done), summaryview);
@@ -2793,9 +2793,8 @@ static void summary_status_show(SummaryView *summaryview)
g_free(str);
- //Why does this cause 'Segmentation fault'?!!!!!
-
- tooltip = g_strdup_printf("<b>%s</b>\n"
+ if (has_quota) {
+ tooltip = g_strdup_printf("<b>%s</b>\n"
"<b>%s</b> %d\n"
"<b>%s</b> %d\n"
"<b>%s</b> %d\n"
@@ -2819,11 +2818,10 @@ static void summary_status_show(SummaryView *summaryview)
_("Locked:"), n_locked,
_("Ignored:"), n_ignored,
_("Watched:"), n_watched,
- _("Size:"), size,
- _("Limit:"), limit);
-/*
-
- tooltip = g_strdup_printf("<b>%s</b>\n"
+ _("Size:"), size,
+ _("Limit:"), limit);
+ } else {
+ tooltip = g_strdup_printf("<b>%s</b>\n"
"<b>%s</b> %d\n"
"<b>%s</b> %d\n"
"<b>%s</b> %d\n"
@@ -2845,7 +2843,8 @@ static void summary_status_show(SummaryView *summaryview)
_("Locked:"), n_locked,
_("Ignored:"), n_ignored,
_("Watched:"), n_watched);
-*/
+ }
+
gtk_widget_set_tooltip_markup(GTK_WIDGET(summaryview->statlabel_msgs),
tooltip);
g_free(tooltip);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list