summaryrefslogtreecommitdiff
path: root/src/lib/elc_settingspane.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elc_settingspane.c')
-rw-r--r--src/lib/elc_settingspane.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/elc_settingspane.c b/src/lib/elc_settingspane.c
index b7201049f..0164db022 100644
--- a/src/lib/elc_settingspane.c
+++ b/src/lib/elc_settingspane.c
@@ -785,7 +785,7 @@ _elm_settingspane_item_append_full(Elm_Settingspane_Data *pd, void *usr_data,
785 const char *name, 785 const char *name,
786 Elm_Settingspane_Item *par, Elm_Settingspane_Item *rel) 786 Elm_Settingspane_Item *par, Elm_Settingspane_Item *rel)
787{ 787{
788 Elm_Settingspane_Item *item = eo_add(ELM_SETTINGSPANE_ITEM_CLASS, NULL); 788 Elm_Settingspane_Item *item = eo_add(ELM_SETTINGSPANE_ITEM_CLASS, par ? par : pd->zero);
789 Elm_Settingspane_Item_Data *data = eo_data_scope_get(item, ELM_SETTINGSPANE_ITEM_CLASS); 789 Elm_Settingspane_Item_Data *data = eo_data_scope_get(item, ELM_SETTINGSPANE_ITEM_CLASS);
790 790
791 data->data = usr_data; 791 data->data = usr_data;
@@ -794,10 +794,6 @@ _elm_settingspane_item_append_full(Elm_Settingspane_Data *pd, void *usr_data,
794 data->key_words = NULL; 794 data->key_words = NULL;
795 data->key_words = eina_list_append(data->key_words, eina_stringshare_add(name)); 795 data->key_words = eina_list_append(data->key_words, eina_stringshare_add(name));
796 796
797 //XXX: this is a hack think of a constructor
798
799 eo_do(item, eo_parent_set(par ? par : pd->zero));
800
801 return item; 797 return item;
802} 798}
803 799
@@ -1156,6 +1152,7 @@ _elm_settingspane_item_eo_base_parent_set(Eo *obj, Elm_Settingspane_Item_Data *p
1156 pd_par = IC_DATA_L(parent); 1152 pd_par = IC_DATA_L(parent);
1157 pd_par->childs = eina_list_append_relative(pd_par->childs, obj, pd->rel); 1153 pd_par->childs = eina_list_append_relative(pd_par->childs, obj, pd->rel);
1158 pd->sw = pd_par->sw; 1154 pd->sw = pd_par->sw;
1155
1159 //check if we are in there 1156 //check if we are in there
1160 top = _history_stack_current(pd->sw); 1157 top = _history_stack_current(pd->sw);
1161 if (top == parent) 1158 if (top == parent)