[gnome-control-center/gbsneto/panel-widget-in-sidebar: 4/4] panel-list: Instrument more functions
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/panel-widget-in-sidebar: 4/4] panel-list: Instrument more functions
- Date: Fri, 16 Nov 2018 21:23:14 +0000 (UTC)
commit a687954dafabd9b13bc2bbbcf3f33b89127406e6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Nov 16 19:22:10 2018 -0200
panel-list: Instrument more functions
These were useful tracing messages to figure out some bugs
with the sidebar widget implementation.
shell/cc-panel-list.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c
index fefa59d44..8b9b98199 100644
--- a/shell/cc-panel-list.c
+++ b/shell/cc-panel-list.c
@@ -181,8 +181,12 @@ switch_to_view (CcPanelList *self,
GtkWidget *visible_child;
gboolean should_crossfade;
+ CC_ENTRY;
+
if (self->view == view)
- return;
+ CC_RETURN ();
+
+ CC_TRACE_MSG ("Switching to view: %d", view);
self->previous_view = self->view;
self->view = view;
@@ -214,6 +218,8 @@ switch_to_view (CcPanelList *self,
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_VIEW]);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SEARCH_MODE]);
+
+ CC_EXIT;
}
static void
@@ -616,6 +622,8 @@ row_activated_cb (GtkWidget *listbox,
self->previous_view != CC_PANEL_LIST_SEARCH &&
gtk_stack_get_child_by_name (GTK_STACK (self), "custom-widget") != NULL)
{
+ CC_TRACE_MSG ("Switching to panel widget");
+
switch_to_view (self, CC_PANEL_LIST_WIDGET);
}
@@ -638,6 +646,8 @@ search_row_activated_cb (GtkWidget *listbox,
RowData *data;
GList *children, *l;
+ CC_ENTRY;
+
data = g_object_get_data (G_OBJECT (row), "data");
if (data->category == CC_CATEGORY_DETAILS)
@@ -679,6 +689,8 @@ search_row_activated_cb (GtkWidget *listbox,
}
g_list_free (children);
+
+ CC_EXIT;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]