This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efm2.
View the commit online.
commit 20682de4babc544c32005b72f3f3cfc72818866d
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Sun Oct 15 13:43:24 2023 +0100
support detailvew checkview - needs new default theme
---
TODO.md | 2 --
src/backends/table/open | 10 +++++-----
src/efm/efm_util.c | 19 ++++++++++++++++---
3 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/TODO.md b/TODO.md
index ac6ef7c..92f2139 100644
--- a/TODO.md
+++ b/TODO.md
@@ -58,9 +58,7 @@
* Disable dnd/cnp from backend
* Streamline detail mode
* Std detail mode keep
- * Change detailtext=yes to detailformat=col1,col2,col3,...col6
* Above format would be a type per col. Types to support:
- * checkview (only show a checkmark - can't change it)
* progressbar
* check
* slider
diff --git a/src/backends/table/open b/src/backends/table/open
index e44415d..df74dc3 100755
--- a/src/backends/table/open
+++ b/src/backends/table/open
@@ -111,19 +111,19 @@ function handle_cmd_dir_set() {
# begin initial listing of files
e_cmd "list-begin"
# define some params we're going to use
- D="detail-format=text,text,text,text,timestamp,size detail1=one detail2=two detail3=three detail4=four"
+ D="detail-format=text,text,text,checkview,timestamp,size detail1=one detail2=two detail3=three"
# an icon image to use
e_val_escape M ${DIR}"ic.jpg"
M="type=file icon="${M}
# add one new file (4 of them) with params
e_val_escape F ${DIR}"abba"
- e_cmd "file-add path="${F}" "${M}" "${D}" detail5=0 detail6=576/65536"
+ e_cmd "file-add path="${F}" "${M}" "${D}" detail4=1 detail5=0 detail6=576/65536"
e_val_escape F ${DIR}"boopy__==!@#$%^&*();"
- e_cmd "file-add path="${F}" "${M}" "${D}" detail5=1696332215 detail6=16384/65536"
+ e_cmd "file-add path="${F}" "${M}" "${D}" detail4=0 detail5=1696332215 detail6=16384/65536"
e_val_escape F ${DIR}"g h i"
- e_cmd "file-add path="${F}" "${M}" "${D}" detail5=1696322215 detail6=65535/65536"
+ e_cmd "file-add path="${F}" "${M}" "${D}" detail4=true detail5=1696322215 detail6=65535/65536"
e_val_escape F ${DIR}"z~"
- e_cmd "file-add path="${F}" "${M}" "${D}" detail5=1296332215 detail6=7823/65536"
+ e_cmd "file-add path="${F}" "${M}" "${D}" detail4=false detail5=1296332215 detail6=7823/65536"
# end initial listing of files
e_cmd "list-end"
}
diff --git a/src/efm/efm_util.c b/src/efm/efm_util.c
index 2ee9ce7..9138228 100644
--- a/src/efm/efm_util.c
+++ b/src/efm/efm_util.c
@@ -1302,6 +1302,19 @@ _icon_detail_add(Icon *icon, Smart_Data *sd, Evas *e,
_icon_detail_edje_text_set_free(o, "e.text.time",
eina_strftime("%H:%M:%S", info));
}
+ else if (!strcmp(format, "checkview"))
+ { // format: 1284924 - time_in_seconds_since_epoch
+ o = _icon_detail_grid_add(icon, sd, col);
+ o = _icon_detail_grid_sub_edje_add(icon, e, theme_edj_file, col,
+ "e/fileman/default/check");
+ if ((!strcasecmp(detail, "1")) ||
+ (!strcasecmp(detail, "on")) ||
+ (!strcasecmp(detail, "true")) ||
+ (!strcasecmp(detail, "yes")))
+ edje_object_signal_emit(o, "e,state,on", "e");
+ else
+ edje_object_signal_emit(o, "e,state,off", "e");
+ }
else
fprintf(stderr, "Uknown format for file '%s' column %i format '%s'\n",
icon->info.file, col, format);
@@ -1432,9 +1445,9 @@ _icon_object_add(Icon *icon, Smart_Data *sd, Evas *e,
struct tm *info;
info = localtime(&tmpt);
- o2 = _icon_detail_grid_add(icon, sd, 1);
- o2 = _icon_detail_grid_sub_edje_add(icon, e, theme_edj_file, 1,
- "e/fileman/default/filedate");
+ o2 = _icon_detail_grid_add(icon, sd, 1);
+ o2 = _icon_detail_grid_sub_edje_add(icon, e, theme_edj_file, 1,
+ "e/fileman/default/filedate");
_icon_detail_edje_text_set_free(o2, "e.text.year",
eina_strftime("%y", info));
_icon_detail_edje_text_set_free(o2, "e.text.month",
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.