From 70eb88e830e6163571e68eed10988708291c6d8a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 26 Sep 2008 16:55:50 +0000 Subject: fix banners displaying titles with "&" (eg: german & chinese) (reported on cooker-i18n@) --- NEWS | 2 ++ control-center | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0706c8d8..15de05d2 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- fix banners displaying titles with "&" + Version 11.7 - 26 September 2008, Thierry Vignaud - RTL languages fixes diff --git a/control-center b/control-center index 8284b78d..8ea9e167 100755 --- a/control-center +++ b/control-center @@ -894,6 +894,7 @@ foreach (@tree) { $string .= "\n"; } + my $text_orig = $text; # b/c we use Pango text markup language, we've to protect '&' caracter: $text =~ s/&/&/g; $page_count++; @@ -914,7 +915,7 @@ foreach (@tree) { }, ); - add2notebook($banner_notebook, "", Gtk2::Banner->new($icon, $text)); + add2notebook($banner_notebook, "", Gtk2::Banner->new($icon, $text_orig)); } } -- cgit v1.2.1