Fix this the right way. Better trapping

SVN revision: 19423
This commit is contained in:
Christopher Michael 2005-12-30 14:07:44 +00:00
parent 6d8c8baa0f
commit 1cebd90d14
2 changed files with 12 additions and 6 deletions

View File

@ -165,18 +165,21 @@ int
e_modapi_config(E_Module *m)
{
IBar *ib;
E_Container *con;
Evas_List *l;
ib = m->data;
con = e_container_current_get(e_manager_current_get());
if (!ib) return 0;
for (l = ib->bars; l; l = l->next)
{
IBar_Bar *ibb;
ibb = l->data;
if (ibb->con == con) _config_ibar_module(con, ib);
break;
if (!ibb) return 0;
if (ibb->con == e_container_current_get(e_manager_current_get()))
{
_config_ibar_module(ibb->con, ib);
break;
}
}
return 1;
}

View File

@ -160,8 +160,11 @@ e_modapi_config(E_Module *m)
IBox_Box *face;
face = l->data;
if (!face) return 0;
if (face->con == e_container_current_get(e_manager_current_get()))
_config_ibox_module(face->con, face->ibox);
if (face->con == e_container_current_get(e_manager_current_get()))
{
_config_ibox_module(face->con, face->ibox);
break;
}
}
return 1;
}