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

git pushed a commit to reference refs/pull/29/head
in repository terminology.

View the commit online.

commit 81c908e10ae46b76de8ea32aba4245a03185574b
Author: [email protected] <[email protected]>
AuthorDate: Sat Mar 14 20:12:59 2026 -0600

    controls: add Save Session and Load Session buttons
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 src/bin/controls.c | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/src/bin/controls.c b/src/bin/controls.c
index 350efc2c..0f587d68 100644
--- a/src/bin/controls.c
+++ b/src/bin/controls.c
@@ -7,6 +7,7 @@
 #include "about.h"
 #include "termio.h"
 #include "main.h"
+#include "session.h"
 
 static Eina_Hash *controls = NULL;
 
@@ -235,6 +236,30 @@ _cb_group_input_changed(void *data, Evas_Object *obj EINA_UNUSED,
      win_toggle_visible_group(wn);
 }
 
+static void
+_cb_ct_session_save(void *data,
+                    Evas_Object *_obj EINA_UNUSED,
+                    void *_event EINA_UNUSED)
+{
+   Controls_Ctx *ctx = data;
+
+   controls_hide(ctx, EINA_FALSE);
+   session_popup_save_show(ctx->win, ctx->base, ctx->bg, ctx->term,
+                           _on_sub_done, ctx);
+}
+
+static void
+_cb_ct_session_load(void *data,
+                    Evas_Object *_obj EINA_UNUSED,
+                    void *_event EINA_UNUSED)
+{
+   Controls_Ctx *ctx = data;
+
+   controls_hide(ctx, EINA_FALSE);
+   session_popup_load_show(ctx->win, ctx->base, ctx->bg, ctx->term,
+                           _on_sub_done, ctx);
+}
+
 static void
 _cb_mouse_down(void *data,
                Evas *_e EINA_UNUSED,
@@ -414,6 +439,17 @@ controls_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg,
                         _cb_ct_set_title, ctx);
         elm_box_pack_end(ct_box, o);
 
+        o = _sep_add_h(win);
+        elm_box_pack_end(ct_box, o);
+
+        o = _button_add(win, _("Save Session"), "document-save",
+                        _cb_ct_session_save, ctx);
+        elm_box_pack_end(ct_box, o);
+
+        o = _button_add(win, _("Load Session"), "document-open",
+                        _cb_ct_session_load, ctx);
+        elm_box_pack_end(ct_box, o);
+
         o = _sep_add_v(win);
         elm_box_pack_end(ct_boxh, o);
 

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

Reply via email to