[vala] pango: set free_function on Attribute to pango_attribute_destroy
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] pango: set free_function on Attribute to pango_attribute_destroy
- Date: Thu, 16 Aug 2012 19:13:36 +0000 (UTC)
commit 2e8088422b98456cbd60b06a4bf9fc199ad78d2d
Author: Evan Nemerson <evan coeus-group com>
Date: Thu Aug 16 12:09:52 2012 -0700
pango: set free_function on Attribute to pango_attribute_destroy
Fixes bug 682006.
vapi/metadata/Pango-1.0-custom.vala | 5 +++++
vapi/pango.vapi | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/vapi/metadata/Pango-1.0-custom.vala b/vapi/metadata/Pango-1.0-custom.vala
index b620352..d76376c 100644
--- a/vapi/metadata/Pango-1.0-custom.vala
+++ b/vapi/metadata/Pango-1.0-custom.vala
@@ -46,6 +46,11 @@ namespace Pango {
public AttrSize (int size);
}
+ [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
+ [Compact]
+ public class Attribute {
+ }
+
[CCode (cheader_filename = "pango/pango.h", ref_function = "pango_coverage_ref", unref_function = "pango_coverage_unref")]
[Compact]
public class Coverage {
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index 9e1c65e..d245976 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -107,7 +107,7 @@ namespace Pango {
public class AttrString : Pango.Attribute {
public weak string value;
}
- [CCode (cheader_filename = "pango/pango.h")]
+ [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
[Compact]
public class Attribute {
public uint end_index;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]