Fix gtk_widget_add_tick_callback sometimes not working
We clear GtkTickCallbackInfo on creation to ensure all fields start as 0. Before we sometimes ended up with destroyed being 1 so the tick was never called.
This commit is contained in:
@ -4655,7 +4655,7 @@ gtk_widget_add_tick_callback (GtkWidget *widget,
|
||||
GDK_FRAME_CLOCK_PHASE_UPDATE);
|
||||
}
|
||||
|
||||
info = g_slice_new (GtkTickCallbackInfo);
|
||||
info = g_slice_new0 (GtkTickCallbackInfo);
|
||||
|
||||
info->refcount = 1;
|
||||
info->id = ++tick_callback_id;
|
||||
|
||||
Reference in New Issue
Block a user