]> Pileus Git - ~andy/gtk/commit
Allow checking for GDK backends
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 16 Feb 2011 15:53:20 +0000 (15:53 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 16 Feb 2011 18:46:19 +0000 (18:46 +0000)
commit32298832ed70d5ac7836d46de3df0049b37a3eec
tree7c358462506f8bf9870e6efdadde47e1ab1f87a1
parent68d176d80bf148f7a391dbc73fb0c9ee4111fa9f
Allow checking for GDK backends

Now that a single shared object can contain multiple backends we also
need to provide a simple way for third party code to verify that the
copy of GDK they are linking to supports their backend.

The simplest way to verify is an m4 macro, GTK_CHECK_BACKEND(), shipped
with the gtk+ m4 macros.

The usage is pretty basic:

  GTK_CHECK_BACKEND([x11], [gtk_has_x11=yes], [gtk_has_x11=no])
  AM_CONDITIONAL(BUILD_X11_CODE, test "x$gtk_has_x11" = "xno")

https://bugzilla.gnome.org/show_bug.cgi?id=642479
docs/reference/gtk/compiling.sgml
docs/reference/gtk/migrating-2to3.xml
m4macros/gtk-3.0.m4