diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-02-17 09:33:07 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-02-17 09:33:07 +0000 |
commit | 64934a762311630e2a9146ee1c8ddab3c040d24d (patch) | |
tree | 9a3bd5a05c86f45059152c4df135c16955b80dd0 /docs | |
parent | a88a1fc8324eee0cfd809674c68b8cb846e14702 (diff) | |
download | gtk+-64934a762311630e2a9146ee1c8ddab3c040d24d.tar.gz |
m4: Fix GTK_CHECK_BACKEND() to also check for a minimum version
This should make the macro slightly more useful.
Update the documentation mentioning the macro as well.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gtk/compiling.sgml | 7 | ||||
-rw-r--r-- | docs/reference/gtk/migrating-2to3.xml | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/reference/gtk/compiling.sgml b/docs/reference/gtk/compiling.sgml index 6f593a0d60..b8a080d3bf 100644 --- a/docs/reference/gtk/compiling.sgml +++ b/docs/reference/gtk/compiling.sgml @@ -88,10 +88,11 @@ line option <literal>-DGTK_MULTIDEVICE_SAFE=1</literal>. list of modules to be checked along with GTK+.</listitem> </varlistentry> <varlistentry> - <term>GTK_CHECK_BACKEND([backend-name], [if-found], [if-not-found])</term> + <term>GTK_CHECK_BACKEND([backend-name], [minimum-version], [if-found], [if-not-found])</term> <listitem>This macro should be used to check if a specific backend - is supported by GTK+. The <emphasis>if-found</emphasis> and the - <emphasis>if-not-found</emphasis> arguments are optional.</listitem> + is supported by GTK+. The <emphasis>minimum-version</emphasis>, + <emphasis>if-found</emphasis> and <emphasis>if-not-found</emphasis> + arguments are optional.</listitem> </varlistentry> </variablelist> </para> diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml index 8be399639d..0c3a2e43a9 100644 --- a/docs/reference/gtk/migrating-2to3.xml +++ b/docs/reference/gtk/migrating-2to3.xml @@ -900,7 +900,7 @@ AM_CONDITIONAL(BUILD_X11, test `$PKG_CONFIG --variable=target gtk+-2.0` = "x11") </programlisting></informalexample> then you should now use the M4 macro provided by GTK+ itself: <informalexample><programlisting> -GTK_CHECK_BACKEND([x11], [have_x11=yes], [have_x11=no]) +GTK_CHECK_BACKEND([x11], [3.0.2], [have_x11=yes], [have_x11=no]) AM_CONDITIONAL(BUILD_x11, [test "x$have_x11" = "xyes"]) </programlisting></informalexample> </para> |