Browse Source

Added "changed" signal in entry(). No more need to press [enter].

master
freesource 25 years ago
parent
commit
55f63cda7b
  1. 18
      gBootRoot

18
gBootRoot

@ -241,7 +241,7 @@ $box1->show();
# First row
hbox();
my $entry = entry($false);
my $entry = entry($false,0);
# Menu - later this may be improved if new methods are added.
my $opt = new Gtk::OptionMenu();
@ -450,11 +450,13 @@ sub advanced_section {
if ($button_count == 0) {
#$vbox_advanced->set_usize(321,300);
my $boolean;
# Will use a table once things start to take shape.
# The strip section
hbox_advanced(); $ha1 = $hbox_advanced;
label_advanced("Stripping:");
!defined $lib_strip_check ? ($boolean = 1)
: ($boolean = $lib_strip_check->get_active());
$lib_strip_check = new Gtk::CheckButton("Libraries");
@ -484,6 +486,7 @@ sub advanced_section {
#hbox_advanced(); $ha2 = $hbox_advanced;
#label_advanced("Verbosity Level: \"Coming Soon!\"");
$button_count++;
}
else {
@ -725,10 +728,16 @@ sub entry {
my($edit,$num) = @_;
my $entry = new Gtk::Entry();
$entry->set_editable( $edit );
# enter will have to be pressed, tried other solutions with a mess
$entry->set_editable( $true );
if ($num == 0) {
$entry->signal_connect( "activate", sub {
$container[$num] = $entry->get_text(); });
}
else {
$entry->signal_connect( "changed", sub {
$container[$num] = $entry->get_text(); });
}
if (defined $num) {
my $todo;
if ($num == 1) {
@ -741,7 +750,7 @@ sub entry {
$todo = "the Device to use";
}
$tooltips->set_tip( $entry,
"Type in the location of $todo and press [Enter].", "" );
"Type in the location of $todo.", "" );
}
$box2->pack_start( $entry, $true, $true, 0 );
$entry->show();
@ -843,6 +852,7 @@ elsif (defined $container[0] && defined $container[1] &&
return;
}
# kernel value can change without effecting initrd
# no sense doing this until important stuff is filled in
if (defined $kernel && defined $root_image &&

Loading…
Cancel
Save