From 3ebdb4d46a97790e0d93db3e2411b44e46da0159 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 13 Oct 2011 09:14:57 -0400 Subject: [PATCH] gutils: stop using GStaticPrivate This was our last internal use. --- glib/gutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glib/gutils.c b/glib/gutils.c index cfafbfd8f..f9ee15378 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -3342,14 +3342,14 @@ language_names_cache_free (gpointer data) const gchar * const * g_get_language_names (void) { - static GStaticPrivate cache_private = G_STATIC_PRIVATE_INIT; - GLanguageNamesCache *cache = g_static_private_get (&cache_private); + static GPrivate cache_private = G_PRIVATE_INIT (language_names_cache_free); + GLanguageNamesCache *cache = g_private_get (&cache_private); const gchar *value; if (!cache) { cache = g_new0 (GLanguageNamesCache, 1); - g_static_private_set (&cache_private, cache, language_names_cache_free); + g_private_set (&cache_private, cache); } value = guess_category_value ("LC_MESSAGES");