wok-current view midori/stuff/midori-extensions-transfers.patch @ rev 25713

Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 11:35:21 2024 +0000 (3 months ago)
parents
children
line source
1 --- a/extensions/transfers.vala
2 +++ b/extensions/transfers.vala
3 @@ -275,7 +275,11 @@ namespace Transfers {
4 Transfer found;
5 store.get (iter, 0, out found);
6 if (transfer == found) {
7 +#if VALA_0_36
8 + store.remove (ref iter);
9 +#else
10 store.remove (iter);
11 +#endif
12 break;
13 }
14 } while (store.iter_next (ref iter));
15 @@ -455,7 +459,11 @@ namespace Transfers {
16 if (notifications.length () == 1)
17 msg = _("The file '<b>%s</b>' has been downloaded.").printf (filename);
18 else
19 - msg = _("'<b>%s</b>' and %d other files have been downloaded.").printf (filename, notifications.length ());
20 +#if VALA_0_36
21 + msg = _("'<b>%s</b>' and %d other files have been downloaded.").printf (filename, (int) notifications.length ());
22 +#else
23 + msg = _("'<b>%s</b>' and %d other files have been downloaded.").printf (filename, notifications.length ());
24 +#endif
25 get_app ().send_notification (_("Transfer completed"), msg);
26 notifications = new GLib.List<string> ();
27 }