summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm_panes.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2011-11-16 12:51:53 +0000
committerChunEon Park <hermet@hermet.pe.kr>2011-11-16 12:51:53 +0000
commitd647d2d1a5e061d9dc327539fc3339088249b1a0 (patch)
tree3578c2fbbb7e267955b11e69b6e15fa6aabc644c /src/edje_externals/elm_panes.c
parent53e9ac8e979e0dc6994cd7853623e0822546cc12 (diff)
elementary - modified content_set/get/unset part names to be simple names.
Previous part names are just the swallow part names but in modified version, the part names chaned to simpler meaning names to use. i.e for button elm_object_content_part_set(button, "elm.swallow.icon", icon); -> elm_object_content_part_set(button, "icon", icon); SVN revision: 65295
Diffstat (limited to 'src/edje_externals/elm_panes.c')
-rw-r--r--src/edje_externals/elm_panes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/edje_externals/elm_panes.c b/src/edje_externals/elm_panes.c
index 1a7a8dfb1..15d19eaef 100644
--- a/src/edje_externals/elm_panes.c
+++ b/src/edje_externals/elm_panes.c
@@ -27,10 +27,10 @@ static void external_panes_state_set(void *data __UNUSED__,
27 else return; 27 else return;
28 28
29 if (p->content_left) 29 if (p->content_left)
30 elm_object_content_part_set(obj, ELM_PANES_CONTENT_LEFT, p->content_left); 30 elm_object_content_part_set(obj, "left", p->content_left);
31 31
32 if (p->content_right) 32 if (p->content_right)
33 elm_object_content_part_set(obj, ELM_PANES_CONTENT_RIGHT, p->content_right); 33 elm_object_content_part_set(obj, "right", p->content_right);
34 34
35 if (p->is_left_size) 35 if (p->is_left_size)
36 elm_panes_content_left_size_set(obj, p->left_size); 36 elm_panes_content_left_size_set(obj, p->left_size);
@@ -51,7 +51,7 @@ static Eina_Bool external_panes_param_set(void *data __UNUSED__,
51 Evas_Object *content = external_common_param_edje_object_get(obj, param); 51 Evas_Object *content = external_common_param_edje_object_get(obj, param);
52 if ((strcmp(param->s, "")) && (!content)) 52 if ((strcmp(param->s, "")) && (!content))
53 return EINA_FALSE; 53 return EINA_FALSE;
54 elm_object_content_part_set(obj, ELM_PANES_CONTENT_LEFT, content); 54 elm_object_content_part_set(obj, "left", content);
55 return EINA_TRUE; 55 return EINA_TRUE;
56 } 56 }
57 else if ((!strcmp(param->name, "content right")) 57 else if ((!strcmp(param->name, "content right"))
@@ -60,7 +60,7 @@ static Eina_Bool external_panes_param_set(void *data __UNUSED__,
60 Evas_Object *content = external_common_param_edje_object_get(obj, param); 60 Evas_Object *content = external_common_param_edje_object_get(obj, param);
61 if ((strcmp(param->s, "")) && (!content)) 61 if ((strcmp(param->s, "")) && (!content))
62 return EINA_FALSE; 62 return EINA_FALSE;
63 elm_object_content_part_set(obj, ELM_PANES_CONTENT_RIGHT, content); 63 elm_object_content_part_set(obj, "right", content);
64 return EINA_TRUE; 64 return EINA_TRUE;
65 } 65 }
66 else if ((!strcmp(param->name, "horizontal")) 66 else if ((!strcmp(param->name, "horizontal"))
@@ -170,9 +170,9 @@ external_panes_content_get(void *data __UNUSED__, const Evas_Object *obj,
170 const char *content) 170 const char *content)
171{ 171{
172 if (!strcmp(content, "left")) 172 if (!strcmp(content, "left"))
173 return elm_object_content_part_get(obj, ELM_PANES_CONTENT_LEFT); 173 return elm_object_content_part_get(obj, "left");
174 else if (!strcmp(content, "right")) 174 else if (!strcmp(content, "right"))
175 return elm_object_content_part_get(obj, ELM_PANES_CONTENT_RIGHT); 175 return elm_object_content_part_get(obj, "right");
176 176
177 ERR("unknown content '%s'", content); 177 ERR("unknown content '%s'", content);
178 178