diff options
Diffstat (limited to 'unmaintained/geary/int-fixes.patch')
-rw-r--r-- | unmaintained/geary/int-fixes.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/unmaintained/geary/int-fixes.patch b/unmaintained/geary/int-fixes.patch new file mode 100644 index 0000000000..762a78e4af --- /dev/null +++ b/unmaintained/geary/int-fixes.patch @@ -0,0 +1,29 @@ +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"); + } |