Drop the CALLS_SET_OBJECT_PROPERTY() macro

Replace it by g_set_object() as it does the same thing.
This commit is contained in:
Adrien Plazas
2018-08-03 11:23:44 +02:00
parent 3ebf58548c
commit 90f3933e95
6 changed files with 9 additions and 18 deletions

View File

@@ -71,15 +71,6 @@ G_BEGIN_DECLS
#define CALLS_SET_OBJECT_PROPERTY(obj_ptr,new_value) \
if (obj_ptr) \
{ \
g_object_unref (G_OBJECT (obj_ptr)); \
} \
obj_ptr = new_value; \
g_object_ref (G_OBJECT (obj_ptr));
#define CALLS_SET_PTR_PROPERTY(ptr,new_value) \
g_free (ptr); \
ptr = new_value;