From abf23432c4c7dc289e10f338a4b323e7ccd3cd43 Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Thu, 27 Jun 2013 11:50:53 -0700 Subject: [PATCH] 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(+) create mode 100644 backends/telepathy/lib/tpf-namespace.vala 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 . + * + * Authors: + * Travis Reitter + */ + +/* + * 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 +{ +} -- 2.7.4