summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-12-06 00:38:31 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-12-06 00:38:31 +0100
commite09ee7326b153316eefec9699d5f379319a17b10 (patch)
treea220f8bec1c55bb14451517cc029fac2bc6e5daf
parentbf1dbf743004ebd255838ec0e35381c3e58db774 (diff)
Implemented Item raise.
-rw-r--r--src/elm_settingspane.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/elm_settingspane.c b/src/elm_settingspane.c
index 7058f5e..254db8a 100644
--- a/src/elm_settingspane.c
+++ b/src/elm_settingspane.c
@@ -749,13 +749,14 @@ stack_item_raise(Elm_Settingspane_Item *item)
749 Elm_Settingspane_Item_Data *id = eo_data_scope_get(item, ELM_SETTINGSPANE_ITEM_CLASS); 749 Elm_Settingspane_Item_Data *id = eo_data_scope_get(item, ELM_SETTINGSPANE_ITEM_CLASS);
750 Elm_Settingspane_Data *wd = eo_data_scope_get(id->sw, ELM_SETTINGSPANE_CLASS); 750 Elm_Settingspane_Data *wd = eo_data_scope_get(id->sw, ELM_SETTINGSPANE_CLASS);
751 Stack_Item *it; 751 Stack_Item *it;
752 Eina_List *node; 752 Eina_List *node, *nnode;
753 753
754 EINA_LIST_FOREACH(wd->stack, node, it) 754 EINA_LIST_FOREACH_SAFE(wd->stack, node, nnode, it)
755 { 755 {
756 if (it->start == item) 756 if (it->start == item)
757 { 757 {
758 //TODO raise this item 758 wd->stack = eina_list_remove(wd->stack, it);
759 wd->stack = eina_list_append(wd->stack, it);
759 return EINA_TRUE; 760 return EINA_TRUE;
760 } 761 }
761 } 762 }