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

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit 009f046b734fe12aa7807c35db04f0f7e7e626a5
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Thu Jun 6 11:54:22 2024 +0100

    comment typo, efm tasks nicer ui, less printfs
---
 src/backends/default/open.c |  2 +-
 src/efm/efm_tasks.c         | 23 +++++++++++------------
 src/shared/status_mon.c     |  1 -
 3 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/src/backends/default/open.c b/src/backends/default/open.c
index 1907df9..cc74001 100644
--- a/src/backends/default/open.c
+++ b/src/backends/default/open.c
@@ -558,7 +558,7 @@ _file_thumb_handle(Eina_Strbuf *strbuf, const char *path, const char *mime,
             }
           eet_close(ef);
           if (!ok)
-            { // thumb stat data doesn'yt match file state data
+            { // thumb stat data doesn't match file state data
               free(thumb);
               thumb = NULL;
             }
diff --git a/src/efm/efm_tasks.c b/src/efm/efm_tasks.c
index 8f00c6f..81f56af 100644
--- a/src/efm/efm_tasks.c
+++ b/src/efm/efm_tasks.c
@@ -8,7 +8,7 @@ static Eina_List   *tasks     = NULL;
 typedef struct
 {
   Status_Op   *op;
-  Evas_Object *o_base, *o_progress, *o_label, *o_label_dst, *o_label_str;
+  Evas_Object *o_base, *o_progress, *o_label_dst, *o_label_str;
 } Task;
 
 static Task *
@@ -55,22 +55,21 @@ task_del(Task *t)
 static void
 task_new(Task *t)
 {
-  Evas_Object *o, *bx;
+  Evas_Object *o, *fr, *bx;
+
+  fr = o = elm_frame_add(tasks_box);
+  evas_object_size_hint_fill_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
+  evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0);
+  elm_box_pack_end(tasks_box, o);
+  evas_object_show(o);
+  t->o_base = o;
 
   bx = o = elm_box_add(tasks_box);
   evas_object_size_hint_fill_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
   evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0);
   elm_box_horizontal_set(o, EINA_FALSE);
-  elm_box_pack_end(tasks_box, o);
+  elm_object_content_set(fr, o);
   evas_object_show(o);
-  t->o_base = o;
-
-  o = elm_label_add(tasks_box);
-  evas_object_size_hint_fill_set(o, 0, EVAS_HINT_FILL);
-  evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0);
-  elm_box_pack_end(bx, o);
-  evas_object_show(o);
-  t->o_label = o;
 
   o = elm_label_add(tasks_box);
   evas_object_size_hint_fill_set(o, 0, EVAS_HINT_FILL);
@@ -121,7 +120,7 @@ _cb_status(void *data EINA_UNUSED, Status_Op *op, Cmd *cmd)
       s = cmd_key_find(cmd, "op");
       if (s)
         {
-          if (!strcmp(s, "mv")) elm_object_text_set(t->o_label, "Move");
+          if (!strcmp(s, "mv")) elm_object_text_set(t->o_base, "Move");
         }
     }
   else if (!strcmp(cmd->command, "dst"))
diff --git a/src/shared/status_mon.c b/src/shared/status_mon.c
index cebee95..3dfd994 100644
--- a/src/shared/status_mon.c
+++ b/src/shared/status_mon.c
@@ -53,7 +53,6 @@ status_op_add(const char *path)
   so->path = eina_stringshare_add(path);
   so->file = fopen(so->path, "r");
   ops      = eina_list_append(ops, so);
-  printf("  NEW %p\n", so->file);
   return so;
 }
 

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

Reply via email to