[gnome-todo] sidebar-provider-row: Instrument a function
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] sidebar-provider-row: Instrument a function
- Date: Sat, 30 Mar 2019 21:47:02 +0000 (UTC)
commit 9dd98d96bc0ca2eade066fd6bf4a6e6374f57bb2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Mar 30 18:38:56 2019 -0300
sidebar-provider-row: Instrument a function
src/sidebar/gtd-sidebar-provider-row.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/sidebar/gtd-sidebar-provider-row.c b/src/sidebar/gtd-sidebar-provider-row.c
index c856786..47514b1 100644
--- a/src/sidebar/gtd-sidebar-provider-row.c
+++ b/src/sidebar/gtd-sidebar-provider-row.c
@@ -20,6 +20,7 @@
#define G_LOG_DOMAIN "GtdSidebarProviderRow"
+#include "gtd-debug.h"
#include "gtd-manager.h"
#include "gtd-provider.h"
#include "gtd-sidebar-provider-row.h"
@@ -113,6 +114,12 @@ update_loading_state (GtdSidebarProviderRow *self)
is_loading = gtd_object_get_loading (GTD_OBJECT (self->provider));
has_lists = lists != NULL;
+ GTD_TRACE_MSG ("'%s' (%s): is_loading: %d, has_lists: %d",
+ gtd_provider_get_name (self->provider),
+ gtd_provider_get_id (self->provider),
+ is_loading,
+ has_lists);
+
gtk_stack_set_visible_child_name (self->stack, is_loading ? "spinner" : "empty");
gtk_widget_set_visible (self->loading_label, is_loading && !has_lists);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]