From 1e1eea1558c492f08c5fca1f81f3397fe2fc6cf4 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Fri, 30 Dec 2005 13:58:16 +0000 Subject: [PATCH] Fix IBox Configure Call to check for current container SVN revision: 19421 --- src/modules/ibox/e_mod_main.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/modules/ibox/e_mod_main.c b/src/modules/ibox/e_mod_main.c index 87a8e9d0f..1a2a05746 100644 --- a/src/modules/ibox/e_mod_main.c +++ b/src/modules/ibox/e_mod_main.c @@ -149,14 +149,21 @@ int e_modapi_config(E_Module *m) { IBox *e; - IBox_Box *face; + Evas_List *l; e = m->data; if (!e) return 0; if (!e->boxes) return 0; - face = e->boxes->data; - if (!face) return 0; - _config_ibox_module(face->con, face->ibox); + + for (l = e->boxes; l; l = l->next) + { + 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); + } + evas_list_free(l); return 1; } @@ -259,7 +266,7 @@ _ibox_new() } static void - _ibox_free(IBox *ib) +_ibox_free(IBox *ib) { E_CONFIG_DD_FREE(conf_edd); E_CONFIG_DD_FREE(conf_box_edd);