ui/gtk/button.c

changeset 21
012418e7dc90
parent 16
a499c8a72c15
child 33
458831c574f4
--- a/ui/gtk/button.c	Wed Apr 02 20:31:47 2014 +0200
+++ b/ui/gtk/button.c	Thu Apr 03 11:12:22 2014 +0200
@@ -51,6 +51,11 @@
                 "clicked",
                 G_CALLBACK(ui_button_clicked),
                 event);
+        g_signal_connect(
+                button,
+                "destroy",
+                G_CALLBACK(ui_destroy_userdata),
+                event);
     }
     
     UiContainer *ct = uic_get_current_container(obj);

mercurial