Instrument some functions

parent 8cb7ea94
......@@ -497,6 +497,8 @@ on_panel_stack_visible_child_changed_cb (GtkStack *panel_stack,
GtkListBox *listbox;
GtdPanel *visible_panel;
GTD_ENTRY;
g_assert (GTD_IS_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,
/* Select the row if it's not already selected*/
if (gtk_list_box_row_is_selected (panel_row))
gtk_list_box_select_row (listbox, panel_row);
GTD_EXIT;
}
static void
......
......@@ -22,6 +22,7 @@
#include "gtd-task-lists-workspace.h"
#include "gtd-debug.h"
#include "task-lists-workspace.h"
#include "gtd-sidebar.h"
#include "gtd-task-list-panel.h"
......@@ -248,6 +249,8 @@ on_stack_visible_child_cb (GtdTaskListsWorkspace *self,
GtdPanel *panel;
GList *header_widgets;
GTD_ENTRY;
visible_child = gtk_stack_get_visible_child (stack);
panel = GTD_PANEL (visible_child);
......@@ -279,6 +282,8 @@ on_stack_visible_child_cb (GtdTaskListsWorkspace *self,
/* Setup the panel's menu */
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