examples/instant_messenger_gui.rb in journeta-0.0.5 vs examples/instant_messenger_gui.rb in journeta-0.1.0
- old
+ new
@@ -25,11 +25,11 @@
def initialize(control)
@control = control
end
- def handle(message)
+ def call(message)
if message.class == BasicMessage
text = @control.get_value
text.chop!
text += "\n#{message.name.chop}: #{message.text}"
@control.set_value text
@@ -104,10 +104,10 @@
evt_button(button.get_id) { | e | on_click(e) }
panel.set_sizer_and_fit( sizer )
peer_port = (2048 + rand( 2 ** 8))
- @journeta = Journeta::JournetaEngine.new(:peer_port => peer_port, :peer_handler => JournetaGUIHandler.new(@peer_control), :groups => ['im_example'])
+ @journeta = Journeta::Engine.new(:peer_port => peer_port, :peer_handler => JournetaGUIHandler.new(@peer_control), :groups => ['im_example'])
@journeta.start
end
def construct_menus()