[cheese] CheeseWindow: Connect to the correct CheeseCamera signal.



commit 79a7c915132efbd776b58bfaaf8d4958e8f2ac4f
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Feb 25 13:22:35 2011 +0100

    CheeseWindow: Connect to the correct CheeseCamera signal.
    
    * src/cheese-window.vala: Connect to state-flags-changed, not
    state-changed, which does not exist and which caused a runtime warning.
    * src/vapi/cheese-common.vapi: Correct the signal name here by hand,
    because I do not know how to properly regenerate this file.
    Presumably the generator used the (previously incorrect) default
    signal handler name to guess the name of the signal.
    
    For me, this allows us to actually respond when the camera device
    becomes ready, so I can actually take a picture.

 src/cheese-window.vala      |    2 +-
 src/vapi/cheese-common.vapi |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index e324a07..acce92d 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -1277,7 +1277,7 @@ public class Cheese.MainWindow : Gtk.Window
     if (value != 1.0)
       camera.set_balance_property ("saturation", value);
 
-    camera.state_changed.connect (camera_state_changed);
+    camera.state_flags_changed.connect (camera_state_changed);
     camera.play ();
   }
 }
diff --git a/src/vapi/cheese-common.vapi b/src/vapi/cheese-common.vapi
index ecb8ccf..d5d8bf2 100644
--- a/src/vapi/cheese-common.vapi
+++ b/src/vapi/cheese-common.vapi
@@ -56,7 +56,7 @@ namespace Cheese
     public virtual signal void photo_saved ();
     public virtual signal void photo_taken (Gdk.Pixbuf pixbuf);
     public virtual signal void video_saved ();
-    public virtual signal void state_changed (Gst.State new_state);
+    public virtual signal void state_flags_changed (Gst.State new_state);
   }
   [CCode (cheader_filename = "cheese-camera-device.h")]
   public class CameraDevice : GLib.Object, GLib.Initable



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