Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : cpu
Dir : e_modules/cpu
Modified Files:
e_mod_main.c
Log Message:
Fix e_config_limit for show_text and show_graph.
===================================================================
RCS file: /cvs/e/e_modules/cpu/e_mod_main.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- e_mod_main.c 9 Mar 2006 11:36:10 -0000 1.12
+++ e_mod_main.c 1 Apr 2006 10:22:41 -0000 1.13
@@ -145,8 +145,8 @@
c->conf->show_graph = 1;
}
E_CONFIG_LIMIT(c->conf->check_interval, 0, 60);
- E_CONFIG_LIMIT(c->conf->check_interval, 0, 1);
- E_CONFIG_LIMIT(c->conf->check_interval, 0, 1);
+ E_CONFIG_LIMIT(c->conf->show_text, 0, 1);
+ E_CONFIG_LIMIT(c->conf->show_graph, 0, 1);
_cpu_config_menu_new(c);
@@ -315,9 +315,11 @@
cf->conf->enabled = 1;
e_config_save_queue();
evas_object_show(cf->cpu_obj);
- evas_object_show(cf->chart_obj);
evas_object_show(cf->event_obj);
- evas_object_show(cf->txt_obj);
+ if (cf->cpu->conf->show_graph)
+ evas_object_show(cf->chart_obj);
+ if (cf->cpu->conf->show_text)
+ evas_object_show(cf->txt_obj);
}
static void
@@ -593,4 +595,6 @@
}
evas_list_free(cf->old_values);
cf->old_values = NULL;
+ if (!cf->cpu->conf->show_graph)
+ evas_object_hide(cf->chart_obj);
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs