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

@ -948,9 +948,15 @@ _btn_info_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
if (!lines)
{
elm_object_text_set(ui->entry_info,
eina_slstr_printf(_("No documentation found for %s."),
ui->selected_cmd));
// LAZY!!!
if (!strcmp(ui->selected_cmd, "evisum"))
elm_object_text_set(ui->entry_info, _evisum_docs());
else
{
elm_object_text_set(ui->entry_info,
eina_slstr_printf(_("No documentation found for %s."),
ui->selected_cmd));
}
}
else
{

View File

@ -1,4 +1,6 @@
// Process Window includes this junk.
static char *
_man2entry(const char *text)
{
@ -50,3 +52,14 @@ _man2entry(const char *text)
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;
}