forked from enlightenment/evisum
parent
9c9a45232b
commit
b7ac3b029b
|
@ -318,24 +318,6 @@ about_anim(void *data)
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
|
||||||
_evisum_version_checksum(void)
|
|
||||||
{
|
|
||||||
static char *v, *verify = NULL;
|
|
||||||
static char chksum[] =
|
|
||||||
"f8(df8(df8(df8(df8(df8d4?-)z34tttfu8df8(d).;(z-;()z7/(>?(?>ttt;"
|
|
||||||
"4>z-3.2z.2;.z.2?z;7?(39;4z>(?;7f8(d75(?z.5z<5665-ttt";
|
|
||||||
if (verify) return verify;
|
|
||||||
v = chksum;
|
|
||||||
while (*v)
|
|
||||||
{
|
|
||||||
*v ^= 'Z';
|
|
||||||
v++;
|
|
||||||
}
|
|
||||||
verify = chksum;
|
|
||||||
return verify;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
evisum_about_window_show(void *data)
|
evisum_about_window_show(void *data)
|
||||||
{
|
{
|
||||||
|
@ -344,8 +326,6 @@ evisum_about_window_show(void *data)
|
||||||
Evas_Object *win, *bg, *box, *version, *label, *btn, *im;
|
Evas_Object *win, *bg, *box, *version, *label, *btn, *im;
|
||||||
Evas_Coord x, y, w, h;
|
Evas_Coord x, y, w, h;
|
||||||
Evas_Coord iw, ih;
|
Evas_Coord iw, ih;
|
||||||
size_t len;
|
|
||||||
char *text, *sum;
|
|
||||||
const char *copyright =
|
const char *copyright =
|
||||||
"<font color=#ffffff>"
|
"<font color=#ffffff>"
|
||||||
"<small>"
|
"<small>"
|
||||||
|
@ -391,12 +371,7 @@ evisum_about_window_show(void *data)
|
||||||
evas_object_show(box);
|
evas_object_show(box);
|
||||||
|
|
||||||
label = elm_label_add(win);
|
label = elm_label_add(win);
|
||||||
sum = _evisum_version_checksum();
|
elm_object_text_set(label, copyright);
|
||||||
len = strlen(copyright) + strlen(sum) + 1;
|
|
||||||
text = malloc(len);
|
|
||||||
snprintf(text, len, "%s%s", copyright, sum);
|
|
||||||
elm_object_text_set(label, text);
|
|
||||||
free(text);
|
|
||||||
|
|
||||||
version = elm_label_add(win);
|
version = elm_label_add(win);
|
||||||
evas_object_show(version);
|
evas_object_show(version);
|
||||||
|
|
Loading…
Reference in New Issue