summaryrefslogtreecommitdiff
path: root/src/bin/egui_gui/props_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/egui_gui/props_helper.c')
-rw-r--r--src/bin/egui_gui/props_helper.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bin/egui_gui/props_helper.c b/src/bin/egui_gui/props_helper.c
index eae505f..572a807 100644
--- a/src/bin/egui_gui/props_helper.c
+++ b/src/bin/egui_gui/props_helper.c
@@ -146,6 +146,22 @@ props_hoversel_objects_add(Eo *box, Eo *hover_parent, const char *default_val, c
146 /*check, if wdg is content of w on any level. */ 146 /*check, if wdg is content of w on any level. */
147 (wdg_is_content_of(w, wdg)))) 147 (wdg_is_content_of(w, wdg))))
148 continue; 148 continue;
149
150 /* if widget already has this resize object, don't add it to hoversel*/
151 Eina_List *itr2;
152 Gui_Widget_Property *prop;
153 Eina_Bool dont_add_this_widget = EINA_FALSE;
154 EINA_LIST_FOREACH(wdg_prop_list_get(wdg), itr2, prop)
155 {
156 if (!strcmp(prop_name_get(prop), RESIZE_OBJECT_ADD))
157 {
158 Gui_Value *val = prop_value_nth_get(prop, 0);
159 if (DEP_ID_GET(val) == wdg_dep_id_get(w))
160 dont_add_this_widget = EINA_TRUE;
161 }
162 }
163 if (dont_add_this_widget) continue;
164
149 elm_hoversel_item_add(hoversel, wdg_name_get(w), NULL, ELM_ICON_NONE, NULL, NULL); 165 elm_hoversel_item_add(hoversel, wdg_name_get(w), NULL, ELM_ICON_NONE, NULL, NULL);
150 } 166 }
151 } 167 }