This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository echart.
View the commit online.
commit b92ad2d9f0fbf144b1737373b2b8d7282ac456ea
Author: Vincent Torri <[email protected]>
AuthorDate: Fri Apr 3 08:56:25 2026 +0200
add version as command line
---
src/bin/echart_main.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/bin/echart_main.c b/src/bin/echart_main.c
index 1918c50..35794bc 100644
--- a/src/bin/echart_main.c
+++ b/src/bin/echart_main.c
@@ -13,13 +13,25 @@ EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win;
- Evas_Object *o;
+ Evas_Object *o, *line;
double *absciss;
double *d;
unsigned int num;
int w;
int h;
+ for (int i = 1; i < argc; i++)
+ {
+ if ((strcmp(argv[i], "-v") == 0) ||
+ (strcmp(argv[i], "--version") == 0))
+ {
+ printf(PACKAGE_NAME " " PACKAGE_VERSION "\n"
+ "copyright (C) 2026 Vincent Torri\n"
+ "License BSD-2\n");
+ return 0;
+ }
+ }
+
echart_init();
num = 6;
@@ -64,7 +76,7 @@ elm_main(int argc, char **argv)
/* evas_object_show(o);*/
/* line */
- o = echart_line_add(evas_object_evas_get(win));
+ o = line = echart_line_add(evas_object_evas_get(win));
evas_object_move(o, 0, 0);
evas_object_resize(o, 200 * elm_config_scale_get(), 200 * elm_config_scale_get());
echart_line_data_set(o, d, num);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.