Select first toolbar item on application startup. 84/98784/1
authorKamil Lipiszko <k.lipiszko@samsung.com>
Sun, 20 Nov 2016 11:42:09 +0000 (12:42 +0100)
committerKamil Lipiszko <k.lipiszko@samsung.com>
Sun, 20 Nov 2016 11:42:09 +0000 (12:42 +0100)
Change-Id: Id3eb5aed183705ac75c2289dca0b1248531423b0

clock/src/View/MainView.cpp

index 9f7775b..2cadb08 100644 (file)
@@ -193,6 +193,10 @@ void MainView::CreateContent()
        elm_object_item_part_content_set(item, "tabbar", toolbar_);
        evas_object_show(alarm_->GetEvasObject());
        elm_object_item_content_set(item, alarm_->GetEvasObject());
+
+       Elm_Object_Item *first = elm_toolbar_first_item_get(toolbar_);
+       if (first)
+               elm_toolbar_item_selected_set(first, EINA_TRUE);
 }
 
 Evas_Object *MainView::GetEvasObject()