summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm_panes.c
diff options
context:
space:
mode:
authorTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-10-22 21:41:22 +0000
committerTiago Rezende Campos Falcao <developer@tiagofalcao.com>2010-10-22 21:41:22 +0000
commit75adbd72119bc429d0c2d57642ad3c371604b408 (patch)
treee48f007986b8630f2374f096a634802c43749bee /src/edje_externals/elm_panes.c
parent3c1d649b7123dd7fcd536e80c774ff1dbf8d1edf (diff)
Coccinelle
SVN revision: 53786
Diffstat (limited to 'src/edje_externals/elm_panes.c')
-rw-r--r--src/edje_externals/elm_panes.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/edje_externals/elm_panes.c b/src/edje_externals/elm_panes.c
index 841c3d873..a965d310c 100644
--- a/src/edje_externals/elm_panes.c
+++ b/src/edje_externals/elm_panes.c
@@ -40,8 +40,8 @@ static void external_panes_state_set(void *data __UNUSED__,
40static Eina_Bool external_panes_param_set(void *data __UNUSED__, 40static Eina_Bool external_panes_param_set(void *data __UNUSED__,
41 Evas_Object *obj, const Edje_External_Param *param) 41 Evas_Object *obj, const Edje_External_Param *param)
42{ 42{
43 if (!strcmp(param->name, "content left") 43 if ((!strcmp(param->name, "content left"))
44 && param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 44 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING))
45 { 45 {
46 Evas_Object *content = external_common_param_edje_object_get(obj, param); 46 Evas_Object *content = external_common_param_edje_object_get(obj, param);
47 if ((strcmp(param->s, "")) && (!content)) 47 if ((strcmp(param->s, "")) && (!content))
@@ -49,8 +49,8 @@ static Eina_Bool external_panes_param_set(void *data __UNUSED__,
49 elm_panes_content_left_set(obj, content); 49 elm_panes_content_left_set(obj, content);
50 return EINA_TRUE; 50 return EINA_TRUE;
51 } 51 }
52 else if (!strcmp(param->name, "content right") 52 else if ((!strcmp(param->name, "content right"))
53 && param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING) 53 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING))
54 { 54 {
55 Evas_Object *content = external_common_param_edje_object_get(obj, param); 55 Evas_Object *content = external_common_param_edje_object_get(obj, param);
56 if ((strcmp(param->s, "")) && (!content)) 56 if ((strcmp(param->s, "")) && (!content))
@@ -58,14 +58,14 @@ static Eina_Bool external_panes_param_set(void *data __UNUSED__,
58 elm_panes_content_right_set(obj, content); 58 elm_panes_content_right_set(obj, content);
59 return EINA_TRUE; 59 return EINA_TRUE;
60 } 60 }
61 else if (!strcmp(param->name, "horizontal") 61 else if ((!strcmp(param->name, "horizontal"))
62 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 62 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
63 { 63 {
64 elm_panes_horizontal_set(obj, param->i); 64 elm_panes_horizontal_set(obj, param->i);
65 return EINA_TRUE; 65 return EINA_TRUE;
66 } 66 }
67 else if (!strcmp(param->name, "left size") 67 else if ((!strcmp(param->name, "left size"))
68 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 68 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE))
69 { 69 {
70 elm_panes_content_left_size_set(obj, param->d); 70 elm_panes_content_left_size_set(obj, param->d);
71 return EINA_TRUE; 71 return EINA_TRUE;
@@ -90,14 +90,14 @@ static Eina_Bool external_panes_param_get(void *data __UNUSED__,
90 /* not easy to get content name back from live object */ 90 /* not easy to get content name back from live object */
91 return EINA_FALSE; 91 return EINA_FALSE;
92 } 92 }
93 else if (!strcmp(param->name, "horizontal") 93 else if ((!strcmp(param->name, "horizontal"))
94 && param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) 94 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
95 { 95 {
96 param->i = elm_panes_horizontal_get(obj); 96 param->i = elm_panes_horizontal_get(obj);
97 return EINA_TRUE; 97 return EINA_TRUE;
98 } 98 }
99 else if (!strcmp(param->name, "left size") 99 else if ((!strcmp(param->name, "left size"))
100 && param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE) 100 && (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE))
101 { 101 {
102 param->d = elm_panes_content_left_size_get(obj); 102 param->d = elm_panes_content_left_size_get(obj);
103 return EINA_TRUE; 103 return EINA_TRUE;