[cheese] Fix cheese_camera_get_video_formats() in VAPI
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Fix cheese_camera_get_video_formats() in VAPI
- Date: Fri, 15 Nov 2013 15:46:10 +0000 (UTC)
commit 66c5434635caad7e8e3e6e04342f4de052566d0f
Author: David King <amigadave amigadave com>
Date: Fri Nov 15 14:06:45 2013 +0000
Fix cheese_camera_get_video_formats() in VAPI
src/cheese-preferences.vala | 2 +-
src/cheese-window.vala | 2 +-
src/vapi/cheese-common.vapi | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/cheese-preferences.vala b/src/cheese-preferences.vala
index f1e769e..679e21e 100644
--- a/src/cheese-preferences.vala
+++ b/src/cheese-preferences.vala
@@ -116,7 +116,7 @@ public PreferencesDialog (Cheese.Camera camera)
*/
private void setup_resolutions_for_device (Cheese.CameraDevice device)
{
- unowned List<VideoFormat> formats = device.get_format_list ();
+ var formats = device.get_format_list ();
ListStore resolution_model = new ListStore (2, typeof (string),
typeof (Cheese.VideoFormat));
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index d000226..0a14856 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -410,7 +410,7 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
if (camera == null)
return;
- unowned GLib.List<VideoFormat> formats = camera.get_video_formats ();
+ var formats = camera.get_video_formats ();
if (formats == null)
return;
diff --git a/src/vapi/cheese-common.vapi b/src/vapi/cheese-common.vapi
index 5f79877..804cdda 100644
--- a/src/vapi/cheese-common.vapi
+++ b/src/vapi/cheese-common.vapi
@@ -39,7 +39,7 @@ namespace Cheese
public unowned Cheese.VideoFormat get_current_video_format ();
public int get_num_camera_devices ();
public unowned Cheese.CameraDevice get_selected_device ();
- public unowned GLib.List get_video_formats ();
+ public GLib.List<unowned Cheese.VideoFormat> get_video_formats ();
public bool has_camera ();
public void play ();
public void set_balance_property (string property, double value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]