This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository evisum.

View the commit online.

commit 63f032566ac0c309c959ab438fbe649f365921d4
Author: Alastair Poole <[email protected]>
AuthorDate: Sat Mar 28 13:59:08 2026 +0000

    clang-format: run clang-format
---
 src/bin/ui/evisum_ui_about.c        | 56 ++++++++++++++++++++-----------------
 src/bin/ui/evisum_ui_process_view.c | 49 ++++++++++++++++----------------
 src/bin/ui/evisum_ui_util_text.c    | 20 +++++++++----
 3 files changed, 69 insertions(+), 56 deletions(-)

diff --git a/src/bin/ui/evisum_ui_about.c b/src/bin/ui/evisum_ui_about.c
index 6d8bdaa..36c0a7c 100644
--- a/src/bin/ui/evisum_ui_about.c
+++ b/src/bin/ui/evisum_ui_about.c
@@ -8,10 +8,10 @@
 
 #include "config.h"
 
-#define ARRAY_SIZE(n)                  (sizeof(n) / sizeof((n)[0]))
-#define EVISUM_THEME_FILE              PACKAGE_DATA_DIR "/themes/evisum.edj"
-#define EVISUM_ABOUT_BG_WIDTH          560
-#define EVISUM_ABOUT_BG_HEIGHT         540
+#define ARRAY_SIZE(n)          (sizeof(n) / sizeof((n)[0]))
+#define EVISUM_THEME_FILE      PACKAGE_DATA_DIR "/themes/evisum.edj"
+#define EVISUM_ABOUT_BG_WIDTH  560
+#define EVISUM_ABOUT_BG_HEIGHT 540
 
 static const char *about_msg[] = { "The greatest of all time...",
                                    "Remember to take your medication!",
@@ -21,30 +21,34 @@ static const char *about_msg[] = { "The greatest of all time...",
                                    "Hack the planet!",
                                    "Remember what you need to carry!",
                                    "Take a break, have a shit chat!",
+                                   "Be kind to others",
+                                   "Be patient with yourself",
+                                   "Trust me",
                                    "Well done my son." };
 
-static const char *about_text_fmt = "<font color=#ffffff>"
-                                    "<align=center>"
-                                    "<b>"
-                                    "Copyright &copy; 2019-2021, 2024-2026. Alastair Poole &lt;[email protected]&gt;<br>"
-                                    "<br>"
-                                    "</b>"
-                                    "</>"
-                                    "Permission to use, copy, modify, and distribute this software "
-                                    "for any purpose with or without fee is hereby granted, provided "
-                                    "that the above copyright notice and this permission notice appear "
-                                    "in all copies.<br>"
-                                    "<br>"
-                                    "THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL "
-                                    "WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED "
-                                    "WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL "
-                                    "THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR "
-                                    "CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING "
-                                    "FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF "
-                                    "CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT "
-                                    "OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS "
-                                    "SOFTWARE.<br><br><br><br><br><br><br><br><br><br><br>"
-                                    "<align=center>%s</></></>";
+static const char *about_text_fmt
+        = "<font color=#ffffff>"
+          "<align=center>"
+          "<b>"
+          "Copyright &copy; 2019-2021, 2024-2026. Alastair Poole &lt;[email protected]&gt;<br>"
+          "<br>"
+          "</b>"
+          "</>"
+          "Permission to use, copy, modify, and distribute this software "
+          "for any purpose with or without fee is hereby granted, provided "
+          "that the above copyright notice and this permission notice appear "
+          "in all copies.<br>"
+          "<br>"
+          "THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL "
+          "WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED "
+          "WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL "
+          "THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR "
+          "CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING "
+          "FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF "
+          "CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT "
+          "OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS "
+          "SOFTWARE.<br><br><br><br><br><br><br><br><br><br><br>"
+          "<align=center>%s</></></>";
 
 static inline const char *
 _about_random_msg(void) {
diff --git a/src/bin/ui/evisum_ui_process_view.c b/src/bin/ui/evisum_ui_process_view.c
index 16fab19..2008a9d 100644
--- a/src/bin/ui/evisum_ui_process_view.c
+++ b/src/bin/ui/evisum_ui_process_view.c
@@ -196,7 +196,8 @@ _evisum_ui_process_view_content_get(void *data, Evas_Object *obj, const char *so
         exit(-1);
     }
 
-    evisum_ui_widget_exel_item_field_text_set(view->threads.widget_exel, row, 0, "tid", eina_slstr_printf("%d", th->tid));
+    evisum_ui_widget_exel_item_field_text_set(view->threads.widget_exel, row, 0, "tid",
+                                              eina_slstr_printf("%d", th->tid));
     evisum_ui_widget_exel_item_field_text_set(view->threads.widget_exel, row, 1, "name", th->name);
     evisum_ui_widget_exel_item_field_text_set(view->threads.widget_exel, row, 2, "state", th->state);
     evisum_ui_widget_exel_item_field_text_set(view->threads.widget_exel, row, 3, "cpu_id",
@@ -838,8 +839,7 @@ _evisum_ui_process_view_proc_info_feedback_cb(void *data, Ecore_Thread *thread,
 #if defined(__linux__)
     evisum_background_proc_net_get(view->ui, proc->pid, &net_in_abs, &net_out_abs);
 
-    if ((view->pid_net_in) && (net_in_abs >= view->pid_net_in))
-        net_in = (net_in_abs - view->pid_net_in) / elapsed;
+    if ((view->pid_net_in) && (net_in_abs >= view->pid_net_in)) net_in = (net_in_abs - view->pid_net_in) / elapsed;
     if ((view->pid_net_out) && (net_out_abs >= view->pid_net_out))
         net_out = (net_out_abs - view->pid_net_out) / elapsed;
 
@@ -1171,16 +1171,16 @@ _evisum_ui_process_view_threads_tab_add(Evas_Object *parent, Evisum_Ui_Process_V
         const char *field_desc;
         Eina_Bool min_width_btn;
     } cols[] = {
-        { _("id"),     THREAD_SORT_TID,       EXPAND, FILL, 0, "tid",      EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,
-          NULL, "Thread ID",        0 },
-        { _("name"),   THREAD_SORT_NAME,      EXPAND, FILL, 1, "name",     EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,
-          NULL, "Thread Name",      0 },
-        { _("state"),  THREAD_SORT_STATE,     EXPAND, FILL, 2, "state",    EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,
-          NULL, "Thread State",     0 },
-        { _("cpu id"), THREAD_SORT_CPU_ID,    0,      FILL, 3, "cpu_id",   EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,
-          NULL, "Thread CPU ID",    1 },
-        { _("cpu %"),  THREAD_SORT_CPU_USAGE, EXPAND, FILL, 4, "cpu_usage",
-          EVISUM_UI_WIDGET_EXEL_ITEM_CELL_PROGRESS, "%1.0f %%", "Thread CPU Usage", 0 },
+        { _("id"),     THREAD_SORT_TID,       EXPAND, FILL, 0, "tid",       EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,     NULL, "Thread ID",
+         0                                                                                                                                        },
+        { _("name"),   THREAD_SORT_NAME,      EXPAND, FILL, 1, "name",      EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,     NULL,
+         "Thread Name",                                                                                                                         0 },
+        { _("state"),  THREAD_SORT_STATE,     EXPAND, FILL, 2, "state",     EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,     NULL,
+         "Thread State",                                                                                                                        0 },
+        { _("cpu id"), THREAD_SORT_CPU_ID,    0,      FILL, 3, "cpu_id",    EVISUM_UI_WIDGET_EXEL_ITEM_CELL_TEXT,     NULL,
+         "Thread CPU ID",                                                                                                                       1 },
+        { _("cpu %"),  THREAD_SORT_CPU_USAGE, EXPAND, FILL, 4, "cpu_usage", EVISUM_UI_WIDGET_EXEL_ITEM_CELL_PROGRESS,
+         "%1.0f %%",                                                                                                        "Thread CPU Usage", 0 },
     };
     Evas_Smart_Cb sort_clicked_cb = _evisum_ui_process_view_btn_threads_sort_clicked_cb;
     int i = 0;
@@ -1222,18 +1222,17 @@ _evisum_ui_process_view_threads_tab_add(Evas_Object *parent, Evisum_Ui_Process_V
         evas_object_data_set(btn, "thread_sort_type", (void *) (intptr_t) cols[c].sort);
         evisum_ui_widget_exel_field_register(view->threads.widget_exel, cols[c].field_id, btn, cols[c].field_desc,
                                              ELM_SCALE_SIZE(BTN_WIDTH), ELM_SCALE_SIZE(BTN_WIDTH), EINA_TRUE);
-        evisum_ui_widget_exel_field_row_def_set(
-                view->threads.widget_exel, cols[c].field_id,
-                &(Evisum_Ui_Widget_Exel_Item_Cell_Def) {
-                    .type = cols[c].type,
-                    .key = cols[c].key,
-                    .unit_format = cols[c].unit_format,
-                    .align_x = cols[c].align,
-                    .weight_x = cols[c].weight,
-                    .boxed = EINA_FALSE,
-                    .spacer = 0,
-                    .icon_size = 0,
-                });
+        evisum_ui_widget_exel_field_row_def_set(view->threads.widget_exel, cols[c].field_id,
+                                                &(Evisum_Ui_Widget_Exel_Item_Cell_Def) {
+                                                        .type = cols[c].type,
+                                                        .key = cols[c].key,
+                                                        .unit_format = cols[c].unit_format,
+                                                        .align_x = cols[c].align,
+                                                        .weight_x = cols[c].weight,
+                                                        .boxed = EINA_FALSE,
+                                                        .spacer = 0,
+                                                        .icon_size = 0,
+                                                });
         evisum_ui_widget_exel_field_width_apply(view->threads.widget_exel, cols[c].field_id);
         if (cols[c].min_width_btn) {
             rec = evas_object_rectangle_add(evas_object_evas_get(tb));
diff --git a/src/bin/ui/evisum_ui_util_text.c b/src/bin/ui/evisum_ui_util_text.c
index 0bdc329..9999678 100644
--- a/src/bin/ui/evisum_ui_util_text.c
+++ b/src/bin/ui/evisum_ui_util_text.c
@@ -90,11 +90,21 @@ evisum_ui_text_man2entry(const char *text) {
 
     for (p = text; *p; p++) {
         switch (*p) {
-            case '<': eina_strbuf_append(sb, "&lt;"); break;
-            case '>': eina_strbuf_append(sb, "&gt;"); break;
-            case '&': eina_strbuf_append(sb, "&amp;"); break;
-            case '\t': eina_strbuf_append(sb, "        "); break;
-            default: eina_strbuf_append_char(sb, *p); break;
+            case '<':
+                eina_strbuf_append(sb, "&lt;");
+                break;
+            case '>':
+                eina_strbuf_append(sb, "&gt;");
+                break;
+            case '&':
+                eina_strbuf_append(sb, "&amp;");
+                break;
+            case '\t':
+                eina_strbuf_append(sb, "        ");
+                break;
+            default:
+                eina_strbuf_append_char(sb, *p);
+                break;
         }
     }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to