aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-08 06:38:51 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-08 06:38:51 +0000
commitd96224520f2c8018b8c8bdb649981858f06bbc48 (patch)
tree2bd3749b09df5ec2f140857b44f8b744399a95d2
parent9ce32e8f098711179c4510d9549d5f67ab7c15bc (diff)
downloadrpmdrake-d96224520f2c8018b8c8bdb649981858f06bbc48.tar
rpmdrake-d96224520f2c8018b8c8bdb649981858f06bbc48.tar.gz
rpmdrake-d96224520f2c8018b8c8bdb649981858f06bbc48.tar.bz2
rpmdrake-d96224520f2c8018b8c8bdb649981858f06bbc48.tar.xz
rpmdrake-d96224520f2c8018b8c8bdb649981858f06bbc48.zip
(format_pkg_simplifiedinfo) split building of details from actual
efilling (needed for next commit)
-rw-r--r--Rpmdrake/gui.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 5d95f31b..ebf74720 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -162,8 +162,8 @@ sub format_pkg_simplifiedinfo {
)) };
push @$s, [ "\n" ];
my $installed_version = eval { find_installed_version($upkg) };
- push @$s, [ gtkadd(gtkshow(my $exp0 = Gtk2::Expander->new(format_field(N("Details:")))),
- gtknew('TextView', text => ugtk2::markup_to_TextView_format(
+
+ my $details_txt = ugtk2::markup_to_TextView_format(
$spacing . join("\n$spacing",
format_field(N("Version: ")) . $version . '-' . $release,
@@ -175,8 +175,10 @@ sub format_pkg_simplifiedinfo {
format_field(N("Size: ")) . N("%s KB", int($upkg->size/1024)),
eval { format_field(N("Medium: ")) . $raw_medium->{name} },
),
- ),
- )) ];
+ );
+
+ push @$s, [ gtkadd(gtkshow(my $exp0 = Gtk2::Expander->new(format_field(N("Details:")))),
+ gtknew('TextView', text => $details_txt)) ];
$exp0->set_use_markup(1);
push @$s, [ "\n\n" ];
push @$s, [ build_expander($pkg, N("Files:"), 'files', sub {