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>
Sat, 31 Aug 2013 23:54:14 +0000 (16:54 -0700)
commit256f6eb428d07b7790acac168c59d1b853b400fc
treee6ddaa418fa556b6603183a4748cccfb483bf930
parentb951fbd6940c1afcc4a36c18b0b009abfeebcdf3
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