diff options
author | Naofumi Yasufuku <naofumi@yasufuku.net> | 2003-06-06 00:30:13 +0000 |
---|---|---|
committer | Johan Dahlin <zilch@src.gnome.org> | 2003-06-06 00:30:13 +0000 |
commit | fe104493227b1ccbc02c836fb2c50d01acc8c0b3 (patch) | |
tree | 83ae10044054703fdcadc6bb95a624bca813d655 /pango.defs | |
parent | 355e3679a124f2df3950eb8d4f9fed98075f5009 (diff) | |
download | pygtk-fe104493227b1ccbc02c836fb2c50d01acc8c0b3.tar.gz |
Allow language parameter to be omitted to get the metrics for the entire
2003-04-12 Naofumi Yasufuku <naofumi@yasufuku.net>
* pango.defs (pango_context_get_metrics): Allow language parameter
to be omitted to get the metrics for the entire font.
(pango_itemize): Allow cached_iter parameter to be omitted.
(pango_font_description_better_match): Allow old_match parameter
to be omitted to determine if new_match is a match at all.
(pango_font_get_metrics): Allow language parameter to be omitted
to get the metrics for the entire font.
(pango_layout_set_font_description): Allow 'None' desc parameter
to unset the current font description.
(pango_layout_set_tabs): Allow 'None' tabs parameter to reinstate
the default tabs.
(pango_language_matches): Changed to function. Allow 'None'
language parameter which matches nothing but '*'.
Fixes #109848
Diffstat (limited to 'pango.defs')
-rw-r--r-- | pango.defs | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -412,7 +412,7 @@ (caller-owns-return #t) (parameters '("const-PangoFontDescription*" "desc") - '("PangoLanguage*" "language") + '("PangoLanguage*" "language" (null-ok) (default "NULL")) ) ) @@ -470,7 +470,7 @@ '("int" "start_index") '("int" "length") '("PangoAttrList*" "attrs") - '("PangoAttrIterator*" "cached_iter") + '("PangoAttrIterator*" "cached_iter" (null-ok) (default "NULL")) ) ) @@ -735,7 +735,7 @@ (c-name "pango_font_description_better_match") (return-type "gboolean") (parameters - '("const-PangoFontDescription*" "old_match") + '("const-PangoFontDescription*" "old_match" (null-ok) (default "NULL")) '("const-PangoFontDescription*" "new_match") ) ) @@ -881,7 +881,7 @@ (c-name "pango_font_get_metrics") (return-type "PangoFontMetrics*") (parameters - '("PangoLanguage*" "language") + '("PangoLanguage*" "language" (null-ok) (default "NULL")) ) ) @@ -1157,7 +1157,7 @@ (c-name "pango_layout_set_font_description") (return-type "none") (parameters - '("const-PangoFontDescription*" "desc") + '("const-PangoFontDescription*" "desc" (null-ok)) ) ) @@ -1256,7 +1256,7 @@ (c-name "pango_layout_set_tabs") (return-type "none") (parameters - '("PangoTabArray*" "tabs") + '("PangoTabArray*" "tabs" (null-ok)) ) ) @@ -1704,11 +1704,11 @@ ) ) -(define-method matches - (of-object "PangoLanguage") +(define-function pango_language_matches (c-name "pango_language_matches") (return-type "gboolean") (parameters + '("PangoLanguage*" "language" (null-ok)) '("const-char*" "range_list") ) ) |