libsysprof-ui: pan when selection changes

This helps keep things in view while moving around.
This commit is contained in:
Christian Hergert
2019-05-15 18:58:22 -07:00
parent aa2772ef87
commit 3210926f15
3 changed files with 80 additions and 6 deletions

View File

@ -74,5 +74,9 @@ SYSPROF_AVAILABLE_IN_ALL
gdouble sysprof_zoom_manager_fit_zoom_for_duration (SysprofZoomManager *self,
gint64 duration,
gint width);
SYSPROF_AVAILABLE_IN_ALL
gdouble sysprof_zoom_manager_get_offset_at_time (SysprofZoomManager *self,
gint64 offset,
gint width);
G_END_DECLS