X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fimage-view-pixel-area%2Fimage-view-pixel-area-example.cpp;h=362ced1f52a7ab0d66f0d8926b20b4f2cc972cb9;hb=214f363041053a01ead590d0527dc6c08f7fe961;hp=b00ccf5384a4f75b8249f00a7f64d714080133b2;hpb=7a4fb5b4bf9bf0c73761939bde321c48958a9117;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/image-view-pixel-area/image-view-pixel-area-example.cpp b/examples/image-view-pixel-area/image-view-pixel-area-example.cpp index b00ccf5..362ced1 100644 --- a/examples/image-view-pixel-area/image-view-pixel-area-example.cpp +++ b/examples/image-view-pixel-area/image-view-pixel-area-example.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -16,6 +16,8 @@ */ #include +#include + #include "shared/view.h" using namespace Dali; @@ -69,8 +71,8 @@ private: // Add a button to switch the scene. (right of toolbar) Toolkit::PushButton switchButton = Toolkit::PushButton::New(); - switchButton.SetUnselectedImage( BUTTON_ICON ); - switchButton.SetSelectedImage( BUTTON_ICON_SELECTED ); + switchButton.SetProperty( Toolkit::DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL, BUTTON_ICON ); + switchButton.SetProperty( Toolkit::DevelButton::Property::SELECTED_BACKGROUND_VISUAL, BUTTON_ICON_SELECTED ); switchButton.ClickedSignal().Connect( this, &ImageViewPixelAreaApp::OnButtonClicked ); toolBar.AddControl( switchButton, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage,