1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>Version Information</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="libxfce4util Reference Manual">
8
<link rel="up" href="libxfce4util-fundamentals.html" title="Xfce Fundamentals">
9
<link rel="prev" href="libxfce4util-fundamentals.html" title="Xfce Fundamentals">
10
<link rel="next" href="libxfce4util-Internationalisation.html" title="Internationalization">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="reference.html" title="libxfce4util Overview">
14
<link rel="chapter" href="libxfce4util-fundamentals.html" title="Xfce Fundamentals">
15
<link rel="chapter" href="libxfce4util-core.html" title="Xfce Core Application support">
16
<link rel="chapter" href="libxfce4util-utilities.html" title="Xfce Utilities">
17
<link rel="chapter" href="libxfce4util-datatypes.html" title="Xfce Data types">
19
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
20
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
22
<td><a accesskey="p" href="libxfce4util-fundamentals.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
23
<td><a accesskey="u" href="libxfce4util-fundamentals.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
24
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
25
<th width="100%" align="center">libxfce4util Reference Manual</th>
26
<td><a accesskey="n" href="libxfce4util-Internationalisation.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2563599" class="shortcut">Top</a>
30
<a href="#id2528216" class="shortcut">Description</a></nobr></td></tr>
32
<div class="refentry" lang="en">
33
<a name="libxfce4util-Version-Information"></a><div class="titlepage"></div>
34
<div class="refnamediv"><table width="100%"><tr>
37
<a name="id2563599"></a><span class="refentrytitle">Version Information</span>
39
<p>Version Information — Variables and functions to check the libxfce4util version</p>
41
<td valign="top" align="right"></td>
43
<div class="refsynopsisdiv">
45
<pre class="synopsis">
47
#include <libxfce4util/libxfce4util.h>
51
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
52
>gchar</a>* <a class="link" href="libxfce4util-Version-Information.html#xfce-version-string">xfce_version_string</a> (void);
53
extern const guint <a class="link" href="libxfce4util-Version-Information.html#libxfce4util-major-version">libxfce4util_major_version</a>;
54
extern const guint <a class="link" href="libxfce4util-Version-Information.html#libxfce4util-minor-version">libxfce4util_minor_version</a>;
55
extern const guint <a class="link" href="libxfce4util-Version-Information.html#libxfce4util-micro-version">libxfce4util_micro_version</a>;
57
#define <a class="link" href="libxfce4util-Version-Information.html#LIBXFCE4UTIL-MAJOR-VERSION:CAPS">LIBXFCE4UTIL_MAJOR_VERSION</a>
58
#define <a class="link" href="libxfce4util-Version-Information.html#LIBXFCE4UTIL-MINOR-VERSION:CAPS">LIBXFCE4UTIL_MINOR_VERSION</a>
59
#define <a class="link" href="libxfce4util-Version-Information.html#LIBXFCE4UTIL-MICRO-VERSION:CAPS">LIBXFCE4UTIL_MICRO_VERSION</a>
60
#define <a class="link" href="libxfce4util-Version-Information.html#LIBXFCE4UTIL-CHECK-VERSION:CAPS">LIBXFCE4UTIL_CHECK_VERSION</a> (major,minor,micro)
63
<div class="refsect1" lang="en">
64
<a name="id2528216"></a><h2>Description</h2>
66
These macros provide a few commonly-used features.
69
<div class="refsect1" lang="en">
70
<a name="id2528231"></a><h2>Details</h2>
71
<div class="refsect2" lang="en">
72
<a name="id2528241"></a><h3>
73
<a name="xfce-version-string"></a>xfce_version_string ()</h3>
74
<a class="indexterm" name="id2528257"></a><pre class="programlisting">const <a
75
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
76
>gchar</a>* xfce_version_string (void);</pre>
78
Queries the version string of the installed Xfce desktop environment.</p>
82
<div class="variablelist"><table border="0">
83
<col align="left" valign="top">
85
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
86
<td> the overall version information of the installed Xfce desktop.
91
<p class="since">Since 4.2
95
<div class="refsect2" lang="en">
96
<a name="id2528307"></a><h3>
97
<a name="libxfce4util-major-version"></a>libxfce4util_major_version</h3>
98
<a class="indexterm" name="id2528319"></a><pre class="programlisting">extern const guint libxfce4util_major_version;
105
<div class="refsect2" lang="en">
106
<a name="id2528335"></a><h3>
107
<a name="libxfce4util-minor-version"></a>libxfce4util_minor_version</h3>
108
<a class="indexterm" name="id2572550"></a><pre class="programlisting">extern const guint libxfce4util_minor_version;
115
<div class="refsect2" lang="en">
116
<a name="id2572566"></a><h3>
117
<a name="libxfce4util-micro-version"></a>libxfce4util_micro_version</h3>
118
<a class="indexterm" name="id2572579"></a><pre class="programlisting">extern const guint libxfce4util_micro_version;
125
<div class="refsect2" lang="en">
126
<a name="id2572594"></a><h3>
127
<a name="LIBXFCE4UTIL-MAJOR-VERSION:CAPS"></a>LIBXFCE4UTIL_MAJOR_VERSION</h3>
128
<a class="indexterm" name="id2572607"></a><pre class="programlisting">#define LIBXFCE4UTIL_MAJOR_VERSION 4
131
The major version number of the libxfce4util.
135
<div class="refsect2" lang="en">
136
<a name="id2572623"></a><h3>
137
<a name="LIBXFCE4UTIL-MINOR-VERSION:CAPS"></a>LIBXFCE4UTIL_MINOR_VERSION</h3>
138
<a class="indexterm" name="id2572636"></a><pre class="programlisting">#define LIBXFCE4UTIL_MINOR_VERSION 4
141
The minor version number of the libxfce4util.
145
<div class="refsect2" lang="en">
146
<a name="id2572652"></a><h3>
147
<a name="LIBXFCE4UTIL-MICRO-VERSION:CAPS"></a>LIBXFCE4UTIL_MICRO_VERSION</h3>
148
<a class="indexterm" name="id2572665"></a><pre class="programlisting">#define LIBXFCE4UTIL_MICRO_VERSION 2
151
The micro version number of the libxfce4util.
155
<div class="refsect2" lang="en">
156
<a name="id2572682"></a><h3>
157
<a name="LIBXFCE4UTIL-CHECK-VERSION:CAPS"></a>LIBXFCE4UTIL_CHECK_VERSION()</h3>
158
<a class="indexterm" name="id2572694"></a><pre class="programlisting">#define LIBXFCE4UTIL_CHECK_VERSION(major,minor,micro)</pre>
160
Checks the version of the libxfce4util library. It returns TRUE if the
161
libxfce4util library is the same or newer than the given version.
163
<div class="example">
164
<a name="id2572712"></a><p class="title"><b>Example 1. Checking the version of the libxfce4util library</b></p>
165
<div class="example-contents"><pre class="programlisting">
166
if (!LIBXFCE4UTIL_CHECK_VERSION (4, 1, 6))
167
g_error ("libxfce4util version 4.1.6 or above is required.");
170
<p><br class="example-break">
172
<div class="variablelist"><table border="0">
173
<col align="left" valign="top">
176
<td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
177
<td>the major version number.
181
<td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
182
<td>the minor version number.
186
<td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
187
<td>the micro version number.
196
<div class="refsect1" lang="en">
197
<a name="id2572775"></a><h2>See Also</h2>
199
<a class="ulink" href="http://developer.gnome.org/doc/API/2.0/glib/glib-Standard-Macros.html" target="_top">GLib Standard Macros</a>