Re: Strange crash in mid-air

Albrecht Dreß <[email protected]> Thu, 18 Apr 2019 22:01:39 +0200
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Hi Peter!

Am 18.04.19 21:08 schrieb(en) Peter Bloomfield:
> I just pushed some changes, making all calls that touch the GtkProgressBar from an idle handler. That should fix it.

Thanks a lot for the patch!  However, it doesn't work with Ubuntu 18.04, coming with glibc 2.56.3, as the macro G_SOURCE_FUNC() was introduced with v. 2.58 only.  The trivial fix is attached.

Thanks a lot,
and happy Easter to everybody,

Albrecht.

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
fix_cast.diff (text/x-patch, 430 B)
diff --git a/src/main-window.c b/src/main-window.c
index ea09784e3..c941e6448 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -4443,7 +4443,7 @@ bw_update_progress_bar(BalsaWindow *window,
     info->set_fraction = set_fraction;
     info->fraction = fraction;
 
-    g_idle_add(G_SOURCE_FUNC(bw_update_progress_bar_idle_cb), info);
+    g_idle_add((GSourceFunc) bw_update_progress_bar_idle_cb, info);
 }
 
 static void
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAly416MACgkQTKlvDmfn
2fh3igf+JCILz+clsRlgDlVTYm9Quqz0r67KHEfPA6eRCso6Y5HmWgTy5VdORa/b
h1LiiI7blXgGqsoiJyDkcr+EkSbD1vTvMxsyHByms0S1Zy69O1pNT3hayfOIs42H
p8uNfjJb+gMykB//zeECCMMEe7FaR7AlO1ehrmwAnRjZfjvhs1oUYh8/bUb+2pND
FX3hLfnJpxjaDo57Uqo9CtZzkVfbOZPSlBTqwPflkT6RAbPLpNWroGbg6svm1wc+
9Z7TJkcYaFcY24oelGvE0sUwf19PeCDQuDwzYpSYnHuskOXIaYCtAW9fkKApieGp
kHMdqq6yzzmOq9PGAT2V6BxHMTJ+2Q==
=TyVg
-----END PGP SIGNATURE-----