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 932d1fd4c005bc0820639727aa3c8f91df18a703
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Thu Oct 5 16:18:30 2023 +0100

    add file rename ipc to backend
---
 src/backends/table/open |  2 ++
 src/efm/efm.c           |  9 ---------
 src/efm/efm_private.h   | 10 ++++++++++
 src/efm/efm_util.c      |  5 +++++
 src/shared/common/cmd.h |  1 +
 5 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/src/backends/table/open b/src/backends/table/open
index f7b4d37..e44415d 100755
--- a/src/backends/table/open
+++ b/src/backends/table/open
@@ -171,6 +171,8 @@ function handle_cmd() {
       ;;
     file-delete )
       ;;
+    file-rename )
+      ;;
   esac
 }
 
diff --git a/src/efm/efm.c b/src/efm/efm.c
index 802d1d7..83b76ea 100644
--- a/src/efm/efm.c
+++ b/src/efm/efm.c
@@ -40,15 +40,6 @@ static Evas_Smart      *_smart            = NULL;
 static Evas_Smart_Class _sc               = EVAS_SMART_CLASS_INIT_NULL;
 static Evas_Smart_Class _sc_parent        = EVAS_SMART_CLASS_INIT_NULL;
 
-static void _cb_canvas_resize(void *data, Evas *e,
-                              void *event_info EINA_UNUSED);
-static void _reposition_detail_header_items(Smart_Data *sd);
-static void _recalc(Smart_Data *sd);
-static void _redo_detail_sizes(Smart_Data *sd);
-static void _reposition_detail_bars(Smart_Data *sd);
-static void _detail_realized_items_resize(Smart_Data *sd);
-
-
 #define ENTRY                                       \
   Smart_Data *sd = evas_object_smart_data_get(obj); \
   if (!sd) return
diff --git a/src/efm/efm_private.h b/src/efm/efm_private.h
index a1198c0..d28da6b 100644
--- a/src/efm/efm_private.h
+++ b/src/efm/efm_private.h
@@ -1,5 +1,15 @@
 // functions used between the split up parts of the efm view
 
+static void _cb_canvas_resize(void *data, Evas *e,
+                              void *event_info EINA_UNUSED);
+static void _reposition_detail_header_items(Smart_Data *sd);
+static void _recalc(Smart_Data *sd);
+static void _redo_detail_sizes(Smart_Data *sd);
+static void _reposition_detail_bars(Smart_Data *sd);
+static void _detail_realized_items_resize(Smart_Data *sd);
+static void _icon_path_cmd_strbuf_append(Eina_Strbuf *strbuf, const char *key,
+                                         Smart_Data *sd, Icon *icon);
+
 static void _cb_header_change(void *data);
 
 static void   _listing_do(Smart_Data *sd);
diff --git a/src/efm/efm_util.c b/src/efm/efm_util.c
index 06bce58..2ee9ce7 100644
--- a/src/efm/efm_util.c
+++ b/src/efm/efm_util.c
@@ -627,6 +627,11 @@ _cb_entry_activated(void *data, Evas_Object *obj EINA_UNUSED,
       utf = elm_entry_markup_to_utf8(txt);
       if (utf)
         {
+          Eina_Strbuf *buf = cmd_strbuf_new("file-rename");
+
+          _icon_path_cmd_strbuf_append(buf, "path", icon->sd, icon);
+          cmd_strbuf_append(buf, "new-name", utf);
+          cmd_strbuf_exe_consume(buf, icon->sd->exe_open);
           printf("XXX: rename to [%s]\n", utf);
           free(utf);
         }
diff --git a/src/shared/common/cmd.h b/src/shared/common/cmd.h
index ed3bd3d..01ee4a1 100644
--- a/src/shared/common/cmd.h
+++ b/src/shared/common/cmd.h
@@ -32,6 +32,7 @@
 // file-selected
 // file-unselected
 // file-delete
+// file-rename
 //
 ////////////////////
 

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

Reply via email to