visualizer-view: add SpVisualizerView

This adds a new helper widget SpVisualizerView to simplify using
visualizers from applications using libsysprof-ui-2 such as
Builder.

We can manage the view range, zoom, etc from this widget going
forward.
This commit is contained in:
Christian Hergert
2016-09-27 23:03:12 -07:00
parent 2197a0c02e
commit f8a0f2701e
10 changed files with 305 additions and 39 deletions

View File

@ -198,7 +198,7 @@ sp_visualizer_ticks_set_time_range (SpVisualizerTicks *self,
{
g_return_if_fail (SP_IS_VISUALIZER_TICKS (self));
if (begin_time < end_time)
if (begin_time > end_time)
{
gint64 tmp = begin_time;
begin_time = end_time;