From: Philip Chimento Date: Wed, 21 Aug 2013 02:11:06 +0000 (-0700) Subject: Use init and clear for GMutex and GCond X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=e4a75256e901a89729c48fcc2f9229cd0cfe9124;hp=e4a75256e901a89729c48fcc2f9229cd0cfe9124;p=projects%2Fchimara%2Fchimara.git 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(). ---