- add signal_connect to Gtk::Entry (hit Enter key to perform a search)

git-svn-id: file:///home/svn/framework3/trunk@4378 4d416f70-5f16-0410-b530-b9f4589650da
unstable
fab 2007-02-13 16:12:26 +00:00
parent dca1bdbd0f
commit 98fbadd5fe
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ class ModuleSearch
@search_button = search_button
@cancel_button = search_cancel_button
# Signals
@search_entry.signal_connect('activate') do
@search_button.activate
end
@search_button.signal_connect('clicked') do
search(@search_entry.text)
end