Instrument some functions

parent 8cb7ea94
...@@ -497,6 +497,8 @@ on_panel_stack_visible_child_changed_cb (GtkStack *panel_stack, ...@@ -497,6 +497,8 @@ on_panel_stack_visible_child_changed_cb (GtkStack *panel_stack,
GtkListBox *listbox; GtkListBox *listbox;
GtdPanel *visible_panel; GtdPanel *visible_panel;
GTD_ENTRY;
g_assert (GTD_IS_PANEL (gtk_stack_get_visible_child (panel_stack))); g_assert (GTD_IS_PANEL (gtk_stack_get_visible_child (panel_stack)));
visible_panel = GTD_PANEL (gtk_stack_get_visible_child (panel_stack)); visible_panel = GTD_PANEL (gtk_stack_get_visible_child (panel_stack));
...@@ -530,6 +532,8 @@ on_panel_stack_visible_child_changed_cb (GtkStack *panel_stack, ...@@ -530,6 +532,8 @@ on_panel_stack_visible_child_changed_cb (GtkStack *panel_stack,
/* Select the row if it's not already selected*/ /* Select the row if it's not already selected*/
if (gtk_list_box_row_is_selected (panel_row)) if (gtk_list_box_row_is_selected (panel_row))
gtk_list_box_select_row (listbox, panel_row); gtk_list_box_select_row (listbox, panel_row);
GTD_EXIT;
} }
static void static void
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "gtd-task-lists-workspace.h" #include "gtd-task-lists-workspace.h"
#include "gtd-debug.h"
#include "task-lists-workspace.h" #include "task-lists-workspace.h"
#include "gtd-sidebar.h" #include "gtd-sidebar.h"
#include "gtd-task-list-panel.h" #include "gtd-task-list-panel.h"
...@@ -248,6 +249,8 @@ on_stack_visible_child_cb (GtdTaskListsWorkspace *self, ...@@ -248,6 +249,8 @@ on_stack_visible_child_cb (GtdTaskListsWorkspace *self,
GtdPanel *panel; GtdPanel *panel;
GList *header_widgets; GList *header_widgets;
GTD_ENTRY;
visible_child = gtk_stack_get_visible_child (stack); visible_child = gtk_stack_get_visible_child (stack);
panel = GTD_PANEL (visible_child); panel = GTD_PANEL (visible_child);
...@@ -279,6 +282,8 @@ on_stack_visible_child_cb (GtdTaskListsWorkspace *self, ...@@ -279,6 +282,8 @@ on_stack_visible_child_cb (GtdTaskListsWorkspace *self,
/* Setup the panel's menu */ /* Setup the panel's menu */
update_panel_menu (self); update_panel_menu (self);
GTD_EXIT;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment