The source code moved from the SPIN with license changed to Flora 1.1
[apps/native/home/homescreen-efl.git] / src / layout.c
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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
7  *
8  * http://floralicense.org/license/
9  *
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.
15  */
16
17 #include <Elementary.h>
18
19 #include "homescreen-efl.h"
20 #include "layout.h"
21 #include "conf.h"
22 #include "util.h"
23
24
25 HAPI void layout_main_caption_set_menu_texts(const char *label_text,
26         const char *left_text, const char *right_text)
27 {
28         Evas_Object *layout = home_screen_get_layout();
29
30         if (!layout)
31                 return;
32
33         if (label_text)
34                 elm_layout_text_set(layout, PART_CAPTION_MENU_CENTER_LABEL_NAME, label_text);
35
36         if (left_text)
37                 elm_layout_text_set(layout, PART_CAPTION_MENU_LEFT_LABEL, left_text);
38
39         if (right_text)
40                 elm_layout_text_set(layout, PART_CAPTION_MENU_RIGHT_LABEL, right_text);
41 }