[totem] plugins: Fix Vala plugins for valac 0.14.0



commit 4632553c1e76e356876140ddc6973129048eeb91
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Oct 23 00:15:37 2011 +0100

    plugins: Fix Vala plugins for valac 0.14.0
    
    The Vala plugins were using incorrect overrides of an abstract property of
    Peas.Activatable which was causing compilation to fail with valac 0.14.0.
    
    This fixes that, and bumps our Vala dependency to 0.14.0 (since some quick
    testing with valac 0.12.x didn't work due to GIR parsing problems).
    
    Closes: bgo#662148

 configure.in                                       |    2 +-
 src/plugins/rotation/totem-rotation-plugin.vala    |    2 +-
 .../sample-vala/totem-sample-vala-plugin.vala      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.in b/configure.in
index 61bd151..2f934c3 100644
--- a/configure.in
+++ b/configure.in
@@ -47,7 +47,7 @@ GTK_REQS=2.99.3
 TOTEM_PLPARSER_REQS=2.32.4
 GNOMEICON_REQS=2.15.90
 DBUS_REQS=0.82
-VALA_REQS=0.12.1
+VALA_REQS=0.14.0
 PEAS_REQS=1.1.0
 PYTHON_REQS=2.3
 PYGOBJECT_REQS=2.90.3
diff --git a/src/plugins/rotation/totem-rotation-plugin.vala b/src/plugins/rotation/totem-rotation-plugin.vala
index 5a98a67..8ecfcd0 100644
--- a/src/plugins/rotation/totem-rotation-plugin.vala
+++ b/src/plugins/rotation/totem-rotation-plugin.vala
@@ -34,7 +34,7 @@ class RotationPlugin: GLib.Object, Peas.Activatable
         _90L = 3
     }
     private const int STATE_COUNT = 4;
-    public weak GLib.Object object { get; construct; }
+    public GLib.Object object { owned get; construct; }
     private weak Clutter.Actor video = null;
     private uint ui_id;
     private Gtk.ActionGroup action_group;
diff --git a/src/plugins/sample-vala/totem-sample-vala-plugin.vala b/src/plugins/sample-vala/totem-sample-vala-plugin.vala
index d7430a7..df568ed 100644
--- a/src/plugins/sample-vala/totem-sample-vala-plugin.vala
+++ b/src/plugins/sample-vala/totem-sample-vala-plugin.vala
@@ -2,7 +2,7 @@ using GLib;
 using Totem;
 
 class SampleValaPlugin: GLib.Object, Peas.Activatable {
-	public Totem.Object object {get; set;}
+	public GLib.Object object { owned get; construct; }
 
 	public void activate () {
 		print ("Hello world\n");



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