From 5f5920a6d4fe788cfb0080568b715470a82f4f89 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 14 May 2019 13:05:47 -0700 Subject: [PATCH] libsysprof-ui: cleanup --- src/libsysprof-ui/sysprof-visualizer-list.c | 3 +-- src/libsysprof-ui/sysprof-visualizer-view.c | 11 ++++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/libsysprof-ui/sysprof-visualizer-list.c b/src/libsysprof-ui/sysprof-visualizer-list.c index 1673c63e..67c131cd 100644 --- a/src/libsysprof-ui/sysprof-visualizer-list.c +++ b/src/libsysprof-ui/sysprof-visualizer-list.c @@ -31,8 +31,7 @@ #include "sysprof-mark-visualizer-row.h" #include "sysprof-zoom-manager.h" -#define NSEC_PER_SEC G_GUINT64_CONSTANT(1000000000) -#define DEFAULT_PIXELS_PER_SECOND 20 +#define NSEC_PER_SEC G_GUINT64_CONSTANT(1000000000) typedef struct { diff --git a/src/libsysprof-ui/sysprof-visualizer-view.c b/src/libsysprof-ui/sysprof-visualizer-view.c index 424e1cd5..4304e0dc 100644 --- a/src/libsysprof-ui/sysprof-visualizer-view.c +++ b/src/libsysprof-ui/sysprof-visualizer-view.c @@ -31,9 +31,6 @@ #include "sysprof-visualizer-ticks.h" #include "sysprof-visualizer-view.h" -#define NSEC_PER_SEC G_GINT64_CONSTANT(1000000000) -#define DEFAULT_PIXELS_PER_SECOND 20 - typedef struct { SysprofCaptureReader *reader; @@ -41,13 +38,13 @@ typedef struct SysprofSelection *selection; SysprofVisualizerList *list; - GtkScrolledWindow *scroller; + GtkScrolledWindow *scroller; SysprofVisualizerTicks *ticks; - gint64 drag_begin_at; - gint64 drag_selection_at; + gint64 drag_begin_at; + gint64 drag_selection_at; - guint button_pressed : 1; + guint button_pressed : 1; } SysprofVisualizerViewPrivate; typedef struct