elementary: fix a few non-standard icon names

moving the widgets away from non-standard names.
Tidy the icon sets to clarify what's standard.
This commit is contained in:
Andy Williams 2016-04-27 00:01:08 +01:00
parent 802e671cda
commit 36113b1535
7 changed files with 16 additions and 20 deletions

View File

@ -31,14 +31,11 @@ IC("document-edit", "icon_edit.png", 16, 0);
IC("dialog-info", "icon_info.png", 16, 0); IC("dialog-info", "icon_info.png", 16, 0);
IC("dialog-close", "icon_close.png", 16, 0); IC("dialog-close", "icon_close.png", 16, 0);
IC("arrow-up", "icon_arrow_up.png", 16, 0); IC("go-home", "icon_home.png", 16, 0);
IC("arrow-down", "icon_arrow_down.png", 16, 0); IC("go-up", "icon_arrow_up.png", 16, 0);
IC("arrow-left", "icon_arrow_left.png", 16, 0); IC("go-down", "icon_arrow_down.png", 16, 0);
IC("arrow-right", "icon_arrow_right.png", 16, 0); IC("go-previous", "icon_arrow_left.png", 16, 0);
IC("arrow-up-left", "icon_arrow_up_left.png", 16, 0); /* */ IC("go-next", "icon_arrow_right.png", 16, 0);
IC("arrow-up-right", "icon_arrow_up_right.png", 16, 0); /* */
IC("arrow-down-left", "icon_arrow_down_left.png", 16, 0); /* */
IC("arrow-down-right", "icon_arrow_down_right.png", 16, 0); /* */
IC("edit-delete", "icon_delete.png", 16, 0); IC("edit-delete", "icon_delete.png", 16, 0);
IC("edit-find", "icon_search.png", 16, 0); IC("edit-find", "icon_search.png", 16, 0);

View File

