aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/geary/int-fixes.patch
blob: 762a78e4af350a84613b1407bd269d61af0a00df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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");
         }