diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-26 16:55:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-26 16:55:50 +0000 |
commit | 70eb88e830e6163571e68eed10988708291c6d8a (patch) | |
tree | 2c5253d974964141c56c50931999563bfedf6175 | |
parent | 5debf6f034fcdbd478dfe36e460b9ceed89495f0 (diff) | |
download | control-center-70eb88e830e6163571e68eed10988708291c6d8a.tar control-center-70eb88e830e6163571e68eed10988708291c6d8a.tar.gz control-center-70eb88e830e6163571e68eed10988708291c6d8a.tar.bz2 control-center-70eb88e830e6163571e68eed10988708291c6d8a.tar.xz control-center-70eb88e830e6163571e68eed10988708291c6d8a.zip |
fix banners displaying titles with "&" (eg: german & chinese)
(reported on cooker-i18n@)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | control-center | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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 .= "</TABLE>\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)); } } |