mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
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:
parent
c6c33c5cd7
commit
bbb981fd1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user