aports/unmaintained/geary/int-fixes.patch
2017-07-19 08:11:36 +00:00

30 lines
1.5 KiB
Diff

diff --git a/src/client/util/util-date.vala b/src/client/util/util-date.vala
index 57cd1fc..a1ec7e9 100644
--- a/src/client/util/util-date.vala
+++ b/src/client/util/util-date.vala
@@ -164,7 +164,7 @@ private string pretty_print_coarse(CoarseDate coarse_date, ClockFormat clock_for
return _("Now");
case CoarseDate.MINUTES:
- return ngettext("%dm ago", "%dm ago", (ulong) (diff / TimeSpan.MINUTE)).printf(diff / TimeSpan.MINUTE);
+ return ngettext("%dm ago", "%dm ago", (ulong) (diff / TimeSpan.MINUTE)).printf((int) (diff / TimeSpan.MINUTE));
case CoarseDate.HOURS:
int rounded = (int) Math.round((double) diff / TimeSpan.HOUR);
diff --git a/src/client/components/conversation-find-bar.vala b/src/client/components/conversation-find-bar.vala
index a625896..093e52c 100644
--- a/src/client/components/conversation-find-bar.vala
+++ b/src/client/components/conversation-find-bar.vala
@@ -211,9 +211,9 @@ public class ConversationFindBar : Gtk.Layout {
if (matches > 0) {
if (!wrapped)
- content += ngettext("%i match", "%i matches", matches).printf(matches);
+ content += ngettext("%i match", "%ui matches", matches).printf(matches);
else
- content += ngettext("%i match (wrapped)", "%i matches (wrapped)", matches).printf(matches);
+ content += ngettext("%i match (wrapped)", "%ui matches (wrapped)", matches).printf(matches);
} else {
content += _("not found");
}