Commit dabf01ce4c18b3e311ee7caf10660b1388408f99

Thomas de Grivel 2024-12-11T16:39:42

wip kmsg

diff --git a/kmsg/kmsg.kc3 b/kmsg/kmsg.kc3
index b64cd74..ec1b52c 100755
--- a/kmsg/kmsg.kc3
+++ b/kmsg/kmsg.kc3
@@ -7,19 +7,21 @@ defmodule Kmsg do
   def activate = fn (app) {
     window = Gtk4.ApplicationWindow.new(app)
     Gtk4.Window.set_title(window, "Kmsg")
-    Gtk4.Window.set_default_size(window, (Uw) 1080, (Uw) 720)
-    paned = Gtk4.Paned.new(:horizontal)
+    Gtk4.Window.set_default_size(window, (Uw) 640, (Uw) 480)
+    #paned = Gtk4.Paned.new(:horizontal)
     eb1 = Gtk4.EntryBuffer.new("Test 1")
     text1 = Gtk4.Text.new_with_buffer(eb1)
-    Gtk4.Paned.set_start_child(paned, text1)
-    Gtk4.Paned.set_resize_start_child(paned, true)
-    Gtk4.Paned.set_shrink_start_child(paned, false)
-    eb2 = Gtk4.EntryBuffer.new("Test 2")
-    text2 = Gtk4.Text.new_with_buffer(eb2)
-    Gtk4.Paned.set_end_child(paned, text2)
-    Gtk4.Paned.set_resize_end_child(paned, false)
-    Gtk4.Paned.set_shrink_end_child(paned, false)
-    Gtk4.Window.set_child(window, paned)
+    ##Gtk4.Widget.set_size_request(text1, -1, -1)
+    #Gtk4.Paned.set_start_child(paned, text1)
+    #Gtk4.Paned.set_resize_start_child(paned, false)
+    #Gtk4.Paned.set_shrink_start_child(paned, false)
+    #eb2 = Gtk4.EntryBuffer.new("Test 2")
+    #text2 = Gtk4.Text.new_with_buffer(eb2)
+    #Gtk4.Paned.set_end_child(paned, text2)
+    #Gtk4.Paned.set_resize_end_child(paned, false)
+    #Gtk4.Paned.set_shrink_end_child(paned, false)
+    Gtk4.Window.set_child(window, text1)
+    
     Gtk4.Window.present(window)
   }