summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-26 16:55:50 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-26 16:55:50 +0000
commit70eb88e830e6163571e68eed10988708291c6d8a (patch)
tree2c5253d974964141c56c50931999563bfedf6175
parent5debf6f034fcdbd478dfe36e460b9ceed89495f0 (diff)
downloadcontrol-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 "&amp;" (eg: german & chinese)
(reported on cooker-i18n@)
-rw-r--r--NEWS2
-rwxr-xr-xcontrol-center3
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0706c8d8..15de05d2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix banners displaying titles with "&amp;"
+
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/&/&amp;/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));
}
}