[cheese: 12/13] Avoid Vala warning about copying delegates



commit e75b9f6fa110dd22c801931bae0e99192cca199f
Author: David King <amigadave amigadave com>
Date:   Sat Apr 20 22:32:09 2013 +0100

    Avoid Vala warning about copying delegates
    
    Mark the variable in which CountdownCallback is stored as unowned, as it
    is simply a pointer to the callback.

 src/cheese-countdown.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/cheese-countdown.vala b/src/cheese-countdown.vala
index a7c6ffe..36d77f1 100644
--- a/src/cheese-countdown.vala
+++ b/src/cheese-countdown.vala
@@ -23,7 +23,7 @@ internal class Cheese.Countdown : GLib.Object
 {
   public delegate void CountdownCallback ();
   private Clutter.Text countdown_actor;
-  private CountdownCallback completed_callback;
+  private unowned CountdownCallback completed_callback;
   private int current_value = 0;
   private GLib.Settings settings;
   public bool running;


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