netstar pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=4149ee7c526356bf7d45bdb65eff5e90baadc961

commit 4149ee7c526356bf7d45bdb65eff5e90baadc961
Author: Al Poole <[email protected]>
Date:   Sat Sep 30 20:56:31 2017 +0100

    scm_ui: make sure we clear the widget.
    
    meh meh meh...
---
 src/bin/edi_scm_ui.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/bin/edi_scm_ui.c b/src/bin/edi_scm_ui.c
index 9593f33..466aade 100644
--- a/src/bin/edi_scm_ui.c
+++ b/src/bin/edi_scm_ui.c
@@ -150,6 +150,12 @@ _edi_scm_ui_screens_commit_cb(void *data,
 
    free(message);
 
+   if (edi_scm->thread) ecore_thread_cancel(edi_scm->thread);
+
+   while ((ecore_thread_wait(edi_scm->thread, 0.1)) != EINA_TRUE);
+
+   evas_object_del(edi_scm->parent);
+
    if (edi_scm->monitor)
      eio_monitor_del(edi_scm->monitor);
 
@@ -430,7 +436,10 @@ _edi_scm_ui_refresh(Edi_Scm_Ui *edi_scm)
    edi_scm->results_max = elm_check_state_get(edi_scm->check);
 
    elm_genlist_clear(edi_scm->list);
+
    elm_code_file_clear(edi_scm->code->file);
+   /* FIXME: Clears but does not render until it *has* to. */
+   elm_code_file_line_append(edi_scm->code->file, "\n", 1, NULL);
 
    staged = _edi_scm_ui_status_list_fill(edi_scm);
 
@@ -536,7 +545,7 @@ edi_scm_ui_add(Evas_Object *parent)
    evas_object_show(logo);
    elm_box_pack_end(hbox, logo);
 
-   /* General information*/
+   /* General information */
 
    label = elm_label_add(hbox);
    evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, 1.0);

-- 


Reply via email to