Re: [Vala] Problem creating VAPI file for XcbIcccm (extra data)
- From: rastersoft <raster rastersoft com>
- To: vala-list gnome org
- Subject: Re: [Vala] Problem creating VAPI file for XcbIcccm (extra data)
- Date: Fri, 13 Dec 2013 14:31:16 +0100
That was the solution: mark the fields as unowned. Thanks!!!
El 13/12/13 09:18, Luca Bruno escribió:
On 12/12/2013 23:52, rastersoft wrote:
BTW: The whole VAPI file is this:
using Xcb;
[CCode (lower_case_cprefix = "xcb_icccm_", cheader_filename =
"xcb/xcb_icccm.h")]
namespace XcbIcccm {
public Xcb.GetPropertyCookie get_wm_class(Connection conn, Window
window);
public Xcb.GetPropertyCookie get_wm_class_unchecked(Connection
conn, Window window);
[CCode (cname = "xcb_icccm_get_wm_class_reply_t", has_type_id =
false)]
public struct WmClassFromReply {
string instance_name;
string class_name;
}
[CCode (cname = "xcb_icccm_get_wm_class_from_reply")]
public void get_wm_class_from_reply(out WmClassFromReply reply,
GetPropertyReply input);
}
If that struct should be destroyed, then its fields should not be
destroyed as well. Use the unowned keyword on the fields.
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
--
Nos leemos
RASTER (Linux user #228804)
raster rastersoft com http://www.rastersoft.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]