Enlightenment CVS committal
Author : englebass
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_edit.c
Log Message:
formatting
===================================================================
RCS file: /cvs/e/e17/libs/edje/src/lib/edje_edit.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- edje_edit.c 13 Mar 2008 19:01:53 -0000 1.10
+++ edje_edit.c 13 Mar 2008 19:08:14 -0000 1.11
@@ -105,7 +105,7 @@
return NULL;
}
- if (sscanf(delim,"%lf", &value) != 1)
+ if (sscanf(delim, "%lf", &value) != 1)
{
free(name);
return NULL;
@@ -132,12 +132,12 @@
if (!ed->file) return -1;
if (!ed->file->image_dir) return -1;
- //printf("SEARCH IMAGE %s\n",image_name);
+ //printf("SEARCH IMAGE %s\n", image_name);
for (l = ed->file->image_dir->entries; l; l = l->next)
{
i = l->data;
- if (strcmp(image_name,i->entry) == 0)
+ if (strcmp(image_name, i->entry) == 0)
{
//printf(" Found id: %d \n", i->id);
return i->id;
@@ -147,7 +147,7 @@
return -1;
}
-static const char*
+static const char *
_edje_image_name_find(Evas_Object *obj, int image_id)
{
Edje_Image_Directory_Entry *i;
@@ -562,7 +562,7 @@
while (lst)
{
if (lst->data) evas_stringshare_del(lst->data);
- //printf("FREE: %s\n",lst->data);
+ //printf("FREE: %s\n", lst->data);
lst = evas_list_remove(lst, lst->data);
}
}
@@ -631,7 +631,7 @@
}
/* Init Edje_Part_Collection_Directory_Entry */
- printf(" new id: %d\n",id);
+ printf(" new id: %d\n", id);
de->id = id;
de->entry = mem_strdup(name);
ed->file->collection_dir->entries =
evas_list_append(ed->file->collection_dir->entries, de);
@@ -679,7 +679,7 @@
"for writing output\n", ed->file->path);
return 0;
}
- snprintf(buf, SZ(buf), "collections/%d",g->id);
+ snprintf(buf, SZ(buf), "collections/%d", g->id);
eet_delete(eetf, buf);
eet_close(eetf);
@@ -1180,8 +1180,8 @@
pd = _edje_part_description_find_byname(ed, part, state);
if (!pd) return 0;
- printf("EDJE: Set state: %s\n",pd->state.name);
- _edje_part_description_apply(ed, rp, pd->state.name, pd->state.value, NULL,
0); //WHAT IS NULL ,0
+ printf("EDJE: Set state: %s\n", pd->state.name);
+ _edje_part_description_apply(ed, rp, pd->state.name, pd->state.value, NULL,
0); //WHAT IS NULL , 0
edje_object_calc_force(obj);
return 1;
@@ -1251,7 +1251,7 @@
edje_edit_part_mouse_events_get(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(0);
- //printf("Get mouse_events for part: %s [%d]\n",part,
rp->part->mouse_events);
+ //printf("Get mouse_events for part: %s [%d]\n", part,
rp->part->mouse_events);
return rp->part->mouse_events;
}
@@ -1260,7 +1260,7 @@
{
GET_RP_OR_RETURN();
if (!rp->object) return;
- printf("Set mouse_events for part: %s [%d]\n",part, mouse_events);
+ printf("Set mouse_events for part: %s [%d]\n", part, mouse_events);
rp->part->mouse_events = mouse_events ? 1 : 0;
@@ -1280,7 +1280,7 @@
edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(0);
- //printf("Get repeat_events for part: %s [%d]\n",part,
rp->part->repeat_events);
+ //printf("Get repeat_events for part: %s [%d]\n", part,
rp->part->repeat_events);
return rp->part->repeat_events;
}
@@ -1289,7 +1289,7 @@
{
GET_RP_OR_RETURN();
if (!rp->object) return;
- printf("Set repeat_events for part: %s [%d]\n",part, repeat_events);
+ printf("Set repeat_events for part: %s [%d]\n", part, repeat_events);
rp->part->repeat_events = repeat_events ? 1 : 0;
@@ -1347,7 +1347,7 @@
//append default state
state = rp->part->default_desc;
snprintf(state_name, MAX_PATH,
- "%s %.2f", state->state.name,state->state.value);
+ "%s %.2f", state->state.name, state->state.value);
states = evas_list_append(states, evas_stringshare_add(state_name));
//printf("NEW STATE def: %s\n", state->state.name);
@@ -1356,7 +1356,7 @@
{
state = l->data;
snprintf(state_name, sizeof(state_name),
- "%s %.2f", state->state.name,state->state.value);
+ "%s %.2f", state->state.name, state->state.value);
states = evas_list_append(states, evas_stringshare_add(state_name));
//printf("NEW STATE: %s\n", state_name);
}
@@ -1378,7 +1378,7 @@
/* split name from value */
delim = strrchr(new_name, (int)' ');
if (!delim) return 0;
- if (sscanf(delim,"%lf", &value) != 1) return 0;
+ if (sscanf(delim, "%lf", &value) != 1) return 0;
delim[0] = '\0';
/* update programs */
@@ -1418,7 +1418,7 @@
EAPI void
edje_edit_state_del(Evas_Object *obj, const char *part, const char *state)
{
- printf("REMOVE STATE: %s IN PART: %s\n",state, part);
+ printf("REMOVE STATE: %s IN PART: %s\n", state, part);
GET_RP_OR_RETURN();
@@ -1521,7 +1521,7 @@
edje_edit_state_rel1_relative_x_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel1 rel of part: %s state: %s
[%f]\n",part,state,pd->rel1.relative_x);
+ //printf("Get rel1 rel of part: %s state: %s [%f]\n", part, state,
pd->rel1.relative_x);
return pd->rel1.relative_x;
}
@@ -1529,7 +1529,7 @@
edje_edit_state_rel1_relative_y_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel1 rel of part: %s state: %s\n",part,state);
+ //printf("Get rel1 rel of part: %s state: %s\n", part, state);
return pd->rel1.relative_y;
}
@@ -1537,7 +1537,7 @@
edje_edit_state_rel2_relative_x_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel2 rel of part: %s state: %s\n",part,state);
+ //printf("Get rel2 rel of part: %s state: %s\n", part, state);
return pd->rel2.relative_x;
}
@@ -1545,7 +1545,7 @@
edje_edit_state_rel2_relative_y_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel2 rel of part: %s state: %s\n",part,state);
+ //printf("Get rel2 rel of part: %s state: %s\n", part, state);
return pd->rel2.relative_y;
}
@@ -1595,7 +1595,7 @@
edje_edit_state_rel1_offset_x_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel1 offset of part: %s state: %s\n",part,state);
+ //printf("Get rel1 offset of part: %s state: %s\n", part, state);
return pd->rel1.offset_x;
}
@@ -1603,7 +1603,7 @@
edje_edit_state_rel1_offset_y_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel1 offset of part: %s state: %s\n",part,state);
+ //printf("Get rel1 offset of part: %s state: %s\n", part, state);
return pd->rel1.offset_y;
}
@@ -1611,7 +1611,7 @@
edje_edit_state_rel2_offset_x_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel2 offset of part: %s state: %s\n",part,state);
+ //printf("Get rel2 offset of part: %s state: %s\n", part, state);
return pd->rel2.offset_x;
}
@@ -1619,7 +1619,7 @@
edje_edit_state_rel2_offset_y_get(Evas_Object *obj, const char *part, const
char *state)
{
GET_PD_OR_RETURN(0);
- //printf("Get rel2 offset of part: %s state: %s\n",part,state);
+ //printf("Get rel2 offset of part: %s state: %s\n", part, state);
return pd->rel2.offset_y;
}
@@ -1669,7 +1669,7 @@
{
Edje_Real_Part *rel;
GET_PD_OR_RETURN(NULL);
- //printf("Get rel1x TO of part: %s state: %s\n",part,state);
+ //printf("Get rel1x TO of part: %s state: %s\n", part, state);
if (pd->rel1.id_x == -1) return NULL;
@@ -1686,7 +1686,7 @@
{
Edje_Real_Part *rel;
GET_PD_OR_RETURN(NULL);
- //printf("Get rel1y TO of part: %s state: %s\n",part,state);
+ //printf("Get rel1y TO of part: %s state: %s\n", part, state);
if (pd->rel1.id_y == -1) return NULL;
@@ -1703,7 +1703,7 @@
{
Edje_Real_Part *rel;
GET_PD_OR_RETURN(NULL);
- //printf("Get rel2x TO of part: %s state: %s\n",part,state);
+ //printf("Get rel2x TO of part: %s state: %s\n", part, state);
if (pd->rel2.id_x == -1) return NULL;
@@ -1720,7 +1720,7 @@
{
Edje_Real_Part *rel;
GET_PD_OR_RETURN(NULL);
- //printf("Get rel2y TO of part: %s state: %s\n",part,state);
+ //printf("Get rel2y TO of part: %s state: %s\n", part, state);
if (pd->rel2.id_y == -1) return NULL;
@@ -1738,7 +1738,7 @@
{
Edje_Real_Part *relp;
GET_PD_OR_RETURN();
- printf("Set rel1 to x on state: %s (to part: )\n",state);
+ printf("Set rel1 to x on state: %s (to part: )\n", state);
if (rel_to)
{
@@ -1760,7 +1760,7 @@
Edje_Real_Part *relp;
GET_PD_OR_RETURN();
- //printf("Set rel1 to y on state: %s (to part: %s)\n",state, rel_to);
+ //printf("Set rel1 to y on state: %s (to part: %s)\n", state, rel_to);
if (rel_to)
{
@@ -1781,7 +1781,7 @@
{
Edje_Real_Part *relp;
GET_PD_OR_RETURN();
- printf("Set rel2 to x on state: %s (to part: )\n",state);
+ printf("Set rel2 to x on state: %s (to part: )\n", state);
if (rel_to)
{
@@ -1802,7 +1802,7 @@
{
Edje_Real_Part *relp;
GET_PD_OR_RETURN();
- //printf("Set rel2 to y on state: %s (to part: %s)\n",state, rel_to);
+ //printf("Set rel2 to y on state: %s (to part: %s)\n", state, rel_to);
if (rel_to)
{
@@ -2131,7 +2131,7 @@
edje_object_calc_force(obj);
}
-EAPI Evas_List*
+EAPI Evas_List *
edje_edit_fonts_list_get(Evas_Object *obj)
{
Edje_Font_Directory_Entry *f;
@@ -2273,7 +2273,7 @@
return 1;
}
-EAPI const char*
+EAPI const char *
edje_edit_state_font_get(Evas_Object *obj, const char *part, const char *state)
{
GET_PD_OR_RETURN(NULL);
@@ -2316,7 +2316,7 @@
/* IMAGES API */
/****************/
-EAPI Evas_List*
+EAPI Evas_List *
edje_edit_images_list_get(Evas_Object *obj)
{
Edje_Image_Directory_Entry *i;
@@ -2398,7 +2398,7 @@
return _edje_image_id_find(obj, image_name);
}
-EAPI const char*
+EAPI const char *
edje_edit_state_image_get(Evas_Object *obj, const char *part, const char
*state)
{
char *image;
@@ -2427,7 +2427,7 @@
edje_object_calc_force(obj);
}
-EAPI Evas_List*
+EAPI Evas_List *
edje_edit_state_tweens_list_get(Evas_Object *obj, const char *part, const char
*state)
{
Edje_Part_Image_Id *i;
@@ -2523,7 +2523,7 @@
/******************/
/* PROGRAMS API */
/******************/
-Edje_Program*
+Edje_Program *
_edje_program_get_byname(Evas_Object *obj, const char *prog_name)
{
Edje_Program *epr;
@@ -2689,7 +2689,7 @@
{
Edje_Program *p;
p = ed->table_programs[i];
- // printf("Check dependencies on %s\n",p->name);
+ // printf("Check dependencies on %s\n", p->name);
/* check in afters */
l = p->after;
while (l)
@@ -2770,7 +2770,7 @@
return 1;
}
-EAPI const char*
+EAPI const char *
edje_edit_program_source_get(Evas_Object *obj, const char *prog)
{
GET_EPR_OR_RETURN(NULL);
@@ -2854,7 +2854,7 @@
return 1;
}
-EAPI const char*
+EAPI const char *
edje_edit_program_state2_get(Evas_Object *obj, const char *prog)
{
GET_EPR_OR_RETURN(NULL);
@@ -3159,7 +3159,7 @@
/* EMBRYO SCRIPTS API */
/*************************/
-EAPI const char*
+EAPI const char *
edje_edit_script_get(Evas_Object *obj)
{
Embryo_Program *script = NULL;
@@ -3315,7 +3315,7 @@
p = l->data;
rp = ed->table_parts[p->id % ed->table_parts_size];
- printf(" [%d]%s ",p->id, p->name);
+ printf(" [%d]%s ", p->id, p->name);
if (p == rp->part)
printf(" OK!\n");
else
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs