mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-27 20:33:28 +02:00
Make the g_value_set_x_take_ownership() functions "official" part of the
2003-09-12 Matthias Clasen <maclas@gmx.de> Make the g_value_set_x_take_ownership() functions "official" part of the API (#100948): * gvaluetypes.[hc]: Add g_value_take_string() (synonym to the now deprecated g_value_set_string_take_ownership()). * gparam.[hc]: Add g_value_take_param() (synonym to the now deprecated g_value_set_param_take_ownership()). * gobject.[hc]: Add g_value_take_object() (synonym to the now deprecated g_value_set_object_take_ownership()). * gboxed.[hc]: Add g_value_take_boxed() (synonym to the now deprecated g_value_set_boxed_take_ownership()). * gobject/gobject-sections.txt: Add new g_value_take_x() functions. * gobject/tmpl/param_value_types.sgml: Document new g_value_take_x() functions. (#100948)
This commit is contained in:
committed by
Matthias Clasen
parent
7c9f0a10f5
commit
c3acb9da0c
@@ -1532,6 +1532,13 @@ g_value_set_object (GValue *value,
|
||||
void
|
||||
g_value_set_object_take_ownership (GValue *value,
|
||||
gpointer v_object)
|
||||
{
|
||||
g_value_take_object (value, v_object);
|
||||
}
|
||||
|
||||
void
|
||||
g_value_take_object (GValue *value,
|
||||
gpointer v_object)
|
||||
{
|
||||
g_return_if_fail (G_VALUE_HOLDS_OBJECT (value));
|
||||
|
||||
|
Reference in New Issue
Block a user