[folks] Add namespace and version to libfolks-telepathy GIR



commit abf23432c4c7dc289e10f338a4b323e7ccd3cd43
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Thu Jun 27 11:50:53 2013 -0700

    Add namespace and version to libfolks-telepathy GIR
    
    Without this in place, JavaScript (and probably other introspected) code
    calling Vala client code can end up mysteriously hitting this error:
    
    CRITICAL **: g_irepository_find_by_name: assertion 'typelib != NULL' failed
    
    because it fails to locate the proper typelib.
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703402

 backends/telepathy/lib/Makefile.am        |    1 +
 backends/telepathy/lib/tpf-namespace.vala |   30 +++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/backends/telepathy/lib/Makefile.am b/backends/telepathy/lib/Makefile.am
index 65e7a87..53152f0 100644
--- a/backends/telepathy/lib/Makefile.am
+++ b/backends/telepathy/lib/Makefile.am
@@ -81,6 +81,7 @@ pkgconfig_DATA = $(pkgconfig_in:.in=)
 $(srcdir)/libfolks_telepathy_la_vala.stamp: tp-lowlevel.vapi
 
 folks_telepathy_valasources = \
+       tpf-namespace.vala \
        tpf-persona.vala \
        tpf-persona-store.vala \
        tpf-logger.vala \
diff --git a/backends/telepathy/lib/tpf-namespace.vala b/backends/telepathy/lib/tpf-namespace.vala
new file mode 100644
index 0000000..8ea25d3
--- /dev/null
+++ b/backends/telepathy/lib/tpf-namespace.vala
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2013 Collabora Ltd.
+ *
+ * This library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ *       Travis Reitter <travis reitter collabora co uk>
+ */
+
+/*
+ * This file serves as the representation for the FolksTelepathy namespace
+ * itself (mostly so that we can set its namespace and version attributes for
+ * GIR)
+ */
+
+[CCode (gir_namespace = "FolksTelepathy", gir_version = "0.6")]
+namespace Tpf
+{
+}


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