Re: Strange crash in mid-air



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.
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

Attachment: pgpLRroreaElG.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]