Add private API to query tick callbacks

This information can be useful for debugging purposes.
This commit is contained in:
Matthias Clasen 2014-10-24 08:00:41 -04:00
parent 21536775d7
commit a55000613a
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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