From: Woochan Lee Date: Tue, 12 Jul 2016 07:32:35 +0000 (+0900) Subject: Deferred title property set. X-Git-Tag: submit/tizen/20160719.061526~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F79644%2F3;p=platform%2Fcore%2Fuifw%2Fui-viewmgr.git Deferred title property set. Change-Id: Ifac9f61fe2509c14e37859993b06927967c9090d --- diff --git a/src/lib/efl/mobile/UiStandardView.cpp b/src/lib/efl/mobile/UiStandardView.cpp index 919e1e8..b11d8a1 100644 --- a/src/lib/efl/mobile/UiStandardView.cpp +++ b/src/lib/efl/mobile/UiStandardView.cpp @@ -36,6 +36,7 @@ private: Elm_Toolbar *_toolbar = NULL; //Toolbar Elm_Button *_titleLeftBtn = NULL; //Title left button Elm_Button *_titleRightBtn = NULL; //Title right button + bool _titleVisible = true; bool _createLayout(); bool _destroyLayout(); @@ -275,7 +276,7 @@ bool UiStandardViewImpl::setTitle(const char *text) elm_object_part_text_set(layout, "elm.text.title", text); - if (text) elm_object_signal_emit(layout, "elm,state,title,show", "viewmgr"); + if (text && this->_titleVisible) elm_object_signal_emit(layout, "elm,state,title,show", "viewmgr"); else elm_object_signal_emit(layout, "elm,state,title,hide", "viewmgr"); return true; @@ -398,6 +399,8 @@ Evas_Object *UiStandardViewImpl::getBase() bool UiStandardViewImpl::setTitleVisible(bool visible, bool anim) { + this->_titleVisible = visible; + //FIXME: save visible, anim value. they can be used in layout created time. Elm_Layout *layout = this->getBase(); if (!layout) {