1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>Common macros</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="Libxfce4panel Reference Manual">
8
<link rel="up" href="libxfce4panel-fundamentals.html" title="Fundamentals">
9
<link rel="prev" href="libxfce4panel-fundamentals.html" title="Fundamentals">
10
<link rel="next" href="libxfce4panel-Standard-Enumerations.html" title="Standard Enumerations">
11
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="libxfce4panel-fundamentals.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="libxfce4panel-fundamentals.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">Libxfce4panel Reference Manual</th>
21
<td><a accesskey="n" href="libxfce4panel-Standard-Enumerations.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#libxfce4panel-Common-macros.synopsis" class="shortcut">Top</a>
26
<a href="#libxfce4panel-Common-macros.description" class="shortcut">Description</a>
29
<div class="refentry" title="Common macros">
30
<a name="libxfce4panel-Common-macros"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="libxfce4panel-Common-macros.top_of_page"></a>Common macros</span></h2>
34
<p>Common macros — Macros to work glib version independent.</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv" title="Synopsis">
39
<a name="libxfce4panel-Common-macros.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">
41
#include <libxfce4panel/libxfce4panel.h>
43
#define <a class="link" href="libxfce4panel-Common-macros.html#panel-slice-alloc" title="panel_slice_alloc()">panel_slice_alloc</a> (block_size)
44
#define <a class="link" href="libxfce4panel-Common-macros.html#panel-slice-alloc0" title="panel_slice_alloc0()">panel_slice_alloc0</a> (block_size)
45
#define <a class="link" href="libxfce4panel-Common-macros.html#panel-slice-free" title="panel_slice_free()">panel_slice_free</a> (type,
47
#define <a class="link" href="libxfce4panel-Common-macros.html#panel-slice-free1" title="panel_slice_free1()">panel_slice_free1</a> (block_size,
49
#define <a class="link" href="libxfce4panel-Common-macros.html#panel-slice-new" title="panel_slice_new()">panel_slice_new</a> (type)
50
#define <a class="link" href="libxfce4panel-Common-macros.html#panel-slice-new0" title="panel_slice_new0()">panel_slice_new0</a> (type)
51
#define <a class="link" href="libxfce4panel-Common-macros.html#PANEL-PARAM-READABLE:CAPS" title="PANEL_PARAM_READABLE">PANEL_PARAM_READABLE</a>
52
#define <a class="link" href="libxfce4panel-Common-macros.html#PANEL-PARAM-READWRITE:CAPS" title="PANEL_PARAM_READWRITE">PANEL_PARAM_READWRITE</a>
53
#define <a class="link" href="libxfce4panel-Common-macros.html#PANEL-PARAM-WRITABLE:CAPS" title="PANEL_PARAM_WRITABLE">PANEL_PARAM_WRITABLE</a>
54
#define <a class="link" href="libxfce4panel-Common-macros.html#I-:CAPS" title="I_()">I_</a> (string)
57
<div class="refsect1" title="Description">
58
<a name="libxfce4panel-Common-macros.description"></a><h2>Description</h2>
60
Macros for plugin writers to use new features in Glib 2.8 and 2.10 without
61
breaking old versions of Glib. It is recommended to use those macros
65
<div class="refsect1" title="Details">
66
<a name="libxfce4panel-Common-macros.details"></a><h2>Details</h2>
67
<div class="refsect2" title="panel_slice_alloc()">
68
<a name="panel-slice-alloc"></a><h3>panel_slice_alloc()</h3>
69
<pre class="programlisting">#define panel_slice_alloc(block_size)</pre>
71
Use <span class="type">g_slice_alloc</span> when available, fallback to <span class="type">g_malloc</span>.
73
<div class="variablelist"><table border="0">
74
<col align="left" valign="top">
76
<td><p><span class="term"><em class="parameter"><code>block_size</code></em> :</span></p></td>
77
<td>the number of bytes to allocate
83
<div class="refsect2" title="panel_slice_alloc0()">
84
<a name="panel-slice-alloc0"></a><h3>panel_slice_alloc0()</h3>
85
<pre class="programlisting">#define panel_slice_alloc0(block_size)</pre>
87
Use <span class="type">g_slice_alloc0</span> when available, fallback to <span class="type">g_malloc0</span>.
89
<div class="variablelist"><table border="0">
90
<col align="left" valign="top">
92
<td><p><span class="term"><em class="parameter"><code>block_size</code></em> :</span></p></td>
93
<td>the number of bytes to allocate
99
<div class="refsect2" title="panel_slice_free()">
100
<a name="panel-slice-free"></a><h3>panel_slice_free()</h3>
101
<pre class="programlisting">#define panel_slice_free(type, ptr)</pre>
103
Use <span class="type">g_slice_free</span> when available, fallback to <span class="type">g_free</span>.
105
<div class="variablelist"><table border="0">
106
<col align="left" valign="top">
109
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
110
<td>the type to allocate, typically a structure name
114
<td><p><span class="term"><em class="parameter"><code>ptr</code></em> :</span></p></td>
115
<td>a pointer to the block to free
122
<div class="refsect2" title="panel_slice_free1()">
123
<a name="panel-slice-free1"></a><h3>panel_slice_free1()</h3>
124
<pre class="programlisting">#define panel_slice_free1(block_size, mem_block)</pre>
126
Use <span class="type">g_slice_free1</span> when available, fallback to <span class="type">g_free</span>.
128
<div class="variablelist"><table border="0">
129
<col align="left" valign="top">
132
<td><p><span class="term"><em class="parameter"><code>block_size</code></em> :</span></p></td>
133
<td>the number of bytes to allocate
137
<td><p><span class="term"><em class="parameter"><code>mem_block</code></em> :</span></p></td>
138
<td>a pointer to the block to free
145
<div class="refsect2" title="panel_slice_new()">
146
<a name="panel-slice-new"></a><h3>panel_slice_new()</h3>
147
<pre class="programlisting">#define panel_slice_new(type)</pre>
149
Use <span class="type">g_slice_new</span> when available, fallback to <span class="type">g_new</span>.
151
<div class="variablelist"><table border="0">
152
<col align="left" valign="top">
154
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
155
<td> the type to allocate, typically a structure name
161
<div class="refsect2" title="panel_slice_new0()">
162
<a name="panel-slice-new0"></a><h3>panel_slice_new0()</h3>
163
<pre class="programlisting">#define panel_slice_new0(type)</pre>
165
Use <span class="type">g_slice_new0</span> when available, fallback to <span class="type">g_new0</span>.
167
<div class="variablelist"><table border="0">
168
<col align="left" valign="top">
170
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
171
<td> the type to allocate, typically a structure name
177
<div class="refsect2" title="PANEL_PARAM_READABLE">
178
<a name="PANEL-PARAM-READABLE:CAPS"></a><h3>PANEL_PARAM_READABLE</h3>
179
<pre class="programlisting">#define PANEL_PARAM_READABLE</pre>
181
Alias for <span class="type">G_PARAM_READABLE</span> | <span class="type">G_PARAM_STATIC_NAME</span> | <span class="type">G_PARAM_STATIC_NICK</span> | <span class="type">G_PARAM_STATIC_BLURB</span>
185
<div class="refsect2" title="PANEL_PARAM_READWRITE">
186
<a name="PANEL-PARAM-READWRITE:CAPS"></a><h3>PANEL_PARAM_READWRITE</h3>
187
<pre class="programlisting">#define PANEL_PARAM_READWRITE</pre>
189
Alias for <span class="type">G_PARAM_WRITABLE</span> | <span class="type">G_PARAM_STATIC_NAME</span> | <span class="type">G_PARAM_STATIC_NICK</span> | <span class="type">G_PARAM_STATIC_BLURB</span>
193
<div class="refsect2" title="PANEL_PARAM_WRITABLE">
194
<a name="PANEL-PARAM-WRITABLE:CAPS"></a><h3>PANEL_PARAM_WRITABLE</h3>
195
<pre class="programlisting">#define PANEL_PARAM_WRITABLE</pre>
197
Alias for <span class="type">G_PARAM_READWRITE</span> | <span class="type">G_PARAM_STATIC_NAME</span> | <span class="type">G_PARAM_STATIC_NICK</span> | <span class="type">G_PARAM_STATIC_BLURB</span>
201
<div class="refsect2" title="I_()">
202
<a name="I-:CAPS"></a><h3>I_()</h3>
203
<pre class="programlisting">#define I_(string)</pre>
205
Canonical representation for <em class="parameter"><code>string</code></em>. This can be use in functions like <span class="type">g_object_get_data</span>.
207
<div class="variablelist"><table border="0">
208
<col align="left" valign="top">
210
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
220
Generated by GTK-Doc V1.14</div>
b'\\ No newline at end of file'