Initial search layout and rename to wince
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module GtkTest
|
||||
module Wince
|
||||
@@main_window_id = 0_u32
|
||||
|
||||
def activate(app : Adw::Application)
|
||||
@@ -10,9 +10,18 @@ module GtkTest
|
||||
|
||||
@@main_window_id = window.id
|
||||
|
||||
SEARCH_BUTTON.clicked_signal.connect do
|
||||
handle_search
|
||||
end
|
||||
|
||||
window.present
|
||||
end
|
||||
|
||||
def handle_search
|
||||
puts "searched for " + SEARCH_ENTRY.buffer.text
|
||||
puts "location for " + LOCATION_ENTRY.buffer.text
|
||||
end
|
||||
|
||||
APP.activate_signal.connect(->activate(Adw::Application))
|
||||
exit(APP.run(ARGV))
|
||||
end
|
||||
Reference in New Issue
Block a user