libsysprof-ui: remove offsets from allocation

This isn't actually needed, and messes things up in the new capture view
depending on the ancestry.
This commit is contained in:
Christian Hergert
2019-05-14 13:06:25 -07:00
parent 5f5920a6d4
commit b19ce4b741

View File

@ -95,7 +95,6 @@ get_time_from_coordinates (SysprofVisualizerView *self,
{ {
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self); SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
SysprofVisualizerRow *row1 = NULL; SysprofVisualizerRow *row1 = NULL;
GtkAllocation alloc;
gint64 begin_time; gint64 begin_time;
gint64 end_time; gint64 end_time;
gint graph_width; gint graph_width;
@ -105,11 +104,6 @@ get_time_from_coordinates (SysprofVisualizerView *self,
if (priv->reader == NULL) if (priv->reader == NULL)
return 0; return 0;
gtk_widget_get_allocation (GTK_WIDGET (self), &alloc);
x -= alloc.x;
y -= alloc.y;
/* /*
* Find the first row so we can get an idea of how wide the graph is * Find the first row so we can get an idea of how wide the graph is
* (ignoring spacing caused by the widget being wider than the data points. * (ignoring spacing caused by the widget being wider than the data points.