]> git.draconx.ca Git - gob-dx.git/commit
Use G_ADD_PRIVATE et al. when available.
authorNick Bowler <nbowler@draconx.ca>
Sun, 9 Feb 2020 02:20:16 +0000 (21:20 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 9 Feb 2020 02:20:16 +0000 (21:20 -0500)
commit705f8840a368a4843568834caa5f3a075d877cee
tree7d301bc2638c1843e5dcf495d390c17834f925c1
parentc3ec2de25a739b8afec1d19a950ba5bc399c1dcb
Use G_ADD_PRIVATE et al. when available.

As of GLib 2.58, using g_type_class_add_private has been deprecated;
it seems that type implementations are expected to use the G_ADD_PRIVATE
or G_ADD_PRIVATE_DYNAMIC macros.

Now that we use G_DEFINE_TYPE_xxx, it is reasonably straightforward
to do this.  Fall back to the old method for older GLib where these
macros are not available.
src/main.c