[gnome-builder/gnome-builder-3-28] sourceview: always return a value for GTask



commit 443942586e84806667144e3821cbb4874a40779e
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 9 14:23:17 2018 -0700

    sourceview: always return a value for GTask
    
    This is a backport to ensure that we're returning a value for the task.

 src/libide/sourceview/ide-source-view.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/sourceview/ide-source-view.c b/src/libide/sourceview/ide-source-view.c
index 25f0f65d2..956f91564 100644
--- a/src/libide/sourceview/ide-source-view.c
+++ b/src/libide/sourceview/ide-source-view.c
@@ -5399,6 +5399,8 @@ ide_source_view_find_references_cb (GObject      *object,
 
   g_signal_connect (popover, "hide", G_CALLBACK (gtk_widget_destroy), NULL);
 
+  g_task_return_boolean (task, TRUE);
+
   IDE_EXIT;
 }
 
@@ -5417,6 +5419,7 @@ ide_source_view_real_find_references (IdeSourceView *self)
   g_assert (IDE_IS_SOURCE_VIEW (self));
 
   task = g_task_new (self, NULL, NULL, NULL);
+  g_task_set_source_tag (task, ide_source_view_real_find_references);
 
   adapter = ide_buffer_get_symbol_resolvers (priv->buffer);
   n_extensions = ide_extension_set_adapter_get_n_extensions (adapter);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]