[sysprof/wip/chergert/sysprof-3] libsysprof-ui: remove offsets from allocation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof-ui: remove offsets from allocation
- Date: Tue, 14 May 2019 20:07:33 +0000 (UTC)
commit 334dbdebca9aa19e3bcc04c05ba1e4c7336c86e3
Author: Christian Hergert <chergert redhat com>
Date: Tue May 14 13:06:25 2019 -0700
libsysprof-ui: remove offsets from allocation
This isn't actually needed, and messes things up in the new capture view
depending on the ancestry.
src/libsysprof-ui/sysprof-visualizer-view.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-visualizer-view.c b/src/libsysprof-ui/sysprof-visualizer-view.c
index 4304e0d..cb7a626 100644
--- a/src/libsysprof-ui/sysprof-visualizer-view.c
+++ b/src/libsysprof-ui/sysprof-visualizer-view.c
@@ -95,7 +95,6 @@ get_time_from_coordinates (SysprofVisualizerView *self,
{
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
SysprofVisualizerRow *row1 = NULL;
- GtkAllocation alloc;
gint64 begin_time;
gint64 end_time;
gint graph_width;
@@ -105,11 +104,6 @@ get_time_from_coordinates (SysprofVisualizerView *self,
if (priv->reader == NULL)
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
* (ignoring spacing caused by the widget being wider than the data points.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]