fix button toggling in personal apps dialog

SVN revision: 83594
This commit is contained in:
Mike Blumenkrantz 2013-02-04 11:59:02 +00:00
parent f4841a5750
commit afd92c9394
3 changed files with 3 additions and 10 deletions

View File

@ -4,6 +4,7 @@
* add support for edje files in filepreview widget
* fix possible crash in xkb rule parsing
* fix list update on deletion of personal app launchers
* fix button toggling in personal app launchers dialog
2013-02-01 Mike Blumenkrantz

1
NEWS
View File

@ -141,3 +141,4 @@ Fixes:
* fixed behavior of Up/Down keys in filemanager when typebuf was visible
* fix possible crash in xkb rule parsing
* fix list update on deletion of personal app launchers
* fix button toggling in personal app launchers dialog

View File

@ -218,16 +218,7 @@ static void
_widget_list_selection_changed(void *data, Evas_Object *obj __UNUSED__)
{
E_Config_Dialog_Data *cfdata = data;
const Eina_List *l;
const E_Ilist_Item *it;
int selnum = 0;
EINA_LIST_FOREACH(e_widget_ilist_items_get(cfdata->obj.list), l, it)
{
if (!it->selected) continue;
selnum++;
}
if (selnum == 0) e_widget_disabled_set(cfdata->obj.del, 1);
else e_widget_disabled_set(cfdata->obj.del, 0);
e_widget_disabled_set(cfdata->obj.del, !e_widget_ilist_selected_count_get(cfdata->obj.list));
}