]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix pango_font_description_from_string binding and support implicit copies
authorJürg Billeter <j@bitron.ch>
Thu, 19 Feb 2009 11:49:03 +0000 (11:49 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 19 Feb 2009 11:49:03 +0000 (11:49 +0000)
2009-02-19  Jürg Billeter  <j@bitron.ch>

* vapi/packages/pango/:

Fix pango_font_description_from_string binding and support implicit
copies of PangoFontDescription

* vapi/pango.vapi: regenerated

svn path=/trunk/; revision=2453

ChangeLog
vapi/packages/pango/pango.metadata
vapi/pango.vapi

index 3f8dfc52e498c3017131950d7ceead1c0bc5d81d..96de7082475a76801a7dd667dd264ca8bf4e63b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-02-19  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/packages/pango/:
+
+       Fix pango_font_description_from_string binding and support implicit
+       copies of PangoFontDescription
+
+       * vapi/pango.vapi: regenerated
+
 2009-02-18  Jürg Billeter  <j@bitron.ch>
 
        * vala/Makefile.am:
index 51116a99b54d56fe58d71c2778ff100f3e27e5f1..f0ba761ca51a61c3c4d8c0ec69f19f93213ddee4 100644 (file)
@@ -7,6 +7,9 @@ pango_extents_to_pixels.nearest is_ref="1"
 pango_get_log_attrs.log_attrs is_array="1"
 pango_font_get_glyph_extents.ink_rect is_out="1"
 pango_font_get_glyph_extents.logical_rect is_out="1"
+# PangoFontDescription should be opaque value type
+PangoFontDescription is_immutable="1"
+pango_font_description_from_string transfer_ownership="1"
 pango_glyph_item_letter_space.log_attrs is_array="1"
 pango_glyph_string_extents.ink_rect is_out="1"
 pango_glyph_string_extents.logical_rect is_out="1"
index 24be8bb294ef14288b8d5a9ecdaaef5dca9c99ac..b37558cfa05f197cee72b34f5368596900fb24a9 100644 (file)
@@ -176,13 +176,14 @@ namespace Pango {
                public unowned Pango.FontMetrics get_metrics (Pango.Language language);
        }
        [Compact]
+       [Immutable]
        [CCode (copy_function = "pango_font_description_copy", type_id = "PANGO_TYPE_FONT_DESCRIPTION", cheader_filename = "pango/pango.h")]
        public class FontDescription {
                public bool better_match (Pango.FontDescription old_match, Pango.FontDescription new_match);
                public unowned Pango.FontDescription copy ();
                public unowned Pango.FontDescription copy_static ();
                public bool equal (Pango.FontDescription desc2);
-               public static unowned Pango.FontDescription from_string (string str);
+               public static Pango.FontDescription from_string (string str);
                public unowned string get_family ();
                public Pango.Gravity get_gravity ();
                public Pango.FontMask get_set_fields ();