summaryrefslogtreecommitdiffstats
path: root/src/notebook.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-24 00:57:49 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-24 00:57:49 (EDT)
commite896b5da1446fe57362a4522c26efbe89b4662a9 (patch)
treec0efd83338ffb5c9b9e08e7bc50e87802d123ae7 /src/notebook.c
parent833d64422ea7b25eace707ae982dbada01b38dac (diff)
downloadmarquee-e896b5da1446fe57362a4522c26efbe89b4662a9.zip
marquee-e896b5da1446fe57362a4522c26efbe89b4662a9.tar.gz
marquee-e896b5da1446fe57362a4522c26efbe89b4662a9.tar.bz2
MqNotebook: Add comment and debugging output for bug
Diffstat (limited to 'src/notebook.c')
-rw-r--r--src/notebook.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index d3583b8..56f6a0d 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -171,6 +171,19 @@ tab_tree_row_activated_cb(GtkTreeView G_GNUC_UNUSED *tree_view,
gint depth;
indices = gtk_tree_path_get_indices_with_depth(tree_path, &depth);
+ /*
+ * FIXME: gtk_tree_path_get_indices_with_depth() sometimes returns two
+ * indices, both always 0. Steps to reproduce:
+ *
+ * 1. Open a new tab (i.e. a child of another tab)
+ * 2. Show the tab tree menu
+ * 3. Activate the row representing the new (child) tab
+ *
+ * Obviously this seems to be a recursion issue.
+ */
+ g_print("depth = %d\n", depth);
+ for (gint i = 0; i < depth; ++i)
+ g_print("indices[%d] = %d\n", i, indices[i]);
g_assert(depth == 1);
mq_notebook_set_current_page(notebook, indices[0]);
gtk_widget_hide(notebook->tab_tree_popover);