* some really small fixes

SVN revision: 34220
This commit is contained in:
Davide Andreoli 2008-04-08 21:58:07 +00:00
parent a7d84b0547
commit 2f4daef28f
3 changed files with 20 additions and 31 deletions

View File

@ -18,7 +18,6 @@ static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static void _fill_data(Population *pop, E_Config_Dialog_Data *cfdata);
static void _ilist_cb_selected(void *data);
EAPI E_Config_Dialog *
e_int_config_penguins_module(E_Container *con, const char *params __UNUSED__)
@ -127,8 +126,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
oi = edje_object_add(evas);
edje_object_file_set(oi, theme, "icon");
//printf("TEMA: %s (%s)\n", name, cfdata->theme);
e_widget_ilist_append(ol, oi, name,
_ilist_cb_selected, theme, theme);
e_widget_ilist_append(ol, oi, name, NULL, theme, theme);
if (strcmp(theme, cfdata->theme) == 0)
{
e_widget_ilist_selected_set(ol, count);
@ -143,14 +141,7 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
return o;
}
static void
_ilist_cb_selected(void *data)
{
char *th;
th = data;
printf("CB %s\n", th);
}
static int
_basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
{

View File

@ -106,8 +106,6 @@ _population_init(E_Module *m)
{
Population *pop;
Evas_List *managers, *l, *l2;
printf("PENGUINS: Starting up...\n");
pop = calloc(1, sizeof(Population));
if (!pop)
@ -150,8 +148,8 @@ _population_init(E_Module *m)
{
E_Container *con;
con = l2->data;
printf("PENGUINS: E_container found: '%s' [x:%d y:%d w:%d h:%d]\n",
con->name, con->x, con->y, con->w, con->h);
//printf("PENGUINS: E_container found: '%s' [x:%d y:%d w:%d h:%d]\n",
// con->name, con->x, con->y, con->w, con->h);
pop->cons = evas_list_append(pop->cons, con);
pop->canvas = con->bg_evas;
//e_container_shape_change_callback_add(con, _win_shape_change, NULL);
@ -187,7 +185,7 @@ _population_init(E_Module *m)
name = edje_file_data_get(buf, "PopulationName");
if (name)
{
printf("PENGUINS: Theme found: %s (%s)\n", filename, name);
//printf("PENGUINS: Theme found: %s (%s)\n", filename, name);
pop->themes = evas_list_append(pop->themes, strdup(buf));
}
}
@ -198,7 +196,7 @@ _population_init(E_Module *m)
_population_load(pop);
pop->animator = ecore_animator_add(_cb_animator, pop);
//srand(ecore_time_get()); TODO we need it?
return pop;
}
@ -215,7 +213,7 @@ _action_free(const Evas_Hash *hash, const char *key, void *data, void *fdata)
static void
_population_free(Population *pop)
{
printf("PENGUINS: Free Population\n");
//printf("PENGUINS: Free Population\n");
while (pop->penguins)
{
@ -380,7 +378,7 @@ _theme_load(Population *pop)
if (!name)
return;
printf("PENGUINS: Load theme: %s (%s)\n", name, pop->conf->theme);
//printf("PENGUINS: Load theme: %s (%s)\n", name, pop->conf->theme);
// load standard actions
_load_action(pop, pop->conf->theme, "Walker", ID_WALKER);
@ -398,14 +396,14 @@ _theme_load(Population *pop)
while (_load_custom_action(pop, pop->conf->theme, buf))
snprintf(buf, sizeof(buf), "Custom_%d", i++);
evas_hash_foreach(pop->actions, hash_fn, NULL);
Evas_List *l;
for (l = pop->customs; l; l = l->next )
{
Custom_Action *c = l->data;
printf("PENGUINS: Load custom action: name:'%s' w:%d h:%d h_speed:%d v_speed:%d\n",
c->name, c->w, c->h, c->h_speed, c->v_speed);
}
// evas_hash_foreach(pop->actions, hash_fn, NULL);
// Evas_List *l;
// for (l = pop->customs; l; l = l->next )
// {
// Custom_Action *c = l->data;
// printf("PENGUINS: Load custom action: name:'%s' w:%d h:%d h_speed:%d v_speed:%d\n",
// c->name, c->w, c->h, c->h_speed, c->v_speed);
// }
}
static void
_population_load(Population *pop)
@ -418,9 +416,9 @@ _population_load(Population *pop)
evas_output_viewport_get(pop->canvas, &xx, &yy, &ww, &hh);
//Create edje
printf("PENGUINS: Creating %d penguins\n", pop->conf->penguins_count);
//printf("PENGUINS: Creating %d penguins\n", pop->conf->penguins_count);
for (i = 0; i < pop->conf->penguins_count; i++)
{
tux = malloc(sizeof(Penguin));
@ -466,7 +464,7 @@ _cb_click_r (void *data, Evas_Object *o, const char *emi, const char *src)
static void
_cb_click_c (void *data, Evas_Object *o, const char *emi, const char *src)
{
printf("Center-click on TUX !!!\n");
//printf("Center-click on TUX !!!\n");
}
static void

View File

@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Penguins module (e17)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-01-22 23:33+0200\n"
"Report-Msgid-Bugs-To: enlightenment-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2008-04-08 23:43+0200\n"
"PO-Revision-Date: 2008-01-23 01:50+0200\n"
"Last-Translator: Jani väyrynen <janivayrynen@gmail.com>\n"
"Language-Team: Finnish <janivayrynen@gmail.com>\n"