diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:09:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:09:38 +0000 |
commit | 880fce77566460b01c9d1552f0f3811875b6e11f (patch) | |
tree | f7d2e97a7ec2e959e7bae50c11ed7b258579d65d | |
parent | df5359a61c1b2f84e343f028bbc6d6c7433e5f4f (diff) | |
download | rpmdrake-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-x | rpmdrake | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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>'), )); } |