diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-05-24 13:10:24 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-05-24 13:10:24 +0000 |
commit | 762dee42a6cbe4a3e803d402ccadc8050897752e (patch) | |
tree | dc99aaa2ba5ec957f2c1854557e96be6778b3618 /perl-install/standalone/drakfloppy | |
parent | 55e82bbb21c394f5d939a3b3827ceb99364554cb (diff) | |
download | drakx-backup-do-not-use-762dee42a6cbe4a3e803d402ccadc8050897752e.tar drakx-backup-do-not-use-762dee42a6cbe4a3e803d402ccadc8050897752e.tar.gz drakx-backup-do-not-use-762dee42a6cbe4a3e803d402ccadc8050897752e.tar.bz2 drakx-backup-do-not-use-762dee42a6cbe4a3e803d402ccadc8050897752e.tar.xz drakx-backup-do-not-use-762dee42a6cbe4a3e803d402ccadc8050897752e.zip |
switch from deprecated OptionMenu into new ComboBox widget
Diffstat (limited to 'perl-install/standalone/drakfloppy')
-rwxr-xr-x | perl-install/standalone/drakfloppy | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/drakfloppy b/perl-install/standalone/drakfloppy index b91d85d15..d58305f61 100755 --- a/perl-install/standalone/drakfloppy +++ b/perl-install/standalone/drakfloppy @@ -62,12 +62,13 @@ eval { %options = getVarsFromSh($conffile) }; ######## up part # device part -my $device_combo = new Gtk2::OptionMenu(); +my $device_combo = Gtk2::ComboBox->new_text; $device_combo->set_popdown_strings(map { "/dev/" . $_->{device} } detect_devices::floppies()); +$device_combo->set_active(0); # kernel part -my $kernel_combo = new Gtk2::OptionMenu(); +my $kernel_combo = Gtk2::ComboBox->new_text; $kernel_combo->set_popdown_strings(sort grep { !/^\.\.?$/ } sort(all("/lib/modules"))); $kernel_combo->entry->set_text(chomp_(`uname -r`)); |