After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740270 - 'g_mutex_new' is deprecated
'g_mutex_new' is deprecated
Status: RESOLVED FIXED
Product: java-atk-wrapper
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: java-atk-wrapper maintainer(s)
java-atk-wrapper maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-11-17 16:41 UTC by Magdalen Berns (irc magpie)
Modified: 2015-02-27 16:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix warning (1.27 KB, patch)
2014-11-20 20:49 UTC, Magdalen Berns (irc magpie)
committed Details | Review

Description Magdalen Berns (irc magpie) 2014-11-17 16:41:59 UTC
AtkWrapper.c:187:3: 

https://developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs.html#g-mutex-new

Apparently it is better to use g_mutex_init ()

https://developer.gnome.org/glib/stable/glib-Threads.html#g-mutex-init

Which is a bit more fiddly under these circumstances because it seems like a lot would have to be global for the various functions that call atk_bridge_mutex to be able to do that as they are:

typedef struct {
  GMutex m;
  ...
} Blob;

Blob *b;

b = g_new (Blob, 1);
g_mutex_init (&b->m)
Comment 1 Magdalen Berns (irc magpie) 2014-11-20 20:49:37 UTC
Created attachment 291126 [details] [review]
patch to fix warning
Comment 2 André Klapper 2015-02-27 16:58:38 UTC
[Moving at-spi/java-atk-wrapper bugs to separate product. See bug 740075]