libgconf-bridge r19 - trunk



Author: jbaayen
Date: Wed Jul  2 19:47:11 2008
New Revision: 19
URL: http://svn.gnome.org/viewvc/libgconf-bridge?rev=19&view=rev

Log:
2008-07-02  Jorn Baayen  <jorn openedhand com>

	* Makefile.am:
	* configure.ac:
	* libgconf-bridge.vapi:

	Add vala bindings.



Added:
   trunk/libgconf-bridge.vapi
Modified:
   trunk/ChangeLog
   trunk/Makefile.am
   trunk/configure.ac

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am	(original)
+++ trunk/Makefile.am	Wed Jul  2 19:47:11 2008
@@ -3,7 +3,12 @@
 pcdata_DATA= libgconf-bridge.pc
 pcdatadir = $(libdir)/pkgconfig
 
-EXTRA_DIST = $(pcdata_DATA)
+if WITH_VALA
+vapidir = $(VAPIDIR)
+vapi_DATA = libgconf-bridge.vapi
+endif
+
+EXTRA_DIST = $(pcdata_DATA) libgconf-bridge.vapi
 
 # Extra clean files so that maintainer-clean removes *everything*
 MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.sub configure depcomp install-sh ltmain.sh Makefile.in missing config.h.in

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Wed Jul  2 19:47:11 2008
@@ -29,6 +29,15 @@
         AC_MSG_RESULT(no)
 fi
 
+PKG_CHECK_MODULES(VALA, [vala-1.0 >= 0.3.1], have_vala=yes, have_vala=no)
+
+AM_CONDITIONAL(WITH_VALA, [test "x$have_vala" = "xyes"])
+
+if test "x$have_vala" = "xyes"; then
+    VAPIDIR=`pkg-config --variable=vapidir vala-1.0`
+    AC_SUBST(VAPIDIR)
+fi
+
 GETTEXT_PACKAGE=libgconf-bridge
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], 

Added: trunk/libgconf-bridge.vapi
==============================================================================
--- (empty file)
+++ trunk/libgconf-bridge.vapi	Wed Jul  2 19:47:11 2008
@@ -0,0 +1,23 @@
+/* libgconf-bridge.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "GConfBridge", lower_case_cprefix = "gconf_bridge_")]
+namespace GConfBridge {
+	[Compact]
+	[CCode (cheader_filename = "libgconf-bridge.h")]
+	public class  {
+		[CCode (cname = "gconf_bridge_bind_property_full")]
+		public uint bind_property_full (string key, GLib.Object object, string prop, bool delayed_sync=false);
+		[CCode (cname = "gconf_bridge_bind_string_list_store")]
+		public uint bind_string_list_store (string key, Gtk.ListStore list_store);
+		[CCode (cname = "gconf_bridge_bind_window")]
+		public uint bind_window (string key_prefix, Gtk.Window window, bool bind_size, bool bind_pos);
+		[CCode (cname = "gconf_bridge_get")]
+		public static weak GConfBridge. get ();
+		[CCode (cname = "gconf_bridge_get_client")]
+		public weak GConf.Client get_client ();
+		[CCode (cname = "gconf_bridge_install_default_error_handler")]
+		public static void install_default_error_handler ();
+		[CCode (cname = "gconf_bridge_unbind")]
+		public void unbind (uint binding_id);
+	}
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]