summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm.c
diff options
context:
space:
mode:
authorJihoon Kim <imfine98@gmail.com>2012-03-02 09:00:52 +0000
committerJihoon Kim <imfine98@gmail.com>2012-03-02 09:00:52 +0000
commita0dbfad70f52ef2393fd710d3e47c9116238f361 (patch)
tree0490e91e24c47657f2d999710953c6e827d2d684 /src/edje_externals/elm.c
parent9bdd46b35c05a8375de99519421d3de0975902f5 (diff)
elm/edje_externals: fix formatting
SVN revision: 68620
Diffstat (limited to '')
-rw-r--r--src/edje_externals/elm.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index 4f9a8f3ad..59d41e890 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -38,37 +38,37 @@ _external_obj_del(void *data __UNUSED__, Evas *evas __UNUSED__, Evas_Object *obj
38void 38void
39external_signal(void *data __UNUSED__, Evas_Object *obj, const char *sig, const char *source) 39external_signal(void *data __UNUSED__, Evas_Object *obj, const char *sig, const char *source)
40{ 40{
41 char *_signal = strdup(sig); 41 char *_signal = strdup(sig);
42 char *p = _signal; 42 char *p = _signal;
43 Evas_Object *content; 43 Evas_Object *content;
44 44
45 while((*p!='\0') && (*p!=']')) 45 while((*p!='\0') && (*p!=']'))
46 p++; 46 p++;
47 47
48 48
49 if((*p=='\0') || (*(p+1)!=':')) 49 if((*p=='\0') || (*(p+1)!=':'))
50 { 50 {
51 ERR("Invalid External Signal received: '%s' '%s'\n", sig, source); 51 ERR("Invalid External Signal received: '%s' '%s'\n", sig, source);
52 free(_signal); 52 free(_signal);
53 return ; 53 return ;
54 } 54 }
55 55
56 *p = '\0'; 56 *p = '\0';
57 p+=2; //jump ']' and ':' 57 p+=2; //jump ']' and ':'
58 58
59 Edje_External_Type *type = evas_object_data_get(obj, "Edje_External_Type"); 59 Edje_External_Type *type = evas_object_data_get(obj, "Edje_External_Type");
60 if (!type->content_get) 60 if (!type->content_get)
61 { 61 {
62 ERR("external type '%s' from module '%s' does not provide content_get()", 62 ERR("external type '%s' from module '%s' does not provide content_get()",
63 type->module_name, type->module); 63 type->module_name, type->module);
64 free(_signal); 64 free(_signal);
65 return ; 65 return ;
66 } 66 }
67 67
68 content = type->content_get(type->data, obj, _signal); 68 content = type->content_get(type->data, obj, _signal);
69 free(_signal); 69 free(_signal);
70 if(content) 70 if(content)
71 edje_object_signal_emit(content, sig + (p - _signal), source); 71 edje_object_signal_emit(content, sig + (p - _signal), source);
72} 72}
73 73
74const char * 74const char *