Use orientation from Window not application 87/38087/2
authorNick Holland <nick.holland@partner.samsung.com>
Fri, 10 Apr 2015 14:36:21 +0000 (15:36 +0100)
committerNick Holland <nick.holland@partner.samsung.com>
Wed, 15 Apr 2015 06:43:30 +0000 (23:43 -0700)
Change-Id: I71b88e71a64dfe4e2ebe139126c2e2acd9c26373

dali-toolkit/public-api/controls/view/view.h
dali-toolkit/public-api/styling/style-manager.h

index 99bcc31..b42340c 100644 (file)
@@ -63,7 +63,7 @@ class View;
  * mView.SetBackground( backgroundImageActor );
  *
  * // Connects the orientation signal with the View::OrientationChanged method.
- * application.GetOrientation().ChangedSignal().Connect( &view, &Toolkit::View::OrientationChanged );
+ * application.GetWindow().GetOrientation().ChangedSignal().Connect( &view, &Toolkit::View::OrientationChanged );
  *
  * // Create a content layer.
  * Layer contentLayer = Layer::New();
index f7f22a6..2d19f4b 100644 (file)
@@ -51,7 +51,7 @@ class StyleManager;
  *   void OnInit(Application& app)
  *   {
  *      Toolkit::StyleManager::Get().RequestThemeChange( CUSTOM_THEME );
- *      Toolkit::StyleManager::Get().SetOrientation( app.GetOrientation() );
+ *      Toolkit::StyleManager::Get().SetOrientation( app.GetWindow().GetOrientation() );
  *      ...
  *   }
  * @endcode