docs: documentation is important...

This is literally how much programmers like to write docs.

It might avoid a few e-mails too...! :
This commit is contained in:
Alastair Poole 2020-09-12 15:09:59 +01:00
parent 25db250732
commit 811b57f4aa
2 changed files with 22 additions and 3 deletions

View File

@ -947,11 +947,17 @@ _btn_info_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
lines =_exe_response(eina_slstr_printf("man %s | col -b", ui->selected_cmd)); lines =_exe_response(eina_slstr_printf("man %s | col -b", ui->selected_cmd));
if (!lines) if (!lines)
{
// LAZY!!!
if (!strcmp(ui->selected_cmd, "evisum"))
elm_object_text_set(ui->entry_info, _evisum_docs());
else
{ {
elm_object_text_set(ui->entry_info, elm_object_text_set(ui->entry_info,
eina_slstr_printf(_("No documentation found for %s."), eina_slstr_printf(_("No documentation found for %s."),
ui->selected_cmd)); ui->selected_cmd));
} }
}
else else
{ {
char *line; char *line;

View File

@ -1,4 +1,6 @@
// Process Window includes this junk.
static char * static char *
_man2entry(const char *text) _man2entry(const char *text)
{ {
@ -50,3 +52,14 @@ _man2entry(const char *text)
return str; return str;
} }
static const char *
_evisum_docs(void)
{
const char *txt =
"<b>Congratulations you found the documentation!</b><br><br>"
"Control + K - Toggle kernel threads. <br>"
"Control + E - Show Self. <br>";
return txt;
}