8
8
<link rel="up" href="libxfce4panel-fundamentals.html" title="Part I. Fundamentals">
9
9
<link rel="prev" href="libxfce4panel-fundamentals.html" title="Part I. Fundamentals">
10
10
<link rel="next" href="libxfce4panel-Standard-Enumerations.html" title="Standard Enumerations">
11
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
26
26
<a href="#libxfce4panel-Version-Information.description" class="shortcut">Description</a>
29
<div class="refentry" title="Version Information">
29
<div class="refentry">
30
30
<a name="libxfce4panel-Version-Information"></a><div class="titlepage"></div>
31
31
<div class="refnamediv"><table width="100%"><tr>
36
36
<td valign="top" align="right"></td>
37
37
</tr></table></div>
38
<div class="refsynopsisdiv" title="Synopsis">
38
<div class="refsynopsisdiv">
39
39
<a name="libxfce4panel-Version-Information.synopsis"></a><h2>Synopsis</h2>
40
40
<pre class="synopsis">
41
41
#include <libxfce4panel/libxfce4panel.h>
59
<div class="refsect1" title="Description">
59
<div class="refsect1">
60
60
<a name="libxfce4panel-Version-Information.description"></a><h2>Description</h2>
62
62
The panel library provides version information, which could be used
63
63
by plugins to handle new API.
66
<div class="refsect1" title="Details">
66
<div class="refsect1">
67
67
<a name="libxfce4panel-Version-Information.details"></a><h2>Details</h2>
68
<div class="refsect2" title="libxfce4panel_major_version">
68
<div class="refsect2">
69
69
<a name="libxfce4panel-major-version"></a><h3>libxfce4panel_major_version</h3>
70
70
<pre class="programlisting">extern const guint libxfce4panel_major_version;
82
82
<p class="since">Since 4.8</p>
85
<div class="refsect2" title="libxfce4panel_minor_version">
85
<div class="refsect2">
86
86
<a name="libxfce4panel-minor-version"></a><h3>libxfce4panel_minor_version</h3>
87
87
<pre class="programlisting">extern const guint libxfce4panel_minor_version;
99
99
<p class="since">Since 4.8</p>
102
<div class="refsect2" title="libxfce4panel_micro_version">
102
<div class="refsect2">
103
103
<a name="libxfce4panel-micro-version"></a><h3>libxfce4panel_micro_version</h3>
104
104
<pre class="programlisting">extern const guint libxfce4panel_micro_version;
116
116
<p class="since">Since 4.8</p>
119
<div class="refsect2" title="libxfce4panel_check_version ()">
119
<div class="refsect2">
120
120
<a name="libxfce4panel-check-version"></a><h3>libxfce4panel_check_version ()</h3>
121
121
<pre class="programlisting">const <span class="returnvalue">gchar</span> * libxfce4panel_check_version (<em class="parameter"><code><span class="type">guint</span> required_major</code></em>,
122
122
<em class="parameter"><code><span class="type">guint</span> required_minor</code></em>,
135
135
<div class="example">
136
<a name="id356585"></a><p class="title"><b>Example 1. Checking the runtime version of the Libxfce4panel library</b></p>
136
<a name="id410044"></a><p class="title"><b>Example 1. Checking the runtime version of the Libxfce4panel library</b></p>
137
137
<div class="example-contents"><pre class="programlisting">
138
138
const gchar *mismatch;
139
139
mismatch = libxfce4panel_check_version (LIBXFCE4PANEL_MAJOR_VERSION,
152
152
<td><p><span class="term"><em class="parameter"><code>required_major</code></em> :</span></p></td>
153
<td>the required major version.
153
<td>the required major version.</td>
157
156
<td><p><span class="term"><em class="parameter"><code>required_minor</code></em> :</span></p></td>
158
<td>the required minor version.
157
<td>the required minor version.</td>
162
160
<td><p><span class="term"><em class="parameter"><code>required_micro</code></em> :</span></p></td>
163
<td>the required micro version.
161
<td>the required micro version.</td>
167
164
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
168
<td> <code class="literal">NULL</code> if the library is compatible with the given version,
169
or a string describing the version mismatch. The returned
170
string is owned by the library and must not be freed or
171
modified by the caller.
166
<code class="literal">NULL</code> if the library is compatible with the given version,
167
or a string describing the version mismatch. The returned
168
string is owned by the library and must not be freed or
169
modified by the caller.</td>
177
173
<p class="since">Since 4.8</p>
180
<div class="refsect2" title="LIBXFCE4PANEL_VERSION">
176
<div class="refsect2">
181
177
<a name="LIBXFCE4PANEL-VERSION:CAPS"></a><h3>LIBXFCE4PANEL_VERSION</h3>
182
<pre class="programlisting">#define LIBXFCE4PANEL_VERSION ("4.8.2")
178
<pre class="programlisting">#define LIBXFCE4PANEL_VERSION ("4.8.3")
185
181
String with the full version of the panel.
187
183
<p class="since">Since 4.8</p>
190
<div class="refsect2" title="LIBXFCE4PANEL_MAJOR_VERSION">
186
<div class="refsect2">
191
187
<a name="LIBXFCE4PANEL-MAJOR-VERSION:CAPS"></a><h3>LIBXFCE4PANEL_MAJOR_VERSION</h3>
192
188
<pre class="programlisting">#define LIBXFCE4PANEL_MAJOR_VERSION (4)
200
196
<p class="since">Since 4.8</p>
203
<div class="refsect2" title="LIBXFCE4PANEL_MINOR_VERSION">
199
<div class="refsect2">
204
200
<a name="LIBXFCE4PANEL-MINOR-VERSION:CAPS"></a><h3>LIBXFCE4PANEL_MINOR_VERSION</h3>
205
201
<pre class="programlisting">#define LIBXFCE4PANEL_MINOR_VERSION (8)
213
209
<p class="since">Since 4.8</p>
216
<div class="refsect2" title="LIBXFCE4PANEL_MICRO_VERSION">
212
<div class="refsect2">
217
213
<a name="LIBXFCE4PANEL-MICRO-VERSION:CAPS"></a><h3>LIBXFCE4PANEL_MICRO_VERSION</h3>
218
<pre class="programlisting">#define LIBXFCE4PANEL_MICRO_VERSION (2)
214
<pre class="programlisting">#define LIBXFCE4PANEL_MICRO_VERSION (3)
221
217
The micro version number of the libxfce4panel library.
226
222
<p class="since">Since 4.8</p>
229
<div class="refsect2" title="LIBXFCE4PANEL_CHECK_VERSION()">
225
<div class="refsect2">
230
226
<a name="LIBXFCE4PANEL-CHECK-VERSION:CAPS"></a><h3>LIBXFCE4PANEL_CHECK_VERSION()</h3>
231
227
<pre class="programlisting">#define LIBXFCE4PANEL_CHECK_VERSION(major,minor,micro)</pre>
239
235
<td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
240
<td>the major version number.
236
<td>the major version number.</td>
244
239
<td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
245
<td>the minor version number.
240
<td>the minor version number.</td>
249
243
<td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
250
<td>the micro version number.
244
<td>the micro version number.</td>
254
247
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
255
<td> <code class="literal">TRUE</code> if the version of the libxfce4panel header files is
256
the same as or newer than the passed-in version.
249
<code class="literal">TRUE</code> if the version of the libxfce4panel header files is
250
the same as or newer than the passed-in version.</td>