aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-10-19 15:30:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-10-19 15:30:42 +0000
commit881737a88d472059fe18fa7f74aa7193a67d7535 (patch)
tree0ddbae43e0504e3f07ae6e04d56f979dfe1a6342
parentef9203edbf0b3cca962558db863b089c8c4f108f (diff)
downloadrpmdrake-881737a88d472059fe18fa7f74aa7193a67d7535.tar
rpmdrake-881737a88d472059fe18fa7f74aa7193a67d7535.tar.gz
rpmdrake-881737a88d472059fe18fa7f74aa7193a67d7535.tar.bz2
rpmdrake-881737a88d472059fe18fa7f74aa7193a67d7535.tar.xz
rpmdrake-881737a88d472059fe18fa7f74aa7193a67d7535.zip
Initialize correctly the "display mode" combo box.
-rwxr-xr-xrpmdrake5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index e6500395..f25fc947 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -856,12 +856,13 @@ or you already installed all of them."));
$t->pack_start($search_types_renderer, Glib::FALSE());
$t->set_attributes($search_types_renderer, text => 0);
my $iter = $t->get_model->iter_nth_child(undef, 0);
- my $n = 0;
+ my $n = 0; my $active = 0;
foreach my $m (@advanced_modes) {
+ $m->[0] eq $tree_mode->[0] and $active = $n;
$iter = $t->get_model->insert($n++);
$t->get_model->set($iter, 0, $m->[1]);
}
- $t->set_active(0);
+ $t->set_active($active);
$t->signal_connect(
changed => sub {
my $act = $t->get_active;