summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2011-10-31 02:56:03 +0000
committerChunEon Park <hermet@hermet.pe.kr>2011-10-31 02:56:03 +0000
commitf856c0e9fefe98738cd030fc5692743f1a50ed86 (patch)
treebad0cb506649d173da0d7dc1cd88db66c1fe7217 /legacy/elementary/src/edje_externals
parent8e5a6ce75f2ffc0ad7f69703db7518ae7975b8a9 (diff)
elementary - slider, scroller, progressbar, radio
applied elm_object_content_set/get/unset APIs. SVN revision: 64542
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/edje_externals/elm_progressbar.c4
-rw-r--r--legacy/elementary/src/edje_externals/elm_radio.c4
-rw-r--r--legacy/elementary/src/edje_externals/elm_scroller.c6
-rw-r--r--legacy/elementary/src/edje_externals/elm_slider.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_progressbar.c b/legacy/elementary/src/edje_externals/elm_progressbar.c
index aa4338e..d32a7cb 100644
--- a/legacy/elementary/src/edje_externals/elm_progressbar.c
+++ b/legacy/elementary/src/edje_externals/elm_progressbar.c
@@ -28,7 +28,7 @@ external_progressbar_state_set(void *data __UNUSED__, Evas_Object *obj, const vo
28 if (p->label) 28 if (p->label)
29 elm_object_text_set(obj, p->label); 29 elm_object_text_set(obj, p->label);
30 if (p->icon) 30 if (p->icon)
31 elm_progressbar_icon_set(obj, p->icon); 31 elm_object_content_set(obj, p->icon);
32 if (p->span_exists) 32 if (p->span_exists)
33 elm_progressbar_span_size_set(obj, p->span); 33 elm_progressbar_span_size_set(obj, p->span);
34 if (p->value_exists) 34 if (p->value_exists)
@@ -58,7 +58,7 @@ external_progressbar_param_set(void *data __UNUSED__, Evas_Object *obj, const Ed
58 { 58 {
59 Evas_Object *icon = external_common_param_icon_get(obj, param); 59 Evas_Object *icon = external_common_param_icon_get(obj, param);
60 if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE; 60 if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
61 elm_progressbar_icon_set(obj, icon); 61 elm_object_content_set(obj, icon);
62 return EINA_TRUE; 62 return EINA_TRUE;
63 } 63 }
64 } 64 }
diff --git a/legacy/elementary/src/edje_externals/elm_radio.c b/legacy/elementary/src/edje_externals/elm_radio.c
index 7f4c600..839326b 100644
--- a/legacy/elementary/src/edje_externals/elm_radio.c
+++ b/legacy/elementary/src/edje_externals/elm_radio.c
@@ -22,7 +22,7 @@ external_radio_state_set(void *data __UNUSED__, Evas_Object *obj, const void *fr
22 if (p->label) 22 if (p->label)
23 elm_object_text_set(obj, p->label); 23 elm_object_text_set(obj, p->label);
24 if (p->icon) 24 if (p->icon)
25 elm_radio_icon_set(obj, p->icon); 25 elm_object_content_set(obj, p->icon);
26 if (p->value_exists) 26 if (p->value_exists)
27 elm_radio_state_value_set(obj, p->value); 27 elm_radio_state_value_set(obj, p->value);
28 if (p->group_name) 28 if (p->group_name)
@@ -50,7 +50,7 @@ external_radio_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Ext
50 { 50 {
51 Evas_Object *icon = external_common_param_icon_get(obj, param); 51 Evas_Object *icon = external_common_param_icon_get(obj, param);
52 if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE; 52 if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
53 elm_radio_icon_set(obj, icon); 53 elm_object_content_set(obj, icon);
54 return EINA_TRUE; 54 return EINA_TRUE;
55 } 55 }
56 } 56 }
diff --git a/legacy/elementary/src/edje_externals/elm_scroller.c b/legacy/elementary/src/edje_externals/elm_scroller.c
index ccec362..2173e3c 100644
--- a/legacy/elementary/src/edje_externals/elm_scroller.c
+++ b/legacy/elementary/src/edje_externals/elm_scroller.c
@@ -22,7 +22,7 @@ static void external_scroller_state_set(void *data __UNUSED__,
22 else return; 22 else return;
23 23
24 if (p->content) { 24 if (p->content) {
25 elm_scroller_content_set(obj, p->content); 25 elm_object_content_set(obj, p->content);
26 } 26 }
27} 27}
28 28
@@ -35,7 +35,7 @@ static Eina_Bool external_scroller_param_set(void *data __UNUSED__,
35 Evas_Object *content = external_common_param_edje_object_get(obj, param); 35 Evas_Object *content = external_common_param_edje_object_get(obj, param);
36 if ((strcmp(param->s, "")) && (!content)) 36 if ((strcmp(param->s, "")) && (!content))
37 return EINA_FALSE; 37 return EINA_FALSE;
38 elm_scroller_content_set(obj, content); 38 elm_object_content_set(obj, content);
39 return EINA_TRUE; 39 return EINA_TRUE;
40 } 40 }
41 41
@@ -83,7 +83,7 @@ static Evas_Object *external_scroller_content_get(void *data __UNUSED__,
83 const Evas_Object *obj, const char *content) 83 const Evas_Object *obj, const char *content)
84{ 84{
85 if (!strcmp(content, "content")) 85 if (!strcmp(content, "content"))
86 return elm_scroller_content_get(obj); 86 return elm_object_content_get(obj);
87 87
88 ERR("unknown content '%s'", content); 88 ERR("unknown content '%s'", content);
89 return NULL; 89 return NULL;
diff --git a/legacy/elementary/src/edje_externals/elm_slider.c b/legacy/elementary/src/edje_externals/elm_slider.c
index a4c0156..1e1f88f 100644
--- a/legacy/elementary/src/edje_externals/elm_slider.c
+++ b/legacy/elementary/src/edje_externals/elm_slider.c
@@ -30,7 +30,7 @@ external_slider_state_set(void *data __UNUSED__, Evas_Object *obj, const void *f
30 if (p->label) 30 if (p->label)
31 elm_object_text_set(obj, p->label); 31 elm_object_text_set(obj, p->label);
32 if (p->icon) 32 if (p->icon)
33 elm_slider_icon_set(obj, p->icon); 33 elm_object_content_part_set(obj, ELM_SLIDER_CONTENT_ICON, p->icon);
34 if (p->span_exists) 34 if (p->span_exists)
35 elm_slider_span_size_set(obj, p->span); 35 elm_slider_span_size_set(obj, p->span);
36 if ((p->min_exists) && (p->max_exists)) 36 if ((p->min_exists) && (p->max_exists))
@@ -73,7 +73,7 @@ external_slider_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Ex
73 { 73 {
74 Evas_Object *icon = external_common_param_icon_get(obj, param); 74 Evas_Object *icon = external_common_param_icon_get(obj, param);
75 if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE; 75 if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
76 elm_slider_icon_set(obj, icon); 76 elm_object_content_part_set(obj, ELM_SLIDER_CONTENT_ICON, icon);
77 return EINA_TRUE; 77 return EINA_TRUE;
78 } 78 }
79 } 79 }