diff --git a/gtkhtml-3.23.3-large-mail-flicker.patch b/gtkhtml-3.23.3-large-mail-flicker.patch new file mode 100644 index 0000000..708c2e4 --- /dev/null +++ b/gtkhtml-3.23.3-large-mail-flicker.patch @@ -0,0 +1,29 @@ +diff -up gtkhtml-3.23.2/gtkhtml/htmltext.c.large-mail-flicker gtkhtml-3.23.2/gtkhtml/htmltext.c +--- gtkhtml-3.23.2/gtkhtml/htmltext.c.large-mail-flicker 2008-04-11 07:14:42.000000000 -0400 ++++ gtkhtml-3.23.2/gtkhtml/htmltext.c 2008-05-13 20:50:29.000000000 -0400 +@@ -1196,13 +1196,8 @@ html_text_prepare_attrs (HTMLText *text, + HTMLClueFlow *flow = NULL; + HTMLEngine *e = NULL; + PangoAttribute *attr; +- PangoDirection dir,org_dir; + + attrs = pango_attr_list_new (); +- org_dir = pango_context_get_base_dir (painter->pango_context); +- dir = html_text_get_pango_direction (text); +- if (org_dir != dir) +- pango_context_set_base_dir (painter->pango_context, dir); + + + if (HTML_OBJECT (text)->parent && HTML_IS_CLUEFLOW (HTML_OBJECT (text)->parent)) +@@ -1213,11 +1208,6 @@ html_text_prepare_attrs (HTMLText *text, + + if (flow && e) { + html_text_add_cite_color (attrs, text, flow, e); +- if (org_dir != dir) { +- html_engine_freeze (e); +- flow->dir = html_text_direction_pango_to_html (dir); +- html_engine_thaw(e); +- } + } + + diff --git a/gtkhtml3.spec b/gtkhtml3.spec index 66ae954..423eaa4 100644 --- a/gtkhtml3.spec +++ b/gtkhtml3.spec @@ -10,7 +10,7 @@ Name: gtkhtml3 Version: 3.23.2 -Release: 3%{?dist} +Release: 4%{?dist} License: LGPL/GPL Group: System Environment/Libraries Summary: gtkhtml library @@ -22,6 +22,9 @@ BuildRoot: %{_tmppath}/gtkhtml-%{version}-root # Remove gnome-common macros from configure.in. Patch1: gtkhtml-3.13.1-no-gnome-common.patch +# GNOME bug #524338 (causes a minor i18n regression) +Patch2: gtkhtml-3.23.3-large-mail-flicker.patch + ### Dependencies ### Requires: gnome-icon-theme >= %{gnome_icon_theme_version} @@ -59,6 +62,7 @@ Libraries and include files that can be used to develop GtkHTML applications. %prep %setup -q -n gtkhtml-%{version} %patch1 -p1 -b .no-gnome-common +%patch2 -p1 -b .large-mail-flicker %build @@ -122,6 +126,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/*.pc %changelog +* Tue May 13 2008 Matthew Barnes - 3.23.2-4.fc10 +- Add patch for GNOME bug #524338 (mail flickers when rendering). + * Mon May 12 2008 Matthew Barnes - 3.23.2-3.fc10 - Add iso-codes-devel requirement to devel subpackage.