From afd92c939404e2aca27efdc78d6e3e1e158f7267 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 4 Feb 2013 11:59:02 +0000 Subject: [PATCH] fix button toggling in personal apps dialog SVN revision: 83594 --- ChangeLog | 1 + NEWS | 1 + .../conf_applications/e_int_config_apps_personal.c | 11 +---------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8299d4e35..a2fcc20e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/NEWS b/NEWS index fe7871fd1..f1b310cdd 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/src/modules/conf_applications/e_int_config_apps_personal.c b/src/modules/conf_applications/e_int_config_apps_personal.c index 8086627b8..85e8bd167 100644 --- a/src/modules/conf_applications/e_int_config_apps_personal.c +++ b/src/modules/conf_applications/e_int_config_apps_personal.c @@ -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)); }