1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
Macros to work glib version independent.
7
<!-- ##### SECTION Long_Description ##### -->
9
Macros for plugin writers to use new features in Glib 2.8 and 2.10 without
10
breaking old versions of Glib. It is recommended to use those macros
14
<!-- ##### SECTION See_Also ##### -->
17
<!-- ##### SECTION Stability_Level ##### -->
20
<!-- ##### SECTION Image ##### -->
23
<!-- ##### MACRO panel_slice_alloc ##### -->
25
Use #g_slice_alloc when available, fallback to #g_malloc.
28
@block_size: the number of bytes to allocate
31
<!-- ##### MACRO panel_slice_alloc0 ##### -->
33
Use #g_slice_alloc0 when available, fallback to #g_malloc0.
36
@block_size: the number of bytes to allocate
39
<!-- ##### MACRO panel_slice_free ##### -->
41
Use #g_slice_free when available, fallback to #g_free.
44
@type: the type to allocate, typically a structure name
45
@ptr: a pointer to the block to free
48
<!-- ##### MACRO panel_slice_free1 ##### -->
50
Use #g_slice_free1 when available, fallback to #g_free.
53
@block_size: the number of bytes to allocate
54
@mem_block: a pointer to the block to free
57
<!-- ##### MACRO panel_slice_new ##### -->
59
Use #g_slice_new when available, fallback to #g_new.
62
@type: the type to allocate, typically a structure name
65
<!-- ##### MACRO panel_slice_new0 ##### -->
67
Use #g_slice_new0 when available, fallback to #g_new0.
70
@type: the type to allocate, typically a structure name
73
<!-- ##### MACRO PANEL_PARAM_READABLE ##### -->
75
Alias for #G_PARAM_READABLE | #G_PARAM_STATIC_NAME | #G_PARAM_STATIC_NICK | #G_PARAM_STATIC_BLURB
80
<!-- ##### MACRO PANEL_PARAM_READWRITE ##### -->
82
Alias for #G_PARAM_WRITABLE | #G_PARAM_STATIC_NAME | #G_PARAM_STATIC_NICK | #G_PARAM_STATIC_BLURB
87
<!-- ##### MACRO PANEL_PARAM_WRITABLE ##### -->
89
Alias for #G_PARAM_READWRITE | #G_PARAM_STATIC_NAME | #G_PARAM_STATIC_NICK | #G_PARAM_STATIC_BLURB
94
<!-- ##### MACRO I_ ##### -->
96
Canonical representation for @string. This can be use in functions like #g_object_get_data.