forked from enlightenment/evisum
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:
parent
25db250732
commit
811b57f4aa
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue