diff -r 7a36f91c22f7 -r a499c8a72c15 ui/gtk/button.c --- a/ui/gtk/button.c Tue Apr 01 11:50:32 2014 +0200 +++ b/ui/gtk/button.c Tue Apr 01 11:53:10 2014 +0200 @@ -44,6 +44,7 @@ event->obj = obj; event->user_data = data; event->callback = f; + event->value = 0; g_signal_connect( button, @@ -64,6 +65,7 @@ e.obj = event->obj; e.window = event->obj->window; e.document = event->obj->document; - e.intval = 0; + e.eventdata = NULL; + e.intval = event->value; event->callback(&e, event->user_data); }