diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2010-06-09 13:01:09 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2010-06-09 13:01:09 +0000 |
commit | 56f8e45fdc220bea1afbfd6ac14992fac3e9553f (patch) | |
tree | aacea3a1c551f5ca858e19068e55b7d880a0c88c /perl-install/fs/partitioning_wizard.pm | |
parent | 29d994ed809a5e12afe3cd93c3bedbe29a3dee40 (diff) | |
download | drakx-56f8e45fdc220bea1afbfd6ac14992fac3e9553f.tar drakx-56f8e45fdc220bea1afbfd6ac14992fac3e9553f.tar.gz drakx-56f8e45fdc220bea1afbfd6ac14992fac3e9553f.tar.bz2 drakx-56f8e45fdc220bea1afbfd6ac14992fac3e9553f.tar.xz drakx-56f8e45fdc220bea1afbfd6ac14992fac3e9553f.zip |
add scrollbar to partitionning wizard if needed
Diffstat (limited to 'perl-install/fs/partitioning_wizard.pm')
-rw-r--r-- | perl-install/fs/partitioning_wizard.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index edd783850..7ae3ba2de 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -290,7 +290,6 @@ sub create_display_box { my $totalsectors = $kind->{val}{totalsectors}; my $width = 540; - $width -= 24 if $resize || $fill_empty; my $minwidth = 40; my $display_box = ugtk2::gtkset_size_request(Gtk2::HBox->new(0,0), -1, 26); @@ -457,14 +456,13 @@ sub display_choices { $item = Gtk2::EventBox->new; my $b2 = gtknew("Image", file => "small-logo"); $item->add($b2); - $item->set_size_request(-1,26); + $item->set_size_request(540,26); $item->set_name("PART_new"); } elsif ($s eq 'diskdrake') { } else { log::l($s); next; } - $vbox->set_size_request(1024, -1); ugtk2::gtkpack($vbox, gtknew('Label', text => $solutions{$s}[1], @@ -526,7 +524,14 @@ sub main { ugtk2::gtkpack2__($mainbox, $hdchoice); my $contentbox = Gtk2::VBox->new(0, 12); - $mainbox->add($contentbox); + + my $scroll = Gtk2::ScrolledWindow->new; + $scroll->set_policy('never', 'automatic'), + my $vp = Gtk2::Viewport->new; + $vp->set_shadow_type('none'); + $vp->add($contentbox); + $scroll->add($vp); + $mainbox->add($scroll); my $kind = @kinds[$combobox->get_active]; my %solutions = partitionWizardSolutions($o, $all_hds, $fstab, $manual_fstab, $partitions, $partitioning_flags, $skip_mtab, diskdrake::hd_gtk::kind2hd($kind)); |