From ae3e94f7b5d2ddd7f679cf8418548da4f5d89f3f Mon Sep 17 00:00:00 2001 From: freesource Date: Tue, 18 Sep 2001 03:54:45 +0000 Subject: [PATCH] Changed $text from 'activate' to 'changed' which allows search to work properly. Before the search that wasn't an issue, ofcourse. --- BootRoot/YardBox.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BootRoot/YardBox.pm b/BootRoot/YardBox.pm index 4046ffd..c22c655 100644 --- a/BootRoot/YardBox.pm +++ b/BootRoot/YardBox.pm @@ -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; }