aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-18 21:43:57 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-18 21:43:57 +0000
commitcf39d7911260c4b700d7de071560b9015c2c2cf3 (patch)
treedd8ec9890932a9522ea7211bff06801c03ee2ed6
parentfae97228965aa4326c349fcb2be1f21e15e55cff (diff)
downloadrpmdrake-cf39d7911260c4b700d7de071560b9015c2c2cf3.tar
rpmdrake-cf39d7911260c4b700d7de071560b9015c2c2cf3.tar.gz
rpmdrake-cf39d7911260c4b700d7de071560b9015c2c2cf3.tar.bz2
rpmdrake-cf39d7911260c4b700d7de071560b9015c2c2cf3.tar.xz
rpmdrake-cf39d7911260c4b700d7de071560b9015c2c2cf3.zip
(run_treeview_dialog) preselect the right view mode in the menu
-rwxr-xr-xrpmdrake2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 7632fdb7..a6dce2f4 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -577,6 +577,8 @@ sub run_treeview_dialog {
# to retrieve a path, one must prevent "accelerators completion":
my $get_path = sub { return join('', map { my $i = $_; $i =~ s/_//g; $i } @_) };
+ $factory->get_item('<main>' . $get_path->(N("/_View") . '/' . $modes{$mode->[0]}))->set_active(1);
+
%check_boxes = map {
$_ => $factory->get_widget("<main>" . $get_path->($auto_string));
} ($auto_string);