2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include "openlock-setting-debug.h"
20 #include "openlock-setting-util.h"
22 Evas_Object *openlock_setting_util_create_navigation(Evas_Object * parent)
24 Evas_Object *navi_bar = NULL;
27 OPENLOCKS_WARN("Parent is null.");
31 navi_bar = elm_naviframe_add(parent);
32 if (navi_bar == NULL) {
33 OPENLOCKS_ERR("Cannot add naviagtionbar.");
37 elm_object_part_content_set(parent, "elm.swallow.content", navi_bar);
39 evas_object_show(navi_bar);
44 Evas_Object *openlock_setting_util_create_layout(Evas_Object * parent)
46 Evas_Object *layout = NULL;
49 OPENLOCKS_WARN("Parent is null.");
53 layout = elm_layout_add(parent);
55 OPENLOCKS_ERR("Cannot add layout.");
59 evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
62 evas_object_show(layout);