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 37187ee8c597a96cad03bbee6f96d5228632c297
Author: Alastair Poole <m...@alastairpoole.com>
AuthorDate: Fri Jul 26 10:27:55 2024 +0100

    fix: Fix horrible bug properly.
    
    Disable transit on first run. Thank you for finding the cause
    of this issue raster.
    
    Hugs!!!
---
 NEWS                         |  3 ++-
 src/bin/ui/ui_process_view.c | 22 ++++++++++++----------
 2 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/NEWS b/NEWS
index b01d275..45caec8 100644
--- a/NEWS
+++ b/NEWS
@@ -3,7 +3,8 @@ Evisum 0.6.1
 ============
 
   * Fix reporting of video RAM usage on Linux.
-  * Fix a horrible bug rendering in process view horribly :)
+  * Fix a horrible bug rendering in process view.
+    Thanks for finding that raster :)
 
 ============
 Evisum 0.6.0
diff --git a/src/bin/ui/ui_process_view.c b/src/bin/ui/ui_process_view.c
index 8d8963c..d5f2074 100644
--- a/src/bin/ui/ui_process_view.c
+++ b/src/bin/ui/ui_process_view.c
@@ -1029,10 +1029,6 @@ _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);
@@ -1579,6 +1575,7 @@ static void
 _tab_change(Win_Data *wd, Evas_Object *view, Evas_Object *obj)
 {
    Elm_Transit *trans;
+   static Eina_Bool first_run = EINA_TRUE;
 
    elm_object_disabled_set(wd->tab_general, 0);
    elm_object_disabled_set(wd->tab_children, 0);
@@ -1589,17 +1586,22 @@ _tab_change(Win_Data *wd, Evas_Object *view, Evas_Object *obj)
    evas_object_hide(wd->manual_view);
    evas_object_hide(wd->thread_view);
 
-   trans = elm_transit_add();
-   elm_transit_object_add(trans, wd->current_view);
-   elm_transit_object_add(trans, view);
-   elm_transit_duration_set(trans, 0.15);
-   elm_transit_effect_blend_add(trans);
+   if (!first_run)
+     {
+        trans = elm_transit_add();
+        elm_transit_object_add(trans, wd->current_view);
+        elm_transit_object_add(trans, view);
+        elm_transit_duration_set(trans, 0.15);
+        elm_transit_effect_blend_add(trans);
+     }
 
    wd->current_view = view;
    evas_object_show(view);
-   elm_transit_go(trans);
+
+   if (!first_run) elm_transit_go(trans);
 
    elm_object_disabled_set(obj, 1);
+   first_run = EINA_FALSE;
 }
 
 static void

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

Reply via email to