[gnome-builder/gnome-builder-3-28] debug-manager: always return value or error for GTask
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] debug-manager: always return value or error for GTask
- Date: Wed, 21 Mar 2018 23:58:40 +0000 (UTC)
commit ada034259abbe214c4ca67890e7c62b2369e1109
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 21 16:58:14 2018 -0700
debug-manager: always return value or error for GTask
We aren't doing anything with the result, but we should keep our usage of
the task uniform and correct.
src/libide/debugger/ide-debug-manager.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libide/debugger/ide-debug-manager.c b/src/libide/debugger/ide-debug-manager.c
index c8d993249..89eda94b5 100644
--- a/src/libide/debugger/ide-debug-manager.c
+++ b/src/libide/debugger/ide-debug-manager.c
@@ -468,6 +468,7 @@ ide_debug_manager_load_file_cb (GObject *object,
if (buffer == NULL)
{
g_warning ("%s", error->message);
+ g_task_return_error (task, g_steal_pointer (&error));
IDE_EXIT;
}
@@ -479,6 +480,8 @@ ide_debug_manager_load_file_cb (GObject *object,
ide_debug_manager_mark_stopped (self, buffer, breakpoint);
+ g_task_return_boolean (task, TRUE);
+
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]