ui/gtk/button.c

branch
newapi
changeset 264
24d9a92fd048
parent 261
b39f0e61fd99
child 274
9e2aee097b69
--- a/ui/gtk/button.c	Fri Feb 16 18:33:34 2024 +0100
+++ b/ui/gtk/button.c	Fri Feb 16 19:00:53 2024 +0100
@@ -142,6 +142,8 @@
         event->obj = obj;
         event->var = var;
         event->observers = NULL;
+        event->callback = NULL;
+        event->userdata = NULL;
 
         g_signal_connect(
                 widget,
@@ -214,6 +216,8 @@
         event->obj = obj;
         event->var = var;
         event->observers = NULL;
+        event->callback = NULL;
+        event->userdata = NULL;
         
         g_signal_connect(
                 rbutton,

mercurial