Enlightenment CVS committal
Author : davemds
Project : e_modules
Module : penguins
Dir : e_modules/penguins
Modified Files:
e_mod_config.c e_mod_main.c
Log Message:
* some really small fixes
===================================================================
RCS file: /cvs/e/e_modules/penguins/e_mod_config.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_config.c 12 Nov 2007 08:29:13 -0000 1.5
+++ e_mod_config.c 8 Apr 2008 21:58:07 -0000 1.6
@@ -18,7 +18,6 @@
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 @@
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 @@
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)
{
===================================================================
RCS file: /cvs/e/e_modules/penguins/e_mod_main.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_mod_main.c 25 Feb 2008 06:38:14 -0000 1.18
+++ e_mod_main.c 8 Apr 2008 21:58:07 -0000 1.19
@@ -106,8 +106,6 @@
{
Population *pop;
Evas_List *managers, *l, *l2;
-
- printf("PENGUINS: Starting up...\n");
pop = calloc(1, sizeof(Population));
if (!pop)
@@ -150,8 +148,8 @@
{
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 @@
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_load(pop);
pop->animator = ecore_animator_add(_cb_animator, pop);
- //srand(ecore_time_get()); TODO we need it?
+
return pop;
}
@@ -215,7 +213,7 @@
static void
_population_free(Population *pop)
{
- printf("PENGUINS: Free Population\n");
+ //printf("PENGUINS: Free Population\n");
while (pop->penguins)
{
@@ -380,7 +378,7 @@
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 @@
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 @@
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 @@
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
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs