Wed Apr 5 13:48:36 2006 Michael Jennings (mej)

Indent!
----------------------------------------------------------------------


SVN revision: 21859
This commit is contained in:
Michael Jennings 2006-04-05 17:48:50 +00:00
parent 9d018cd674
commit 52783331a4
3 changed files with 372 additions and 373 deletions

View File

@ -51,6 +51,7 @@ _create_data(E_Config_Dialog *cfd)
c = cfd->data;
cfdata = E_NEW(E_Config_Dialog_Data, 1);
_fill_data(c, cfdata);
return cfdata;
}

View File

@ -24,8 +24,7 @@ static void _cpu_face_graph_clear (Cpu_Face *cf);
static int cpu_count;
static int cpu_stats[4];
EAPI E_Module_Api e_modapi =
{
EAPI E_Module_Api e_modapi = {
E_MODULE_API_VERSION,
"Cpu"
};
@ -93,8 +92,7 @@ e_modapi_info(E_Module *m)
EAPI int
e_modapi_about(E_Module *m)
{
e_module_dialog_show(D_("Enlightenment Cpu Monitor Module"),
D_("This module is used to monitor a cpu."));
e_module_dialog_show(D_("Enlightenment Cpu Monitor Module"), D_("This module is used to monitor a cpu."));
return 1;
}
@ -125,6 +123,7 @@ _cpu_init(E_Module *m)
Evas_List *mans, *l, *l2;
c = E_NEW(Cpu, 1);
if (!c)
return NULL;
@ -141,6 +140,7 @@ _cpu_init(E_Module *m)
if (!c->conf)
{
c->conf = E_NEW(Config, 1);
c->conf->check_interval = 1;
c->conf->show_text = 1;
c->conf->show_graph = 1;
@ -164,9 +164,11 @@ _cpu_init(E_Module *m)
con = l2->data;
cf = E_NEW(Cpu_Face, 1);
if (cf)
{
cf->conf_face_edd = E_CONFIG_DD_NEW("Cpu_Face_Config", Config_Face);
#undef T
#undef D
#define T Config_Face
@ -179,6 +181,7 @@ _cpu_init(E_Module *m)
cf->evas = con->bg_evas;
cf->conf = E_NEW(Config_Face, 1);
cf->conf->enabled = 1;
if (!_cpu_face_init(cf))
@ -274,10 +277,7 @@ _cpu_face_init(Cpu_Face *cf)
e_gadman_client_domain_set(cf->gmc, "module.cpu", cpu_count++);
e_gadman_client_policy_set(cf->gmc,
E_GADMAN_POLICY_ANYWHERE |
E_GADMAN_POLICY_HMOVE |
E_GADMAN_POLICY_HSIZE |
E_GADMAN_POLICY_VMOVE |
E_GADMAN_POLICY_VSIZE);
E_GADMAN_POLICY_HMOVE | E_GADMAN_POLICY_HSIZE | E_GADMAN_POLICY_VMOVE | E_GADMAN_POLICY_VSIZE);
e_gadman_client_auto_size_set(cf->gmc, 45, 50);
e_gadman_client_align_set(cf->gmc, 1.0, 1.0);
e_gadman_client_resize(cf->gmc, 45, 50);
@ -406,8 +406,7 @@ _cpu_face_cb_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_in
if (ev->button == 3)
{
e_menu_activate_mouse(cf->menu, e_zone_current_get(cf->con),
ev->output.x, ev->output.y, 1, 1,
E_MENU_POP_DIRECTION_DOWN, ev->timestamp);
ev->output.x, ev->output.y, 1, 1, E_MENU_POP_DIRECTION_DOWN, ev->timestamp);
e_util_container_fake_mouse_up_all_later(cf->con);
}
}
@ -459,8 +458,7 @@ _cpu_face_update_values(void *data)
else
edje_object_part_text_set(cf->txt_obj, "in-text", "");
if ((cf->cpu->conf->show_graph) &&
(edje_object_part_exists (cf->cpu_obj,"lines")))
if ((cf->cpu->conf->show_graph) && (edje_object_part_exists(cf->cpu_obj, "lines")))
_cpu_face_graph_values(cf);
else
_cpu_face_graph_clear(cf);
@ -508,8 +506,7 @@ _cpu_face_get_load(Cpu_Face *cf)
while (i < cpu_count)
{
if (fscanf(stat, "%s %lu %lu %lu %lu %lu %lu %lu", dummy,
&new_u, &new_n, &new_s, &new_i, &new_wa, &new_hi, &new_si) < 5)
if (fscanf(stat, "%s %lu %lu %lu %lu %lu %lu %lu", dummy, &new_u, &new_n, &new_s, &new_i, &new_wa, &new_hi, &new_si) < 5)
{
fclose(stat);
return;
@ -643,6 +640,7 @@ _cpu_face_graph_clear(Cpu_Face *cf)
for (l = cf->old_values[i]; l; l = l->next)
{
Evas_Object *o;
o = evas_list_data(l);
edje_object_part_unswallow(cf->chart_obj, o);
evas_object_del(o);