aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:09:38 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:09:38 +0000
commit880fce77566460b01c9d1552f0f3811875b6e11f (patch)
treef7d2e97a7ec2e959e7bae50c11ed7b258579d65d
parentdf5359a61c1b2f84e343f028bbc6d6c7433e5f4f (diff)
downloadrpmdrake-880fce77566460b01c9d1552f0f3811875b6e11f.tar
rpmdrake-880fce77566460b01c9d1552f0f3811875b6e11f.tar.gz
rpmdrake-880fce77566460b01c9d1552f0f3811875b6e11f.tar.bz2
rpmdrake-880fce77566460b01c9d1552f0f3811875b6e11f.tar.xz
rpmdrake-880fce77566460b01c9d1552f0f3811875b6e11f.zip
use escape_text_for_TextView_markup_format instead of
Glib::Markup::escape_text() since the later is not suitable for Gtk2::TextViews
-rwxr-xr-xrpmdrake10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpmdrake b/rpmdrake
index 7263477d..93ca49ac 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -559,12 +559,12 @@ sub formatlistpkg { myformatList(sort { uc($a) cmp uc($b) } @_) }
sub format_header {
my ($str) = @_;
- '<big>' . Glib::Markup::escape_text($str) . '</big>';
+ '<big>' . escape_text_for_TextView_markup_format($str) . '</big>';
}
sub format_field {
my ($str) = @_;
- '<b>' . Glib::Markup::escape_text($str) . '</b>';
+ '<b>' . escape_text_for_TextView_markup_format($str) . '</b>';
}
sub format_pkg_simplifiedinfo {
@@ -573,11 +573,11 @@ sub format_pkg_simplifiedinfo {
ugtk2::markup_to_TextView_format(join("\n", format_header($name . ' - ' . $pkgs->{$key}{summary}),
if_(
$MODE eq 'update',
- format_field(N("Importance: ")) . Glib::Markup::escape_text($descriptions->{$name}{importance}),
- format_field(N("Reason for update: ")) . Glib::Markup::escape_text(rpm_description($descriptions->{$name}{pre})),
+ format_field(N("Importance: ")) . escape_text_for_TextView_markup_format($descriptions->{$name}{importance}),
+ format_field(N("Reason for update: ")) . escape_text_for_TextView_markup_format(rpm_description($descriptions->{$name}{pre})),
),
'', # extra empty line
- (Glib::Markup::escape_text($pkgs->{$key}{description} || $descriptions->{$name}{description}) || '<i>' . N("No description") . '</i>'),
+ (escape_text_for_TextView_markup_format($pkgs->{$key}{description} || $descriptions->{$name}{description}) || '<i>' . N("No description") . '</i>'),
));
}