summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorJulian Sparber <julian@sparber.net>2019-07-09 10:27:39 +0200
committerJulian Sparber <julian@sparber.net>2019-07-29 19:42:49 +0200
commit8bcb75001ad5c8b0be1ae200fc1b77e198b5155c (patch)
treeeb1c96b9d766bd1911cd00a58ce5089088952e8c /vapi
parent19ad1fe584d2e10f6bc7ef8479529e02c4284089 (diff)
downloadgnome-contacts-8bcb75001ad5c8b0be1ae200fc1b77e198b5155c.tar.gz
AvatarDialog: fix #138 crash when taking a webcam picture
Since get cheese_widget_get_camera () and get_video_area () are not defined static they are are exported but we don't have the function signature, therefore this adds the header file with the function signatures.
Diffstat (limited to 'vapi')
-rw-r--r--vapi/cheese.vapi5
1 files changed, 3 insertions, 2 deletions
diff --git a/vapi/cheese.vapi b/vapi/cheese.vapi
index 46f95de..1faa347 100644
--- a/vapi/cheese.vapi
+++ b/vapi/cheese.vapi
@@ -24,12 +24,13 @@ namespace Cheese {
READY,
ERROR
}
- [CCode (cheader_filename = "cheese/cheese-widget.h")]
+ [CCode (cheader_filename = "cheese-widget.h")]
public class Widget : Gtk.Widget {
[CCode (has_construct_function = false, type = "CheeseWidget*")]
public Widget ();
public WidgetState state { get; }
- public unowned GLib.Object get_camera ();
+ public unowned GLib.Object get_camera ();
+ public unowned Gtk.Widget get_video_area ();
}
[CCode (cheader_filename = "cheese/cheese-camera.h")]
public class Camera : GLib.Object {