tools - added a goto item.

This commit is contained in:
ChunEon Park 2014-06-01 16:13:38 +09:00
parent 209c34caad
commit de2dedaa13
4 changed files with 24 additions and 1 deletions

View File

@ -12,6 +12,18 @@ images {
image: "setting.png" COMP;
image: "status.png" COMP;
image: "swallow_s.png" COMP;
image: "goto.png" COMP;
}
group { name: "line";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "goto.png";
}
}
}
}
group { name: "file";

View File

@ -55,4 +55,5 @@ EXTRA_DIST = \
setting_icon.png \
setting.png \
status.png \
swallow_s.png
swallow_s.png \
goto.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

View File

@ -82,6 +82,14 @@ find_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
item_unselect((Elm_Object_Item *)event_info);
}
static void
goto_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
{
edit_data *ed = data;
goto_open(ed);
item_unselect((Elm_Object_Item *)event_info);
}
static void
setting_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
void *event_info)
@ -120,6 +128,8 @@ tools_create(Evas_Object *parent, edit_data *ed)
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "lines");
it = elm_toolbar_item_append(toolbar, NULL, "Find", find_cb, NULL);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "find");
it = elm_toolbar_item_append(toolbar, NULL, "Goto", goto_cb, ed);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "line");
it = elm_toolbar_item_append(toolbar, NULL, "Status", status_cb, NULL);
elm_toolbar_item_icon_file_set(it, EDJE_PATH, "status");
it = elm_toolbar_item_append(toolbar, NULL, "Setting", setting_cb, NULL);