[gnome-builder] plugins/editorui: add more tracing information
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/editorui: add more tracing information
- Date: Thu, 6 Oct 2022 22:50:53 +0000 (UTC)
commit a083c90ca3523d70754b187269a6ab68d3a5b18d
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 6 15:49:24 2022 -0700
plugins/editorui: add more tracing information
.../editorui/gbp-editorui-application-addin.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/editorui/gbp-editorui-application-addin.c
b/src/plugins/editorui/gbp-editorui-application-addin.c
index e7d8cbcb3..57d226e98 100644
--- a/src/plugins/editorui/gbp-editorui-application-addin.c
+++ b/src/plugins/editorui/gbp-editorui-application-addin.c
@@ -140,13 +140,15 @@ gbp_editorui_application_addin_add_option_entries (IdeApplicationAddin *addin,
static void
gbp_editorui_application_addin_open_all_cb (GObject *object,
- GAsyncResult *result,
- gpointer user_data)
+ GAsyncResult *result,
+ gpointer user_data)
{
IdeWorkbench *workbench = (IdeWorkbench *) object;
g_autoptr(GApplicationCommandLine) cmdline = user_data;
g_autoptr(GError) error = NULL;
+ IDE_ENTRY;
+
g_assert (IDE_IS_MAIN_THREAD ());
g_assert (IDE_IS_WORKBENCH (workbench));
g_assert (G_IS_ASYNC_RESULT (result));
@@ -160,12 +162,14 @@ gbp_editorui_application_addin_open_all_cb (GObject *object,
if (cmdline != NULL)
g_application_command_line_set_exit_status (cmdline, error == NULL ? EXIT_SUCCESS : EXIT_FAILURE);
+
+ IDE_EXIT;
}
static void
gbp_editorui_application_addin_handle_command_line (IdeApplicationAddin *addin,
- IdeApplication *application,
- GApplicationCommandLine *cmdline)
+ IdeApplication *application,
+ GApplicationCommandLine *cmdline)
{
g_autoptr(IdeWorkbench) workbench = NULL;
IdeApplication *app = (IdeApplication *)application;
@@ -175,6 +179,8 @@ gbp_editorui_application_addin_handle_command_line (IdeApplicationAddin *add
GVariantDict *options;
gint argc;
+ IDE_ENTRY;
+
g_assert (IDE_IS_APPLICATION_ADDIN (addin));
g_assert (IDE_IS_APPLICATION (app));
g_assert (G_IS_APPLICATION_COMMAND_LINE (cmdline));
@@ -206,12 +212,12 @@ gbp_editorui_application_addin_handle_command_line (IdeApplicationAddin *add
ide_workbench_focus_workspace (workbench, IDE_WORKSPACE (workspace));
- return;
+ IDE_EXIT;
}
}
if (argc < 2)
- return;
+ IDE_EXIT;
/*
* If the user is trying to open various files using the command line with
@@ -263,6 +269,8 @@ gbp_editorui_application_addin_handle_command_line (IdeApplicationAddin *add
NULL,
gbp_editorui_application_addin_open_all_cb,
g_object_ref (cmdline));
+
+ IDE_EXIT;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]