aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-20 12:52:32 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-20 12:52:32 +0000
commitad6ef397beaba76117f29da099c833d9c1f25d0c (patch)
treedfc56288e4259cdad10c6d30fe5b5794cf7a9e22
parent79f8257307922ab6fc189d1031ab3c4517c52f3b (diff)
downloadrpmdrake-ad6ef397beaba76117f29da099c833d9c1f25d0c.tar
rpmdrake-ad6ef397beaba76117f29da099c833d9c1f25d0c.tar.gz
rpmdrake-ad6ef397beaba76117f29da099c833d9c1f25d0c.tar.bz2
rpmdrake-ad6ef397beaba76117f29da099c833d9c1f25d0c.tar.xz
rpmdrake-ad6ef397beaba76117f29da099c833d9c1f25d0c.zip
Restore view of selected size
-rwxr-xr-xrpmdrake20
1 files changed, 15 insertions, 5 deletions
diff --git a/rpmdrake b/rpmdrake
index d3f9eb50..c0ee632c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -807,9 +807,11 @@ or you already installed all of them."));
and $size_selected += $pkgs->{$_}{pkg}->size * ($new_state ? 1 : -1);
}
}, #- toggle_nodes
- get_status => sub { $MODE eq 'install' ? N("Selected: %d MB / Free disk space: %d MB",
- $size_selected/(1024*1024), $size_free/1024)
- : N("Selected size: %d MB", $size_selected/(1024*1024)) },
+ get_status => sub {
+ $MODE eq 'install'
+ ? N("Selected: %d MB / Free disk space: %d MB", $size_selected/(1024*1024), $size_free/1024)
+ : N("Selected size: %d MB", $size_selected/(1024*1024));
+ },
get_info => sub {
my ($key) = @_;
return if $key eq ''; #- related to the partial tree displaying hackery
@@ -1157,6 +1159,7 @@ Is it ok to continue?",
Gtk2::Button->new(but_($MODE eq 'remove' ? N("Remove") : N("Install"))),
clicked => sub { $do_action->() },
),
+ 1, $status,
),
),
),
@@ -1168,8 +1171,15 @@ Is it ok to continue?",
$w->{rwindow}->set_default_size($typical_width*2.7, 500) if !$::isEmbedded;
$w->{rwindow}->show_all;
- $options->{widgets} = { w => $w, tree => $tree, tree_model => $tree_model, textcolumn => $textcolumn, pixcolumn => $pixcolumn,
- info => $info, status => $status };
+ $options->{widgets} = {
+ w => $w,
+ tree => $tree,
+ tree_model => $tree_model,
+ textcolumn => $textcolumn,
+ pixcolumn => $pixcolumn,
+ info => $info,
+ status => $status,
+ };
ask_browse_tree_info_given_widgets($options);
}