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>
Mon, 9 Sep 2013 04:12:00 +0000 (21:12 -0700)
commite4a75256e901a89729c48fcc2f9229cd0cfe9124
treed1327b2aa1352aa270848fc65cb8fff706a2db83
parent41d8af5945b52368aef20ce2cf272c5a327c57e1
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