diff --git a/src/elogd.c b/src/elogd.c index 335de571..c3e85c94 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -17579,10 +17579,16 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa sprintf(img, "\"%s\"", loc("down"), loc("down")); + sprintf(str, "Tooltip %s", disp_attr[i]); + if (getcfg(lbs->name, str, comment, sizeof(comment))) + sprintf(str, "title=\"%s\"", comment); + else + str[0] = 0; + if (strieq(disp_attr[i], "Edit") || strieq(disp_attr[i], "Delete")) - rsprintf("%s\n", disp_attr[i]); + rsprintf("%s\n", str, disp_attr[i]); else { - rsprintf("%s%s\n", disp_attr[i], img); } @@ -20167,7 +20173,13 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command) rsprintf(""); sprintf(lattr, "l%s", attr_list[i]); - rsprintf("", class_name); + + /* display cell with optional tooltip */ + sprintf(str, "Tooltip %s", attr_list[i]); + if (getcfg(lbs->name, str, comment, sizeof(comment))) + rsprintf("", comment, class_name); + else + rsprintf("", class_name); if (getcfg(lbs->name, "Filtered browsing", str, sizeof(str)) && atoi(str) == 1) { if (isparam(lattr) == '1')