From c0b476c33f2d59641090d1ba741f4cd038bc320c Mon Sep 17 00:00:00 2001 From: Michal Hruby Date: Fri, 23 Sep 2011 17:46:27 +0200 Subject: Fix type_check_function for vala bindings --- bindings/vala/Makefile.am | 3 ++- bindings/vala/appindicator-0.1-custom.vala | 31 +++++++++++++++++++++++++++ bindings/vala/examples/indicator-example.vala | 1 + configure.ac | 2 +- 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 bindings/vala/appindicator-0.1-custom.vala diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am index f80b48c..3a6dd3e 100644 --- a/bindings/vala/Makefile.am +++ b/bindings/vala/Makefile.am @@ -25,9 +25,10 @@ $(vapiprefix).deps: $(vapiprefix).vapi: $(top_builddir)/src/AppIndicator$(VER)-0.1.gir \ $(top_builddir)/src/AppIndicator$(VER)-0.1.metadata \ + $(vapiprefix)-custom.vala \ $(vapiprefix).deps $(VALA_API_GEN) --library=$(vapiprefix) --girdir=$(srcdir)/src \ - $< + $< $(vapiprefix)-custom.vala CLEANFILES = $(vapi_DATA) diff --git a/bindings/vala/appindicator-0.1-custom.vala b/bindings/vala/appindicator-0.1-custom.vala new file mode 100644 index 0000000..96152a2 --- /dev/null +++ b/bindings/vala/appindicator-0.1-custom.vala @@ -0,0 +1,31 @@ +/* + Copyright (C) 2011 Canonical, Ltd. + + This program is free software: you can redistribute it and/or modify it + under the terms of either or both of the following licenses: + + 1) the GNU Lesser General Public License version 3, as published by the + Free Software Foundation; and/or + 2) the GNU Lesser General Public License version 2.1, as published by + the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranties of + MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR + PURPOSE. See the applicable version of the GNU Lesser General Public + License for more details. + + You should have received a copy of both the GNU Lesser General Public + License version 3 and version 2.1 along with this program. If not, see + + + Authored by Michal Hruby +*/ + +namespace AppIndicator { + [CCode (type_check_function = "IS_APP_INDICATOR")] + public class Indicator : GLib.Object { + } +} + +// vim:et:ai:cindent:ts=2 sts=2 sw=2: diff --git a/bindings/vala/examples/indicator-example.vala b/bindings/vala/examples/indicator-example.vala index 7bb1d7d..8feb4ba 100644 --- a/bindings/vala/examples/indicator-example.vala +++ b/bindings/vala/examples/indicator-example.vala @@ -34,6 +34,7 @@ public class IndicatorExample { var indicator = new Indicator(win.title, "indicator-messages", IndicatorCategory.APPLICATION_STATUS); + if (!(indicator is Indicator)) return -1; indicator.set_status(IndicatorStatus.ACTIVE); indicator.set_attention_icon("indicator-messages-new"); diff --git a/configure.ac b/configure.ac index 72bb7f6..7c6f979 100644 --- a/configure.ac +++ b/configure.ac @@ -97,7 +97,7 @@ AM_CONDITIONAL(HAVE_VAPIGEN, [test "x$VALA_API_GEN" != "x"]) # Vala Compiler support ########################### -AM_PROG_VALAC([0.11.0]) +AM_PROG_VALAC([0.14.0]) AM_CONDITIONAL(HAVE_VALAC, [test "x$VALAC" != "x"]) ########################### -- cgit v1.2.3 From 982603643a27c3e8086c35f4b3796a5bd78cbc30 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 28 Sep 2011 10:57:50 -0500 Subject: Bring along custom and grab from srcdir --- bindings/vala/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/vala/Makefile.am b/bindings/vala/Makefile.am index 3a6dd3e..65b980e 100644 --- a/bindings/vala/Makefile.am +++ b/bindings/vala/Makefile.am @@ -28,10 +28,13 @@ $(vapiprefix).vapi: $(top_builddir)/src/AppIndicator$(VER)-0.1.gir \ $(vapiprefix)-custom.vala \ $(vapiprefix).deps $(VALA_API_GEN) --library=$(vapiprefix) --girdir=$(srcdir)/src \ - $< $(vapiprefix)-custom.vala + $< $(srcdir)/$(vapiprefix)-custom.vala CLEANFILES = $(vapi_DATA) endif endif + +EXTRA_DIST = \ + appindicator-0.1-custom.vala -- cgit v1.2.3 From e527e648afc0545b5d49b9c6af1f82951c93c18a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 28 Sep 2011 10:57:58 -0500 Subject: 0.4.0 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7c6f979..6bf4a6d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_INIT([libappindicator], - [0.3.91], + [0.4.0], [http://bugs.launchpad.net/libappindicator], [libappindicator], [http://launchpad.net/libappindicator]) -- cgit v1.2.3