hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=de2dedaa1316e1342a47740f46c6ee3dec4db0f1

commit de2dedaa1316e1342a47740f46c6ee3dec4db0f1
Author: ChunEon Park <[email protected]>
Date:   Sun Jun 1 16:13:38 2014 +0900

    tools - added a goto item.
---
 data/themes/default/images.edc         |  12 ++++++++++++
 data/themes/default/images/Makefile.am |   3 ++-
 data/themes/default/images/goto.png    | Bin 0 -> 420 bytes
 src/bin/tools.c                        |  10 ++++++++++
 4 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/data/themes/default/images.edc b/data/themes/default/images.edc
index 554ae54..e8a8b38 100644
--- a/data/themes/default/images.edc
+++ b/data/themes/default/images.edc
@@ -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";
diff --git a/data/themes/default/images/Makefile.am 
b/data/themes/default/images/Makefile.am
index 0e0ead2..7cd889c 100644
--- a/data/themes/default/images/Makefile.am
+++ b/data/themes/default/images/Makefile.am
@@ -55,4 +55,5 @@ EXTRA_DIST = \
    setting_icon.png \
    setting.png \
    status.png \
-   swallow_s.png
+   swallow_s.png \
+   goto.png
diff --git a/data/themes/default/images/goto.png 
b/data/themes/default/images/goto.png
new file mode 100644
index 0000000..5db4b14
Binary files /dev/null and b/data/themes/default/images/goto.png differ
diff --git a/src/bin/tools.c b/src/bin/tools.c
index 0777833..d2ea51b 100644
--- a/src/bin/tools.c
+++ b/src/bin/tools.c
@@ -83,6 +83,14 @@ find_cb(void *data EINA_UNUSED, Evas_Object *obj 
EINA_UNUSED, void *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);

-- 


Reply via email to