summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_icon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_icon.c')
-rw-r--r--src/bin/elementary/test_icon.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/bin/elementary/test_icon.c b/src/bin/elementary/test_icon.c
index 3109bdd8e9..b776ac01b7 100644
--- a/src/bin/elementary/test_icon.c
+++ b/src/bin/elementary/test_icon.c
@@ -158,21 +158,23 @@ _standard_list_populate(Evas_Object *list, int size)
158 EINA_LIST_FREE(l, group) 158 EINA_LIST_FREE(l, group)
159 { 159 {
160 // group = "/elm/icon/standard-name/style/maybe_another_style??" 160 // group = "/elm/icon/standard-name/style/maybe_another_style??"
161 snprintf(name, sizeof(name), "%s", group + 9); 161 snprintf(name, sizeof(name), "%s", group + 9);
162 if ((p = strrchr(name, '/'))) 162 if ((p = strrchr(name, '/')))
163 *p = '\0'; 163 *p = '\0';
164 // printf("Found group:%s Name:%s\n", group, name); 164 // printf("Found group:%s Name:%s\n", group, name);
165 165
166 // quick hack to show only standard-compliant icons 166 // quick hack to show only standard-compliant icons
167 // apart from the "folder" one, all the others have "-" in the name 167 // apart from the "folder" one, all the others have "-" in the name
168 if ((strrchr(name, '-') != NULL) || !strcmp(name, "folder")) 168 // ...also do not show deprecated arrow-* icons
169 { 169 if (((strrchr(name, '-') != NULL) || !strcmp(name, "folder"))
170 ic = elm_icon_add(list); 170 && (strncmp(name, "arrow-", 6)))
171 elm_icon_standard_set(ic, name); 171 {
172 if (size) 172 ic = elm_icon_add(list);
173 evas_object_size_hint_min_set(ic, size, size); 173 elm_icon_standard_set(ic, name);
174 elm_list_item_append(list, name, ic, NULL, NULL, NULL); 174 if (size)
175 } 175 evas_object_size_hint_min_set(ic, size, size);
176 elm_list_item_append(list, name, ic, NULL, NULL, NULL);
177 }
176 178
177 eina_stringshare_del(group); 179 eina_stringshare_del(group);
178 } 180 }