summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-06-21 19:46:41 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-06-21 19:46:41 +0000
commit66c0f118a03335f52393abff3f3a3977ad52052a (patch)
treee0edc506efe5da9c876eb26007afa4b4ba73c4d3
parentc8decd09fdc98d818aacfe8c723b8df78c94093c (diff)
downloadpango-66c0f118a03335f52393abff3f3a3977ad52052a.tar.gz
Initialize state->lang from context->language if not otherwise set.
Mon Jun 21 15:26:44 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.c (update_attr_iterator): Initialize state->lang from context->language if not otherwise set. Without doing this, the default language tag was, not suprisingly, having no effect! (#137334, Frederic Zhang) * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix typo in doc comment.
-rw-r--r--ChangeLog10
-rw-r--r--ChangeLog.pre-1-1010
-rw-r--r--ChangeLog.pre-1-610
-rw-r--r--ChangeLog.pre-1-810
-rw-r--r--pango/pango-attributes.c2
-rw-r--r--pango/pango-context.c3
6 files changed, 44 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 60621e98..8e8ffe51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Mon Jun 21 15:26:44 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pango-context.c (update_attr_iterator): Initialize
+ state->lang from context->language if not otherwise set.
+ Without doing this, the default language tag was, not
+ suprisingly, having no effect! (#137334, Frederic Zhang)
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font):
+ Fix typo in doc comment.
+
Mon Jun 21 14:42:02 2004 Owen Taylor <otaylor@redhat.com>
* docs/pango_markup.sgml: use x-large instead of 100
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index 60621e98..8e8ffe51 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,13 @@
+Mon Jun 21 15:26:44 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pango-context.c (update_attr_iterator): Initialize
+ state->lang from context->language if not otherwise set.
+ Without doing this, the default language tag was, not
+ suprisingly, having no effect! (#137334, Frederic Zhang)
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font):
+ Fix typo in doc comment.
+
Mon Jun 21 14:42:02 2004 Owen Taylor <otaylor@redhat.com>
* docs/pango_markup.sgml: use x-large instead of 100
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index 60621e98..8e8ffe51 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,13 @@
+Mon Jun 21 15:26:44 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pango-context.c (update_attr_iterator): Initialize
+ state->lang from context->language if not otherwise set.
+ Without doing this, the default language tag was, not
+ suprisingly, having no effect! (#137334, Frederic Zhang)
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font):
+ Fix typo in doc comment.
+
Mon Jun 21 14:42:02 2004 Owen Taylor <otaylor@redhat.com>
* docs/pango_markup.sgml: use x-large instead of 100
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index 60621e98..8e8ffe51 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,13 @@
+Mon Jun 21 15:26:44 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pango-context.c (update_attr_iterator): Initialize
+ state->lang from context->language if not otherwise set.
+ Without doing this, the default language tag was, not
+ suprisingly, having no effect! (#137334, Frederic Zhang)
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font):
+ Fix typo in doc comment.
+
Mon Jun 21 14:42:02 2004 Owen Taylor <otaylor@redhat.com>
* docs/pango_markup.sgml: use x-large instead of 100
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index a8801948..cd0af8bd 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1406,7 +1406,7 @@ pango_attr_iterator_get (PangoAttrIterator *iterator,
* so if you plan to keep it around, you must call:
* <literal>pango_font_description_set_family (desc, pango_font_description_get_family (desc))</literal>.
* @language: if non-%NULL, location to store language tag for item, or %NULL
- * if non is found.
+ * if none is found.
* @extra_attrs: if non-%NULL, location in which to store a list of non-font
* attributes at the the current position; only the highest priority
* value of each attribute will be added to this list. In order
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 6178529a..54a3976f 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -570,6 +570,9 @@ update_attr_iterator (ItemizeState *state)
&state->lang, &state->extra_attrs);
state->copy_extra_attrs = FALSE;
+ if (!state->lang)
+ state->lang = state->context->language;
+
fallback = find_attribute (state->extra_attrs, PANGO_ATTR_FALLBACK);
state->enable_fallback = (fallback == NULL || ((PangoAttrInt *)fallback)->value);