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 e39c57e3006504d0e5741163bf1dd2d27000d3fa
Author: Alastair Poole <m...@alastairpoole.com>
AuthorDate: Thu Jul 25 12:55:35 2024 +0100
process_view: Fix horrible bug.
This is some seriously mystical bullshit.
Nevermind.
---
NEWS | 1 +
src/bin/ui/ui_process_view.c | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index ece5b98..b01d275 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Evisum 0.6.1
============
* Fix reporting of video RAM usage on Linux.
+ * Fix a horrible bug rendering in process view horribly :)
============
Evisum 0.6.0
diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c
index 8bd92e7..8d8963c 100644
--- a/src/bin/ui/ui_process_view.c
+++ b/src/bin/ui/ui_process_view.c
@@ -7,6 +7,7 @@
typedef struct
{
Evas_Object *win;
+ Evas_Object *tb_content;
Evas_Object *tab_general;
Evas_Object *tab_children;
@@ -1028,6 +1029,10 @@ _proc_info_feedback_cb(void *data, Ecore_Thread *thread, void *msg)
wd = data;
proc = msg;
+ // Force the content table object to recalculate.
+ // This fixes a horrible bug. This is black magic.
+ evas_object_resize(wd->tb_content, ELM_SCALE_SIZE(460), 1);
+
if (!proc || (wd->start && (proc->start != wd->start)))
{
if (proc) proc_info_free(proc);
@@ -1831,7 +1836,7 @@ ui_process_view_win_add(int pid, Evisum_Proc_Action action)
evas_object_show(bx);
elm_box_pack_end(bx, tabs);
- tb = elm_table_add(bx);
+ wd->tb_content = tb = elm_table_add(bx);
evas_object_size_hint_weight_set(tb, EXPAND, EXPAND);
evas_object_size_hint_align_set(tb, FILL, 0.0);
evas_object_show(tb);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.