GNOME Bugzilla – Bug 761310
fix deprecation warning
Last modified: 2017-03-09 09:10:20 UTC
Created attachment 320036 [details] [review] patch This is the thread-local CodeContext stack used with push() and pop(). The null argument is a destroy_func and is a default arg for new Private()
How do you use that private? Can you add some context about this change?
With this new code I get yet another deprecation warning though: warning: ‘g_private_new’ is deprecated
https://developer.gnome.org/glib/stable/glib-Threads.html#G-PRIVATE-INIT:CAPS "g_private_new has been deprecated since version 2.32 and should not be used in newly-written code. dynamic allocation of GPrivate is a bad idea. Use static storage and G_PRIVATE_INIT() instead." Can we do this from vala?
*** This bug has been marked as a duplicate of bug 779034 ***