mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-ui: whitespace cleanup
This commit is contained in:
@ -93,8 +93,8 @@ find_row1 (GtkWidget *widget,
|
|||||||
|
|
||||||
static gint64
|
static gint64
|
||||||
get_time_from_coordinates (SysprofVisualizerView *self,
|
get_time_from_coordinates (SysprofVisualizerView *self,
|
||||||
gint x,
|
gint x,
|
||||||
gint y)
|
gint y)
|
||||||
{
|
{
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
SysprofVisualizerRow *row1 = NULL;
|
SysprofVisualizerRow *row1 = NULL;
|
||||||
@ -129,9 +129,9 @@ get_time_from_coordinates (SysprofVisualizerView *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
get_x_for_time_at (SysprofVisualizerView *self,
|
get_x_for_time_at (SysprofVisualizerView *self,
|
||||||
const GtkAllocation *alloc,
|
const GtkAllocation *alloc,
|
||||||
gint64 time_at)
|
gint64 time_at)
|
||||||
{
|
{
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
SysprofVisualizerRow *row1 = NULL;
|
SysprofVisualizerRow *row1 = NULL;
|
||||||
@ -168,8 +168,8 @@ get_x_for_time_at (SysprofVisualizerView *self,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_row_added (SysprofVisualizerView *self,
|
sysprof_visualizer_view_row_added (SysprofVisualizerView *self,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
SysprofVisualizerList *list)
|
SysprofVisualizerList *list)
|
||||||
{
|
{
|
||||||
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
||||||
g_assert (GTK_IS_WIDGET (widget));
|
g_assert (GTK_IS_WIDGET (widget));
|
||||||
@ -181,8 +181,8 @@ sysprof_visualizer_view_row_added (SysprofVisualizerView *self,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_row_removed (SysprofVisualizerView *self,
|
sysprof_visualizer_view_row_removed (SysprofVisualizerView *self,
|
||||||
GtkWidget *widget,
|
GtkWidget *widget,
|
||||||
SysprofVisualizerList *list)
|
SysprofVisualizerList *list)
|
||||||
{
|
{
|
||||||
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
||||||
g_assert (GTK_IS_WIDGET (widget));
|
g_assert (GTK_IS_WIDGET (widget));
|
||||||
@ -217,7 +217,7 @@ sysprof_visualizer_view_update_ticks (SysprofVisualizerView *self)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_hadjustment_value_changed (SysprofVisualizerView *self,
|
sysprof_visualizer_view_hadjustment_value_changed (SysprofVisualizerView *self,
|
||||||
GtkAdjustment *adjustment)
|
GtkAdjustment *adjustment)
|
||||||
{
|
{
|
||||||
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
||||||
g_assert (GTK_IS_ADJUSTMENT (adjustment));
|
g_assert (GTK_IS_ADJUSTMENT (adjustment));
|
||||||
@ -227,7 +227,7 @@ sysprof_visualizer_view_hadjustment_value_changed (SysprofVisualizerView *self,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_size_allocate (GtkWidget *widget,
|
sysprof_visualizer_view_size_allocate (GtkWidget *widget,
|
||||||
GtkAllocation *allocation)
|
GtkAllocation *allocation)
|
||||||
{
|
{
|
||||||
SysprofVisualizerView *self = (SysprofVisualizerView *)widget;
|
SysprofVisualizerView *self = (SysprofVisualizerView *)widget;
|
||||||
|
|
||||||
@ -241,9 +241,9 @@ sysprof_visualizer_view_size_allocate (GtkWidget *widget,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
draw_selection_cb (SysprofSelection *selection,
|
draw_selection_cb (SysprofSelection *selection,
|
||||||
gint64 range_begin,
|
gint64 range_begin,
|
||||||
gint64 range_end,
|
gint64 range_end,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
SelectionDraw *draw = user_data;
|
SelectionDraw *draw = user_data;
|
||||||
GdkRectangle area;
|
GdkRectangle area;
|
||||||
@ -269,7 +269,7 @@ draw_selection_cb (SysprofSelection *selection,
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
sysprof_visualizer_view_draw (GtkWidget *widget,
|
sysprof_visualizer_view_draw (GtkWidget *widget,
|
||||||
cairo_t *cr)
|
cairo_t *cr)
|
||||||
{
|
{
|
||||||
SysprofVisualizerView *self = (SysprofVisualizerView *)widget;
|
SysprofVisualizerView *self = (SysprofVisualizerView *)widget;
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
@ -301,8 +301,8 @@ sysprof_visualizer_view_draw (GtkWidget *widget,
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
sysprof_visualizer_view_list_button_press_event (SysprofVisualizerView *self,
|
sysprof_visualizer_view_list_button_press_event (SysprofVisualizerView *self,
|
||||||
GdkEventButton *ev,
|
GdkEventButton *ev,
|
||||||
SysprofVisualizerList *list)
|
SysprofVisualizerList *list)
|
||||||
{
|
{
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
|
|
||||||
@ -338,8 +338,8 @@ sysprof_visualizer_view_list_button_press_event (SysprofVisualizerView *self,
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
sysprof_visualizer_view_list_button_release_event (SysprofVisualizerView *self,
|
sysprof_visualizer_view_list_button_release_event (SysprofVisualizerView *self,
|
||||||
GdkEventButton *ev,
|
GdkEventButton *ev,
|
||||||
SysprofVisualizerList *list)
|
SysprofVisualizerList *list)
|
||||||
{
|
{
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
|
|
||||||
@ -355,8 +355,8 @@ sysprof_visualizer_view_list_button_release_event (SysprofVisualizerView *self,
|
|||||||
if (priv->drag_begin_at != priv->drag_selection_at)
|
if (priv->drag_begin_at != priv->drag_selection_at)
|
||||||
{
|
{
|
||||||
sysprof_selection_select_range (priv->selection,
|
sysprof_selection_select_range (priv->selection,
|
||||||
priv->drag_begin_at,
|
priv->drag_begin_at,
|
||||||
priv->drag_selection_at);
|
priv->drag_selection_at);
|
||||||
priv->drag_begin_at = -1;
|
priv->drag_begin_at = -1;
|
||||||
priv->drag_selection_at = -1;
|
priv->drag_selection_at = -1;
|
||||||
}
|
}
|
||||||
@ -368,8 +368,8 @@ sysprof_visualizer_view_list_button_release_event (SysprofVisualizerView *self,
|
|||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
sysprof_visualizer_view_list_motion_notify_event (SysprofVisualizerView *self,
|
sysprof_visualizer_view_list_motion_notify_event (SysprofVisualizerView *self,
|
||||||
GdkEventMotion *ev,
|
GdkEventMotion *ev,
|
||||||
SysprofVisualizerList *list)
|
SysprofVisualizerList *list)
|
||||||
{
|
{
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
|
|
||||||
@ -389,7 +389,7 @@ sysprof_visualizer_view_list_motion_notify_event (SysprofVisualizerView *self,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_list_realize_after (SysprofVisualizerView *self,
|
sysprof_visualizer_view_list_realize_after (SysprofVisualizerView *self,
|
||||||
SysprofVisualizerList *list)
|
SysprofVisualizerList *list)
|
||||||
{
|
{
|
||||||
GdkDisplay *display;
|
GdkDisplay *display;
|
||||||
GdkWindow *window;
|
GdkWindow *window;
|
||||||
@ -406,8 +406,8 @@ sysprof_visualizer_view_list_realize_after (SysprofVisualizerView *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_selection_changed (SysprofVisualizerView *self,
|
sysprof_visualizer_view_selection_changed (SysprofVisualizerView *self,
|
||||||
SysprofSelection *selection)
|
SysprofSelection *selection)
|
||||||
{
|
{
|
||||||
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
||||||
g_assert (SYSPROF_IS_SELECTION (selection));
|
g_assert (SYSPROF_IS_SELECTION (selection));
|
||||||
@ -430,9 +430,9 @@ sysprof_visualizer_view_finalize (GObject *object)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_get_property (GObject *object,
|
sysprof_visualizer_view_get_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
GValue *value,
|
GValue *value,
|
||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
SysprofVisualizerView *self = SYSPROF_VISUALIZER_VIEW (object);
|
SysprofVisualizerView *self = SYSPROF_VISUALIZER_VIEW (object);
|
||||||
|
|
||||||
@ -453,9 +453,9 @@ sysprof_visualizer_view_get_property (GObject *object,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_set_property (GObject *object,
|
sysprof_visualizer_view_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
SysprofVisualizerView *self = SYSPROF_VISUALIZER_VIEW (object);
|
SysprofVisualizerView *self = SYSPROF_VISUALIZER_VIEW (object);
|
||||||
|
|
||||||
@ -616,7 +616,7 @@ sysprof_visualizer_view_get_reader (SysprofVisualizerView *self)
|
|||||||
|
|
||||||
void
|
void
|
||||||
sysprof_visualizer_view_set_reader (SysprofVisualizerView *self,
|
sysprof_visualizer_view_set_reader (SysprofVisualizerView *self,
|
||||||
SysprofCaptureReader *reader)
|
SysprofCaptureReader *reader)
|
||||||
{
|
{
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
|
|
||||||
@ -649,9 +649,9 @@ sysprof_visualizer_view_set_reader (SysprofVisualizerView *self,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_add_child (GtkBuildable *buildable,
|
sysprof_visualizer_view_add_child (GtkBuildable *buildable,
|
||||||
GtkBuilder *builder,
|
GtkBuilder *builder,
|
||||||
GObject *child,
|
GObject *child,
|
||||||
const gchar *type)
|
const gchar *type)
|
||||||
{
|
{
|
||||||
SysprofVisualizerView *self = (SysprofVisualizerView *)buildable;
|
SysprofVisualizerView *self = (SysprofVisualizerView *)buildable;
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
@ -678,8 +678,8 @@ buildable_iface_init (GtkBuildableIface *iface)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_visualizer_view_zoom_manager_notify_zoom (SysprofVisualizerView *self,
|
sysprof_visualizer_view_zoom_manager_notify_zoom (SysprofVisualizerView *self,
|
||||||
GParamSpec *pspec,
|
GParamSpec *pspec,
|
||||||
SysprofZoomManager *zoom_manager)
|
SysprofZoomManager *zoom_manager)
|
||||||
{
|
{
|
||||||
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
g_assert (SYSPROF_IS_VISUALIZER_VIEW (self));
|
||||||
g_assert (SYSPROF_IS_ZOOM_MANAGER (zoom_manager));
|
g_assert (SYSPROF_IS_ZOOM_MANAGER (zoom_manager));
|
||||||
@ -704,7 +704,7 @@ sysprof_visualizer_view_get_zoom_manager (SysprofVisualizerView *self)
|
|||||||
|
|
||||||
void
|
void
|
||||||
sysprof_visualizer_view_set_zoom_manager (SysprofVisualizerView *self,
|
sysprof_visualizer_view_set_zoom_manager (SysprofVisualizerView *self,
|
||||||
SysprofZoomManager *zoom_manager)
|
SysprofZoomManager *zoom_manager)
|
||||||
{
|
{
|
||||||
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
SysprofVisualizerViewPrivate *priv = sysprof_visualizer_view_get_instance_private (self);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user