okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=58f3d32874ea00c8317551e2e00749bff20d6f1c

commit 58f3d32874ea00c8317551e2e00749bff20d6f1c
Author: Stephen okra Houston <smhousto...@gmail.com>
Date:   Tue Mar 22 10:36:22 2016 -0500

    Ephoto: Add logo to about page.
---
 configure.ac            |  1 +
 data/Makefile.am        |  2 +-
 src/bin/ephoto_config.c | 11 ++++++++++-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 918ce1a..129a41c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,6 +72,7 @@ AC_OUTPUT([
 Makefile
 data/Makefile
 data/desktop/Makefile
+data/images/Makefile
 data/themes/Makefile
 src/Makefile
 src/bin/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index a9369e6..d7b8c58 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,2 +1,2 @@
 MAINTAINERCLEANFILES = Makefile.in Makefile
-SUBDIRS = desktop themes
+SUBDIRS = desktop themes images
diff --git a/src/bin/ephoto_config.c b/src/bin/ephoto_config.c
index dd72d91..93be739 100644
--- a/src/bin/ephoto_config.c
+++ b/src/bin/ephoto_config.c
@@ -423,7 +423,7 @@ _ephoto_config_bindings(Evas_Object *parent)
 static Evas_Object *
 _ephoto_config_about(Evas_Object *parent)
 {
-   Evas_Object *box, *entry;
+   Evas_Object *box, *entry, *img;
    Eina_Strbuf *sbuf = eina_strbuf_new();
    FILE *f;
 
@@ -433,6 +433,15 @@ _ephoto_config_about(Evas_Object *parent)
    evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_show(box);
 
+   img = elm_image_add(box);
+   evas_object_size_hint_min_set(img, 50, 50);
+   elm_image_preload_disabled_set(img, EINA_TRUE);
+   elm_image_file_set(img, PACKAGE_DATA_DIR "/images/ephoto.png", NULL);
+   evas_object_size_hint_weight_set(img, 0.0, 0.0);
+   evas_object_size_hint_align_set(img, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   elm_box_pack_end(box, img);
+   evas_object_show(img);
+
    entry = elm_entry_add(box);
    elm_entry_anchor_hover_style_set(entry, "popout");
    elm_entry_anchor_hover_parent_set(entry, parent);

-- 


Reply via email to