diff --git a/gtk4/action_map.c b/gtk4/action_map.c
index 3ee41ac..50bee32 100644
--- a/gtk4/action_map.c
+++ b/gtk4/action_map.c
@@ -20,5 +20,5 @@ void kc3_gtk4_action_map_add_action (GActionMap **map,
assert(*map);
assert(action);
assert(*action);
- g_action_map_add_action(*map, *action);
+ g_action_map_add_action(G_ACTION_MAP(*map), G_ACTION(*action));
}
diff --git a/kmsg/kmsg.kc3 b/kmsg/kmsg.kc3
index 59ed22a..d5c9b00 100755
--- a/kmsg/kmsg.kc3
+++ b/kmsg/kmsg.kc3
@@ -20,7 +20,7 @@ defmodule Kmsg do
require List
def connect = fn (action, void) {
-
+ puts("Kmsg.connect")
}
def activate = fn (app, void) {
@@ -66,6 +66,7 @@ defmodule Kmsg do
Gtk4.Box.append(box2, button)
Gtk4.Paned.set_position(paned, 240);
connect_action = Gtk4.SimpleAction.new("app.connect")
+ Gtk4.signal_connect(connect_action, "activate", Kmsg.connect, void)
Gtk4.ActionMap.add_action(app, connect_action)
menu = Gtk4.Menu.new()
file_menu = Gtk4.Menu.new()