Dan Winship
4c870904cd
Revert "gvalue: Use g_value_clear as clear function"
...
This reverts commit 3bb2e8dfc9
.
2015-10-02 10:07:53 -04:00
Nicolas Dufresne
3bb2e8dfc9
gvalue: Use g_value_clear as clear function
...
This change allow leaving a scope before g_value_init() has been
called. This would happen if you do:
{
g_auto(GValue) value = G_VALUE_INIT;
}
Or have a return statement (due to failure) before the part of
your code where you set this GValue.
https://bugzilla.gnome.org/show_bug.cgi?id=755766
2015-09-29 08:26:14 -04:00
Xavier Claessens
b81f3ced71
Move GStrv typedef to glib.h instead of gobject.h
...
GStrv was historically only needed for the boxed G_TYPE_STRV,
but it is now useful for g_auto(GStrv) as well. This is not
an ABI change.
https://bugzilla.gnome.org/show_bug.cgi?id=755355
2015-09-22 11:18:30 -04:00
Emmanuele Bassi
5e994b1e9b
gobject: Add missing autocleanup for GInitiallyUnowned
...
We are missing the auto cleanup function for this type, which means
G_DECLARE_* macros won't work with classes inheriting from
GInitiallyUnowned.
2015-02-20 19:54:07 +00:00
Ryan Lortie
3d5de34def
gobject: add support for g_auto() and g_autoptr()
...
Add support to libgobject types for the new cleanup macros.
https://bugzilla.gnome.org/show_bug.cgi?id=743640
2015-01-30 16:52:36 +01:00