Commit 3f6c78c9db041d0d2a25c08601ab7ec5e3780232

Thomas de Grivel 2024-12-15T20:43:04

box and button in kmsg

diff --git a/kmsg/kmsg.kc3 b/kmsg/kmsg.kc3
index fd86f83..527245e 100755
--- a/kmsg/kmsg.kc3
+++ b/kmsg/kmsg.kc3
@@ -5,6 +5,8 @@ defmodule Kmsg do
   require Gtk4
   require Gtk4.Application
   require Gtk4.ApplicationWindow
+  require Gtk4.Box
+  require Gtk4.Button
   require Gtk4.Frame
   require Gtk4.Paned
   require Gtk4.Widget
@@ -21,11 +23,17 @@ defmodule Kmsg do
     Gtk4.Paned.set_resize_start_child(paned, true)
     Gtk4.Paned.set_shrink_start_child(paned, false)
     Gtk4.Widget.set_size_request(frame1, 50, 50)
+    box1 = Gtk4.Box.new(:vertical, 0)
     frame2 = Gtk4.Frame.new("Frame 2")
-    Gtk4.Paned.set_end_child(paned, frame2)
     Gtk4.Paned.set_resize_end_child(paned, false)
     Gtk4.Paned.set_shrink_end_child(paned, false)
     Gtk4.Widget.set_size_request(frame2, 50, 50)
+    Gtk4.Box.append(box1, frame2)
+    box2 = Gtk4.Box.new(:horizontal, 0)
+    button = Gtk4.Button.new_with_label("Send")
+    Gtk4.Box.append(box2, button)
+    Gtk4.Box.append(box1, box2)
+    Gtk4.Paned.set_end_child(paned, box1)
     Gtk4.Window.set_child(window, paned)
     Gtk4.Paned.set_position(paned, 240);
     Gtk4.Window.present(window)