Remove use of deprecated Control flag REQUIRES_STYLE_CHANGE_SIGNALS
[platform/core/uifw/dali-demo.git] / examples / simple-visuals-control / my-control-impl.cpp
index b297aea..84e0acd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -62,7 +62,7 @@ DALI_ENUM_TO_STRING_TABLE_END( VISUAL_PROPERTIES )
 
 
 Internal::MyControl::MyControl()
-: Control( ControlBehaviour( REQUIRES_STYLE_CHANGE_SIGNALS ) )
+: Control( ControlBehaviour( CONTROL_BEHAVIOUR_DEFAULT ) )
 {
 }
 
@@ -77,7 +77,7 @@ Demo::MyControl Internal::MyControl::New()
 void MyControl::OnInitialize()
 {
   Dali::Actor self = Self();
-  self.SetKeyboardFocusable( true );
+  self.SetProperty( Actor::Property::KEYBOARD_FOCUSABLE, true );
 }
 
 void MyControl::SetProperty( BaseObject* object, Property::Index index, const Property::Value& value )