mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-gtk: connect zoom plumbing to session
This gets the plumbing in place, but all of the charts are not yet doing the proper filtering based on session visible time.
This commit is contained in:
@ -364,3 +364,18 @@ sysprof_session_list_tracks (SysprofSession *self)
|
||||
|
||||
return g_object_ref (G_LIST_MODEL (self->tracks));
|
||||
}
|
||||
|
||||
void
|
||||
sysprof_session_zoom_to_selection (SysprofSession *self)
|
||||
{
|
||||
g_return_if_fail (SYSPROF_IS_SESSION (self));
|
||||
|
||||
if (memcmp (&self->visible_time, &self->selected_time, sizeof self->visible_time) == 0)
|
||||
return;
|
||||
|
||||
self->visible_time = self->selected_time;
|
||||
|
||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_VISIBLE_TIME]);
|
||||
|
||||
sysprof_session_update_axis (self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user