[libpeas] Fix building the peas-demo vala plugin example.



commit 10ccabf48f8729d25463a0679cb207ef60f70c97
Author: Steve FrÃcinaux <code istique net>
Date:   Sat Nov 19 20:58:02 2011 +0100

    Fix building the peas-demo vala plugin example.
    
    Support for Vala classes implementing abstract properties was broken
    and fixed after the vala 0.14 release.

 configure.ac                                       |    2 +-
 .../valahello/peasdemo-vala-hello-plugin.vala      |   34 ++++++++++++++-----
 2 files changed, 26 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a25a1c0..4bea3ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -398,7 +398,7 @@ AC_DEFUN([CHECK_VALAC],
          [AC_MSG_RESULT([no])])])])
 ])
 
-VALA_REQUIRED=0.11.1
+VALA_REQUIRED=0.14.0.22
 
 AC_ARG_ENABLE([vala],
 	      AS_HELP_STRING([--enable-vala],[Enable Vala support]),
diff --git a/peas-demo/plugins/valahello/peasdemo-vala-hello-plugin.vala b/peas-demo/plugins/valahello/peasdemo-vala-hello-plugin.vala
index 7b1906a..3797d51 100644
--- a/peas-demo/plugins/valahello/peasdemo-vala-hello-plugin.vala
+++ b/peas-demo/plugins/valahello/peasdemo-vala-hello-plugin.vala
@@ -1,11 +1,31 @@
+/*
+ * Copyright (c) 2010 Abderrahim Kitouni
+ * Copyright (c) 2011 Steve FrÃcinaux
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
+ */
+
+using GLib;
+using Gtk;
+using Peas;
+using PeasGtk;
+
 namespace PeasDemo {
   public class ValaHelloPlugin : Peas.ExtensionBase, Peas.Activatable {
     private Gtk.Widget label;
-    public Object object { get; construct; }
-
-    public ValaHelloPlugin () {
-      Object ();
-    }
+    public GLib.Object object { owned get; construct; }
 
     public void activate () {
       var window = object as Gtk.Window;
@@ -28,10 +48,6 @@ namespace PeasDemo {
   }
 
   public class ValaPluginConfig : Peas.ExtensionBase, PeasGtk.Configurable {
-    public ValaPluginConfig () {
-      Object ();
-    }
-
     public Gtk.Widget create_configure_widget () {
       string text = "This is a configuration dialog for the ValaHello plugin.";
       return new Gtk.Label (text);



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