@ -537,7 +537,7 @@ test_entry_scrolled(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
bt = elm_icon_add(win); bt = elm_icon_add(win);
elm_icon_standard_set(bt, "home"); elm_icon_standard_set(bt, "go-home");
evas_object_size_hint_min_set(bt, 48, 48); evas_object_size_hint_min_set(bt, 48, 48);
evas_object_color_set(bt, 128, 0, 0, 128); evas_object_color_set(bt, 128, 0, 0, 128);
evas_object_show(bt); evas_object_show(bt);
@ -2340,7 +2340,7 @@ test_entry8(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
elm_grid_pack(gd, en3, 5, 35, 90, 20); elm_grid_pack(gd, en3, 5, 35, 90, 20);
bt = elm_icon_add(win); bt = elm_icon_add(win);
elm_icon_standard_set(bt, "home"); elm_icon_standard_set(bt, "go-home");
evas_object_size_hint_min_set(bt, 48, 48); evas_object_size_hint_min_set(bt, 48, 48);
evas_object_color_set(bt, 128, 0, 0, 128); evas_object_color_set(bt, 128, 0, 0, 128);
evas_object_show(bt); evas_object_show(bt);

View File

@ -178,7 +178,7 @@ Evas_Object *gl_content_full_get(void *data EINA_UNUSED, Evas_Object *obj, const
elm_box_horizontal_set(bx, EINA_TRUE); elm_box_horizontal_set(bx, EINA_TRUE);
ic = elm_icon_add(bx); ic = elm_icon_add(bx);
elm_icon_standard_set(ic, "home"); elm_icon_standard_set(ic, "go-home");
evas_object_size_hint_min_set(ic, evas_object_size_hint_min_set(ic,
ELM_SCALE_SIZE(32), ELM_SCALE_SIZE(32),
ELM_SCALE_SIZE(32)); ELM_SCALE_SIZE(32));

View File

@ -193,7 +193,7 @@ _page4(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
snprintf(img4, sizeof(img4), "%s/images/rock_02.jpg", elm_app_data_dir_get()); snprintf(img4, sizeof(img4), "%s/images/rock_02.jpg", elm_app_data_dir_get());
ic = elm_icon_add(nf); ic = elm_icon_add(nf);
elm_icon_standard_set(ic, "arrow_right"); elm_icon_standard_set(ic, "go-right");
bt = elm_button_add(nf); bt = elm_button_add(nf);
evas_object_smart_callback_add(bt, "clicked", _page5, nf); evas_object_smart_callback_add(bt, "clicked", _page5, nf);

View File

@ -1466,7 +1466,7 @@ _elm_fileselector_evas_object_smart_add(Eo *obj, Elm_Fileselector_Data *priv)
// up btn // up btn
ic = elm_icon_add(obj); ic = elm_icon_add(obj);
elm_icon_standard_set(ic, "arrow_up"); elm_icon_standard_set(ic, "go-up");
bt = elm_button_add(obj); bt = elm_button_add(obj);
elm_widget_mirrored_automatic_set(bt, EINA_FALSE); elm_widget_mirrored_automatic_set(bt, EINA_FALSE);
elm_object_part_content_set(bt, "icon", ic); elm_object_part_content_set(bt, "icon", ic);
@ -1480,7 +1480,7 @@ _elm_fileselector_evas_object_smart_add(Eo *obj, Elm_Fileselector_Data *priv)
// home btn // home btn
ic = elm_icon_add(obj); ic = elm_icon_add(obj);
elm_icon_standard_set(ic, "home"); elm_icon_standard_set(ic, "go-home");
bt = elm_button_add(obj); bt = elm_button_add(obj);
elm_widget_mirrored_automatic_set(bt, EINA_FALSE); elm_widget_mirrored_automatic_set(bt, EINA_FALSE);
elm_object_part_content_set(bt, "icon", ic); elm_object_part_content_set(bt, "icon", ic);
@ -1494,7 +1494,7 @@ _elm_fileselector_evas_object_smart_add(Eo *obj, Elm_Fileselector_Data *priv)
// search entry // search entry
ic = elm_icon_add(obj); ic = elm_icon_add(obj);
elm_icon_standard_set(ic, "search"); elm_icon_standard_set(ic, "edit-find");
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
en = elm_entry_add(obj); en = elm_entry_add(obj);
elm_entry_scrollable_set(en, EINA_TRUE); elm_entry_scrollable_set(en, EINA_TRUE);

View File

@ -995,7 +995,7 @@ _back_btn_new(Evas_Object *obj, const char *title_label)
if (edje_object_part_exists(ed, CONTENT_PART)) if (edje_object_part_exists(ed, CONTENT_PART))
{ {
Evas_Object *ico = elm_icon_add(btn); Evas_Object *ico = elm_icon_add(btn);
elm_icon_standard_set(ico, "arrow_left"); elm_icon_standard_set(ico, "go-left");
elm_layout_content_set(btn, CONTENT_PART, ico); elm_layout_content_set(btn, CONTENT_PART, ico);
} }

View File

@ -66,11 +66,10 @@ EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj EINA
/** /**
* @brief Set the icon by icon standards names. * @brief Set the icon by icon standards names.
* *
* For example, freedesktop.org defines standard icon names such as "home", * For example, freedesktop.org defines standard icon names such as "go-home",
* "network", etc. There can be different icon sets to match those icon keys. * "network-wired", etc. There can be different icon sets to match those icon keys.
* The "name" given as parameter is one of these "keys", and will be used to * The "name" given as parameter is one of these "keys", and will be used to
* look in the freedesktop.org paths and elementary theme. One can change the * look in the freedesktop.org paths and elementary theme.
* lookup order with @ref elm_icon_order_lookup_set.
* *
* If name is not found in any of the expected locations and it is the absolute * If name is not found in any of the expected locations and it is the absolute
* path of an image file, this image will be used. * path of an image file, this image will be used.