summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-10-24 05:43:57 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-10-24 05:43:57 +0000
commit4c0ae27426d686e6bd9365b4d0f02d444e6cf667 (patch)
tree2852ed499c62068218f932306faa27c4fb36a9cc /pango/pango-attributes.h
parentb178da14dabd63937c3867f6d5cbb29f7a31d69f (diff)
downloadpango-4c0ae27426d686e6bd9365b4d0f02d444e6cf667.tar.gz
Bug 469641 – Initialize attribute start/end to [0..MAXUINT]
2007-10-24 Behdad Esfahbod <behdad@gnome.org> Bug 469641 – Initialize attribute start/end to [0..MAXUINT] * pango/pango-attributes.h: * pango/pango-attributes.c: New public API: pango_attribute_init() * pango/pango-attributes.c: (pango_attr_string_new), (pango_attr_language_new), (pango_attr_color_new), (pango_attr_int_new), (pango_attr_float_new), (pango_attr_size_new_internal), (pango_attr_font_desc_new), (pango_attr_shape_new_with_data): Initialize attributes using pango_attribute_init(). * pango/pango.def: * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/text-attributes.sgml: Update. svn path=/trunk/; revision=2458
Diffstat (limited to 'pango/pango-attributes.h')
-rw-r--r--pango/pango-attributes.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
index 98ee9868..ad7a0861 100644
--- a/pango/pango-attributes.h
+++ b/pango/pango-attributes.h
@@ -176,12 +176,14 @@ struct _PangoAttrFontDesc
PangoFontDescription *desc;
};
-PangoAttrType pango_attr_type_register (const gchar *name);
-
-PangoAttribute * pango_attribute_copy (const PangoAttribute *attr);
-void pango_attribute_destroy (PangoAttribute *attr);
-gboolean pango_attribute_equal (const PangoAttribute *attr1,
- const PangoAttribute *attr2) G_GNUC_PURE;
+PangoAttrType pango_attr_type_register (const gchar *name);
+
+void pango_attribute_init (PangoAttribute *attr,
+ const PangoAttrClass *klass);
+PangoAttribute * pango_attribute_copy (const PangoAttribute *attr);
+void pango_attribute_destroy (PangoAttribute *attr);
+gboolean pango_attribute_equal (const PangoAttribute *attr1,
+ const PangoAttribute *attr2) G_GNUC_PURE;
PangoAttribute *pango_attr_language_new (PangoLanguage *language);
PangoAttribute *pango_attr_family_new (const char *family);