1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 00:53:23 -05:00

Changed $text from 'activate' to 'changed' which allows search to work properly.

Before the search that wasn't an issue, ofcourse.
This commit is contained in:
freesource 2001-09-18 03:54:45 +00:00
parent 3fbf4f041f
commit ae3e94f7b5

View File

@ -965,7 +965,8 @@ sub yard_box {
# Create the GtkText widget
$text = new Gtk::Text( undef, undef );
$text->set_editable($true);
$text->signal_connect("activate", sub {
#$text->signal_connect("activate", sub {
$text->signal_connect("changed", sub {
my $new_length = $text->get_length();
$changed_text_from_template = $text->get_chars(0,$new_length);
} );
@ -1195,8 +1196,10 @@ sub search {
$search_window->set_default($submit_b);
$submit_b->grab_default;
$submit_b->signal_connect( "clicked", sub {
my $keywords = $search1->get_text();
$before_offset = $offset if $offset != -1;
if ($old_keywords ne $keywords) {
undef $before_offset;
}