Use init and clear for GMutex and GCond
authorPhilip Chimento <philip.chimento@gmail.com>
Wed, 21 Aug 2013 02:11:06 +0000 (19:11 -0700)
committerPhilip Chimento <philip.chimento@gmail.com>
Wed, 4 Sep 2013 02:39:14 +0000 (19:39 -0700)
commitf0df98735cb5f3ff524be5689d45bb0ab4a27a74
tree68b952b9416373163e604394885208d9c57f4311
parentb4d0cc30b6c603148c7f74d23d5afde542e57f79
Use init and clear for GMutex and GCond

- g_mutex_init() replaces g_mutex_new()
- g_mutex_clear() replaces g_mutex_free()
- g_cond_init() replaces g_cond_new()
- g_cond_clear() replaces g_cond_free()

The old functions were deprecated and the new functions were added as
of GLib 2.32.

This requires all structures to use GMutex members instead of GMutex *
pointers; likewise for GCond. Since we cannot set the GMutex * pointers
to NULL anymore when the ChimaraGlk widget is finalized, we add an
after_finalize flag that is set at the beginning of
chimara_glk_finalize().
libchimara/abort.c
libchimara/chimara-glk-private.h
libchimara/chimara-glk.c
libchimara/event.c
libchimara/glk.c
libchimara/graphics.c
libchimara/input.c
libchimara/window.c