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 bc44a003d6b9981084eabfe9e0f9e003fbea44f9
Author: Alastair Poole <m...@alastairpoole.com>
AuthorDate: Sat Mar 22 21:53:00 2025 +0000
process_list: just use UID.
Fuck it. You can click and read it. UID looks much better.
---
src/bin/ui/evisum_ui_process_list.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/bin/ui/evisum_ui_process_list.c b/src/bin/ui/evisum_ui_process_list.c
index f719702..31dfb90 100644
--- a/src/bin/ui/evisum_ui_process_list.c
+++ b/src/bin/ui/evisum_ui_process_list.c
@@ -705,7 +705,6 @@ static Evas_Object *
_content_get(void *data, Evas_Object *obj, const char *source)
{
Proc_Info *proc;
- struct passwd *pwd_entry;
Evas_Object *rec, *lb, *o, *pb;
char buf[128];
Evas_Coord w, ow, bw;
@@ -755,11 +754,7 @@ _content_get(void *data, Evas_Object *obj, const char *source)
{
evas_object_geometry_get(wd->btn_uid, NULL, NULL, &w, NULL);
lb = evas_object_data_get(it->obj, "uid");
- pwd_entry = getpwuid(proc->uid);
- if (pwd_entry)
- snprintf(buf, sizeof(buf), "%s", pwd_entry->pw_name);
- else
- snprintf(buf, sizeof(buf), "%i", proc->uid);
+ snprintf(buf, sizeof(buf), "%i", proc->uid);
if (strcmp(buf, elm_object_text_get(lb)))
elm_object_text_set(lb, buf);
@@ -1747,9 +1742,9 @@ _content_add(Win_Data *wd, Evas_Object *parent)
ui->proc.sort_reverse : 0),
ui->proc.sort_type == PROC_SORT_BY_UID,
wd);
- evas_object_size_hint_weight_set(btn, 1.0, 0);
+ evas_object_size_hint_weight_set(btn, 0.0, 0);
evas_object_size_hint_align_set(btn, FILL, FILL);
- evas_object_size_hint_min_set(btn, 1.8 * ELM_SCALE_SIZE(BTN_WIDTH), 1);
+ evas_object_size_hint_min_set(btn, ELM_SCALE_SIZE(BTN_WIDTH), 1);
evas_object_data_set(btn, "type", (void *) (int) PROC_SORT_BY_UID);
evas_object_show(btn);
evas_object_smart_callback_add(btn, "clicked", _btn_clicked_cb, wd);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.