okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=91b706230e968932c9218d03e9424bcc1c2a66ea

commit 91b706230e968932c9218d03e9424bcc1c2a66ea
Author: Stephen okra Houston <smhousto...@gmail.com>
Date:   Tue Mar 22 11:00:09 2016 -0500

    Ephoto: Add version number to about page.
---
 configure.ac            |  3 +--
 src/bin/ephoto_config.c | 14 ++++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 129a41c..16abae0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,8 +3,7 @@ dnl Process this file with autoconf to produce a configure 
script.
 # get rid of that stupid cache mechanism
 rm -f config.cache
 
-EFL_VERSION([0], [1], [1], [dev])
-AC_INIT([ephoto], [efl_version], [enlightenment-de...@lists.sourceforge.net])
+AC_INIT([ephoto], [0.9.99], [enlightenment-de...@lists.sourceforge.net])
 
 AC_PREREQ([2.60])
 AC_CONFIG_SRCDIR([configure.ac])
diff --git a/src/bin/ephoto_config.c b/src/bin/ephoto_config.c
index 93be739..2a9fbfd 100644
--- a/src/bin/ephoto_config.c
+++ b/src/bin/ephoto_config.c
@@ -423,8 +423,9 @@ _ephoto_config_bindings(Evas_Object *parent)
 static Evas_Object *
 _ephoto_config_about(Evas_Object *parent)
 {
-   Evas_Object *box, *entry, *img;
+   Evas_Object *box, *entry, *img, *lbl;
    Eina_Strbuf *sbuf = eina_strbuf_new();
+   char ver[PATH_MAX];
    FILE *f;
 
    box = elm_box_add(parent);
@@ -434,7 +435,7 @@ _ephoto_config_about(Evas_Object *parent)
    evas_object_show(box);
 
    img = elm_image_add(box);
-   evas_object_size_hint_min_set(img, 50, 50);
+   evas_object_size_hint_min_set(img, 75, 75);
    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);
@@ -442,6 +443,15 @@ _ephoto_config_about(Evas_Object *parent)
    elm_box_pack_end(box, img);
    evas_object_show(img);
 
+   snprintf(ver, PATH_MAX, "<hilight><b>Version: %s</b></hilight>", VERSION);
+
+   lbl = elm_label_add(box);
+   elm_object_text_set(lbl, ver);
+   evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   evas_object_size_hint_align_set(lbl, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   elm_box_pack_end(box, lbl);
+   evas_object_show(lbl);
+
    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