Remove invalid calls to EnableVisual from Button 58/194458/3
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Tue, 4 Dec 2018 17:36:37 +0000 (17:36 +0000)
committerKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 5 Dec 2018 14:08:10 +0000 (14:08 +0000)
commit675300a339110f245ba62117a6da5c5b581c12d1
tree83731b33864506eb52b7276cd9fe379417194988
parented980a3b418d7a235d4774b786d84974421650fd
Remove invalid calls to EnableVisual from Button

button was causing lots of LOG_WARNING due to enabling visuals unnecessarily
- reduced complexity by removing function pointer usage
- fix the value passed into register visual so that they are correctly enabled
- added a check to test that a visual exists before enabling it (not ideal but nicer than warnings)
- remove redundant RelayoutRequest calls from SetProperty

Change-Id: I45e1deda22e13446d488d74d990ccf96f77e9eb0
dali-toolkit/internal/controls/buttons/button-impl.cpp
dali-toolkit/internal/controls/buttons/button-impl.h