mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof: whitespace cleanup
This commit is contained in:
@ -47,6 +47,7 @@ struct _SysprofWindow
|
|||||||
GtkInfoBar *info_bar;
|
GtkInfoBar *info_bar;
|
||||||
GtkLabel *info_bar_label;
|
GtkLabel *info_bar_label;
|
||||||
GtkRevealer *info_bar_revealer;
|
GtkRevealer *info_bar_revealer;
|
||||||
|
SysprofMarksView *marks_view;
|
||||||
GtkPaned *paned;
|
GtkPaned *paned;
|
||||||
SysprofProfilerMenuButton *profiler_menu_button;
|
SysprofProfilerMenuButton *profiler_menu_button;
|
||||||
SysprofRecordingStateView *recording_view;
|
SysprofRecordingStateView *recording_view;
|
||||||
@ -944,9 +945,7 @@ sysprof_window_open_cb (GObject *object,
|
|||||||
g_assert (SYSPROF_IS_WINDOW (self));
|
g_assert (SYSPROF_IS_WINDOW (self));
|
||||||
g_assert (G_IS_TASK (result));
|
g_assert (G_IS_TASK (result));
|
||||||
|
|
||||||
reader = g_task_propagate_pointer (G_TASK (result), &error);
|
if (!(reader = g_task_propagate_pointer (G_TASK (result), &error)))
|
||||||
|
|
||||||
if (reader == NULL)
|
|
||||||
{
|
{
|
||||||
sysprof_window_notify_user (self,
|
sysprof_window_notify_user (self,
|
||||||
GTK_MESSAGE_ERROR,
|
GTK_MESSAGE_ERROR,
|
||||||
@ -967,9 +966,9 @@ sysprof_window_open_worker (GTask *task,
|
|||||||
GCancellable *cancellable)
|
GCancellable *cancellable)
|
||||||
{
|
{
|
||||||
g_autofree gchar *path = NULL;
|
g_autofree gchar *path = NULL;
|
||||||
|
g_autoptr(GError) error = NULL;
|
||||||
SysprofCaptureReader *reader;
|
SysprofCaptureReader *reader;
|
||||||
GFile *file = task_data;
|
GFile *file = task_data;
|
||||||
GError *error = NULL;
|
|
||||||
|
|
||||||
g_assert (G_IS_TASK (task));
|
g_assert (G_IS_TASK (task));
|
||||||
g_assert (SYSPROF_IS_WINDOW (source_object));
|
g_assert (SYSPROF_IS_WINDOW (source_object));
|
||||||
@ -977,13 +976,12 @@ sysprof_window_open_worker (GTask *task,
|
|||||||
|
|
||||||
path = g_file_get_path (file);
|
path = g_file_get_path (file);
|
||||||
|
|
||||||
if (NULL == (reader = sysprof_capture_reader_new (path, &error)))
|
if (!(reader = sysprof_capture_reader_new (path, &error)))
|
||||||
{
|
g_task_return_error (task, g_steal_pointer (&error));
|
||||||
g_task_return_error (task, error);
|
else
|
||||||
return;
|
g_task_return_pointer (task,
|
||||||
}
|
g_steal_pointer (&reader),
|
||||||
|
(GDestroyNotify)sysprof_capture_reader_unref);
|
||||||
g_task_return_pointer (task, reader, (GDestroyNotify)sysprof_capture_reader_unref);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user