visualizer: use cast macro with type check

This commit is contained in:
Christian Hergert
2017-02-17 00:20:13 -08:00
parent 4ed4d23e42
commit 6a3d7282ec

View File

@ -233,7 +233,7 @@ static gboolean
sp_visualizer_ticks_draw (GtkWidget *widget,
cairo_t *cr)
{
SpVisualizerTicks *self = (SpVisualizerTicks *)widget;
SpVisualizerTicks *self = SP_VISUALIZER_TICKS (widget);
GtkStyleContext *style;
GtkAllocation alloc;
GtkStateFlags state;