Changes after TouchedSignal changes
[platform/core/uifw/dali-demo.git] / examples / web-view / web-view-example.cpp
index 13cc242..7d48243 100644 (file)
@@ -82,7 +82,7 @@ public:
     mAddressLabel.SetProperty( Toolkit::TextLabel::Property::POINT_SIZE, fontSize );
     mAddressLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::WHITE );
     mAddressLabel.SetBackgroundColor( Vector4( 0, 0, 0, 0.5f ) );
-    mAddressLabel.TouchSignal().Connect( this, &WebViewController::OnTouchText );
+    mAddressLabel.TouchedSignal().Connect( this, &WebViewController::OnTouchText );
     window.Add( mAddressLabel );
 
     // Respond to key events
@@ -114,7 +114,7 @@ public:
 
   void OnKeyEvent( const KeyEvent& event )
   {
-    if( event.GetState() == KeyEvent::Down )
+    if( event.GetState() == KeyEvent::DOWN )
     {
       if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) )
       {