summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm_check.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2010-06-16 20:58:01 +0000
committerIván Briano <sachieru@gmail.com>2010-06-16 20:58:01 +0000
commit5039f478e1d5f987e59104bba43c598d5aac4ad7 (patch)
treef240f2f2a876939011dc7754ed8c016cb770730d /src/edje_externals/elm_check.c
parent53b5bbaa4f9bef042cce63a476cf75a9c648f9dc (diff)
Allowing that icon/content can be set as NULL
Now, we can "remove" the icon used for the widget, in editje. By: Fabiano Fidencio <fidencio@profusion.mobi> SVN revision: 49705
Diffstat (limited to 'src/edje_externals/elm_check.c')
-rw-r--r--src/edje_externals/elm_check.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/edje_externals/elm_check.c b/src/edje_externals/elm_check.c
index 692c5a742..ac167cabf 100644
--- a/src/edje_externals/elm_check.c
+++ b/src/edje_externals/elm_check.c
@@ -41,11 +41,9 @@ external_check_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Ext
41 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 41 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
42 { 42 {
43 Evas_Object *icon = external_common_param_icon_get(obj, param); 43 Evas_Object *icon = external_common_param_icon_get(obj, param);
44 if (icon) 44 if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
45 { 45 elm_check_icon_set(obj, icon);
46 elm_check_icon_set(obj, icon); 46 return EINA_TRUE;
47 return EINA_TRUE;
48 }
49 } 47 }
50 } 48 }
51 else if (!strcmp(param->name, "state")) 49 else if (!strcmp(param->name, "state"))