show in config which plugin are loaded

SVN revision: 49137
This commit is contained in:
Hannes Janetzek 2010-05-22 13:04:44 +00:00
parent b9d3e808c9
commit ae4d9be066
1 changed files with 25 additions and 9 deletions

View File

@ -197,7 +197,24 @@ _fill_list(Eina_List *plugins, Evas_Object *obj, int enabled __UNUSED__)
EINA_LIST_FOREACH(plugins, l, pc)
{
e_widget_ilist_append(obj, NULL, pc->name, NULL, pc, NULL);
Evas_Object *end = edje_object_add(evas);
if (!end)
continue;
if (e_theme_edje_object_set(end, "base/theme/widgets",
"e/widgets/ilist/toggle_end"))
{
char *sig = pc->plugin ? "e,state,checked" : "e,state,unchecked";
edje_object_signal_emit(end, sig, "e");
}
else
{
EINA_LOG_ERR("your theme misses 'e/widgets/ilist/toggle_end'!");
evas_object_del(end);
end = NULL;
}
e_widget_ilist_append_full(obj, NULL, end, pc->name, NULL, pc, NULL);
}
e_widget_ilist_go(obj);
@ -253,12 +270,11 @@ static void
_list_select_cb (void *data, Evas_Object *obj)
{
int sel = e_widget_ilist_selected_get(obj);
Plugin_Config *pc;
Plugin_Config *pc = NULL;
Plugin_Page *page = data;
if (sel >= 0)
if (sel >= 0 && (pc = eina_list_nth(page->configs, sel)) && pc->plugin)
{
pc = eina_list_nth(page->configs, sel);
e_widget_entry_text_set(page->o_trigger, pc->trigger);
e_widget_disabled_set(page->o_trigger, 0);