Commit a5500061 authored by Matthias Clasen's avatar Matthias Clasen

Add private API to query tick callbacks

This information can be useful for debugging purposes.
parent 21536775
......@@ -5410,6 +5410,12 @@ gtk_widget_remove_tick_callback (GtkWidget *widget,
}
}
gboolean
gtk_widget_has_tick_callback (GtkWidget *widget)
{
return widget->priv->tick_callbacks != NULL;
}
static void
gtk_widget_connect_frame_clock (GtkWidget *widget,
GdkFrameClock *frame_clock)
......
......@@ -162,6 +162,7 @@ void _gtk_widget_remove_controller (GtkWidget
GtkEventController *controller);
GList * _gtk_widget_list_controllers (GtkWidget *widget,
GtkPropagationPhase phase);
gboolean gtk_widget_has_tick_callback (GtkWidget *widget);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment