[gnome-builder] editorconfig: setup some tracing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editorconfig: setup some tracing
- Date: Wed, 11 May 2016 16:22:06 +0000 (UTC)
commit 17d15529bb88d9cc89476bf5ec11df013ae834d9
Author: Christian Hergert <chergert redhat com>
Date: Wed May 11 19:19:19 2016 +0300
editorconfig: setup some tracing
.../editorconfig/ide-editorconfig-file-settings.c | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/libide/editorconfig/ide-editorconfig-file-settings.c
b/libide/editorconfig/ide-editorconfig-file-settings.c
index 3f58c79..fc1f9c7 100644
--- a/libide/editorconfig/ide-editorconfig-file-settings.c
+++ b/libide/editorconfig/ide-editorconfig-file-settings.c
@@ -16,10 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#define G_LOG_DOMAIN "editorconfig"
+
#include <editorconfig-glib.h>
#include <glib/gi18n.h>
#include "ide-editorconfig-file-settings.h"
+#include "ide-debug.h"
#include "ide-file.h"
struct _IdeEditorconfigFileSettings
@@ -136,6 +139,8 @@ ide_editorconfig_file_settings_init_async (GAsyncInitable *initable,
IdeFile *file;
GFile *gfile = NULL;
+ IDE_ENTRY;
+
g_return_if_fail (IDE_IS_EDITORCONFIG_FILE_SETTINGS (self));
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
@@ -151,11 +156,13 @@ ide_editorconfig_file_settings_init_async (GAsyncInitable *initable,
G_IO_ERROR,
G_IO_ERROR_NOT_FOUND,
_("No file was provided."));
- return;
+ IDE_EXIT;
}
g_task_set_task_data (task, g_object_ref (gfile), g_object_unref);
g_task_run_in_thread (task, ide_editorconfig_file_settings_init_worker);
+
+ IDE_EXIT;
}
static gboolean
@@ -163,11 +170,15 @@ ide_editorconfig_file_settings_init_finish (GAsyncInitable *initable,
GAsyncResult *result,
GError **error)
{
- GTask *task = (GTask *)result;
+ gboolean ret;
+
+ IDE_ENTRY;
+
+ g_return_val_if_fail (G_IS_TASK (result), FALSE);
- g_return_val_if_fail (G_IS_TASK (task), FALSE);
+ ret = g_task_propagate_boolean (G_TASK (result), error);
- return g_task_propagate_boolean (task, error);
+ IDE_RETURN (ret);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]