Ephoto: Add version number to about page.
This commit is contained in:
parent
dcf897d2a1
commit
91b706230e
|
@ -3,8 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
|
||||||
# get rid of that stupid cache mechanism
|
# get rid of that stupid cache mechanism
|
||||||
rm -f config.cache
|
rm -f config.cache
|
||||||
|
|
||||||
EFL_VERSION([0], [1], [1], [dev])
|
AC_INIT([ephoto], [0.9.99], [enlightenment-devel@lists.sourceforge.net])
|
||||||
AC_INIT([ephoto], [efl_version], [enlightenment-devel@lists.sourceforge.net])
|
|
||||||
|
|
||||||
AC_PREREQ([2.60])
|
AC_PREREQ([2.60])
|
||||||
AC_CONFIG_SRCDIR([configure.ac])
|
AC_CONFIG_SRCDIR([configure.ac])
|
||||||
|
|
|
@ -423,8 +423,9 @@ _ephoto_config_bindings(Evas_Object *parent)
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_ephoto_config_about(Evas_Object *parent)
|
_ephoto_config_about(Evas_Object *parent)
|
||||||
{
|
{
|
||||||
Evas_Object *box, *entry, *img;
|
Evas_Object *box, *entry, *img, *lbl;
|
||||||
Eina_Strbuf *sbuf = eina_strbuf_new();
|
Eina_Strbuf *sbuf = eina_strbuf_new();
|
||||||
|
char ver[PATH_MAX];
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
box = elm_box_add(parent);
|
box = elm_box_add(parent);
|
||||||
|
@ -434,7 +435,7 @@ _ephoto_config_about(Evas_Object *parent)
|
||||||
evas_object_show(box);
|
evas_object_show(box);
|
||||||
|
|
||||||
img = elm_image_add(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_preload_disabled_set(img, EINA_TRUE);
|
||||||
elm_image_file_set(img, PACKAGE_DATA_DIR "/images/ephoto.png", NULL);
|
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_weight_set(img, 0.0, 0.0);
|
||||||
|
@ -442,6 +443,15 @@ _ephoto_config_about(Evas_Object *parent)
|
||||||
elm_box_pack_end(box, img);
|
elm_box_pack_end(box, img);
|
||||||
evas_object_show(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);
|
entry = elm_entry_add(box);
|
||||||
elm_entry_anchor_hover_style_set(entry, "popout");
|
elm_entry_anchor_hover_style_set(entry, "popout");
|
||||||
elm_entry_anchor_hover_parent_set(entry, parent);
|
elm_entry_anchor_hover_parent_set(entry, parent);
|
||||||
|
|
Loading…
Reference in New Issue