summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-09-12 15:09:59 +0100
committerAlastair Poole <netstar@gmail.com>2020-09-12 15:09:59 +0100
commit811b57f4aaa7608d4effc281e728a43e7f97a248 (patch)
tree7d9b11773cd8e80cd0957846ac37711c19e1aa14
parent25db2507329de2718f49682afc8be8307026b97a (diff)
docs: documentation is important...
This is literally how much programmers like to write docs. It might avoid a few e-mails too...! :
-rw-r--r--src/bin/ui/ui_process_view.c12
-rw-r--r--src/bin/ui/util.c13
2 files changed, 22 insertions, 3 deletions
diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c
index 8fd6765..a5ecef5 100644
--- a/src/bin/ui/ui_process_view.c
+++ b/src/bin/ui/ui_process_view.c
@@ -948,9 +948,15 @@ _btn_info_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
948 948
949 if (!lines) 949 if (!lines)
950 { 950 {
951 elm_object_text_set(ui->entry_info, 951 // LAZY!!!
952 eina_slstr_printf(_("No documentation found for %s."), 952 if (!strcmp(ui->selected_cmd, "evisum"))
953 ui->selected_cmd)); 953 elm_object_text_set(ui->entry_info, _evisum_docs());
954 else
955 {
956 elm_object_text_set(ui->entry_info,
957 eina_slstr_printf(_("No documentation found for %s."),
958 ui->selected_cmd));
959 }
954 } 960 }
955 else 961 else
956 { 962 {
diff --git a/src/bin/ui/util.c b/src/bin/ui/util.c
index c3adb0b..04b76b6 100644
--- a/src/bin/ui/util.c
+++ b/src/bin/ui/util.c
@@ -1,4 +1,6 @@
1 1
2// Process Window includes this junk.
3
2static char * 4static char *
3_man2entry(const char *text) 5_man2entry(const char *text)
4{ 6{
@@ -50,3 +52,14 @@ _man2entry(const char *text)
50 52
51 return str; 53 return str;
52} 54}
55
56static const char *
57_evisum_docs(void)
58{
59 const char *txt =
60 "<b>Congratulations you found the documentation!</b><br><br>"
61 "Control + K - Toggle kernel threads. <br>"
62 "Control + E - Show Self. <br>";
63
64 return txt;
65}