summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm_check.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2009-12-08 04:57:39 +0000
committerIván Briano <sachieru@gmail.com>2009-12-08 04:57:39 +0000
commitec7c056c4eb3474713e841020d7442ceae4967a2 (patch)
treee7c97136c2147b2ffcec9a6d8b9f34ebf46a74d0 /src/edje_externals/elm_check.c
parentcb66381bfb29ca35bf5143e4a94ce06a713e34ee (diff)
State is not a common parameter
patch by Fabiano Fidencio SVN revision: 44273
Diffstat (limited to 'src/edje_externals/elm_check.c')
-rw-r--r--src/edje_externals/elm_check.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/edje_externals/elm_check.c b/src/edje_externals/elm_check.c
index 6449b3b84..53cb08ee8 100644
--- a/src/edje_externals/elm_check.c
+++ b/src/edje_externals/elm_check.c
@@ -4,6 +4,7 @@ typedef struct _Elm_Params_Check
4{ 4{
5 Elm_Params base; 5 Elm_Params base;
6 Evas_Object *icon; 6 Evas_Object *icon;
7 int state;
7} Elm_Params_Check; 8} Elm_Params_Check;
8 9
9static void 10static void
@@ -18,13 +19,13 @@ external_check_state_set(void *data, Evas_Object *obj, const void *from_params,
18 { 19 {
19 elm_check_label_set(obj, p1->base.label); 20 elm_check_label_set(obj, p1->base.label);
20 elm_check_icon_set(obj, p1->icon); 21 elm_check_icon_set(obj, p1->icon);
21 elm_check_state_set(obj, p1->base.state); 22 elm_check_state_set(obj, p1->state);
22 return; 23 return;
23 } 24 }
24 25
25 elm_check_label_set(obj, p2->base.label); 26 elm_check_label_set(obj, p2->base.label);
26 elm_check_icon_set(obj, p2->icon); 27 elm_check_icon_set(obj, p2->icon);
27 elm_check_state_set(obj, p2->base.state); 28 elm_check_state_set(obj, p2->state);
28} 29}
29 30
30static void * 31static void *
@@ -39,6 +40,10 @@ external_check_params_parse(void *data, Evas_Object *obj, const Eina_List *param
39 40
40 external_common_icon_param_parse(&mem->icon, obj, params); 41 external_common_icon_param_parse(&mem->icon, obj, params);
41 42
43 param = edje_external_param_find(params, "state");
44 if (param)
45 mem->state = param->i;
46
42 return mem; 47 return mem;
43} 48}
44 49