aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-04 11:59:02 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-04 11:59:02 +0000
commitafd92c939404e2aca27efdc78d6e3e1e158f7267 (patch)
treefc06ea3544cda701a7bc67504fefb36c46ccab41
parentf4841a575082fbe553848c30b640f38c63d045d4 (diff)
downloadenlightenment-afd92c939404e2aca27efdc78d6e3e1e158f7267.tar.gz
enlightenment-afd92c939404e2aca27efdc78d6e3e1e158f7267.tar.xz
enlightenment-afd92c939404e2aca27efdc78d6e3e1e158f7267.zip
fix button toggling in personal apps dialog
SVN revision: 83594
-rw-r--r--ChangeLog1
-rw-r--r--NEWS1
-rw-r--r--src/modules/conf_applications/e_int_config_apps_personal.c11
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));
}