diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-25 11:23:16 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-25 11:23:16 (EDT) |
commit | 1e865aaafac5888d9956d468172f5722477d7ab3 (patch) | |
tree | ad27d7ce4196ca6bc6666fe3c8742dcfad9de359 /src | |
parent | 5fd86cc3febf71d17bfe9631ffbeccbd888495bf (diff) | |
download | marquee-1e865aaafac5888d9956d468172f5722477d7ab3.zip marquee-1e865aaafac5888d9956d468172f5722477d7ab3.tar.gz marquee-1e865aaafac5888d9956d468172f5722477d7ab3.tar.bz2 |
mq_notebook_remove_page(): Update tab positions
Diffstat (limited to 'src')
-rw-r--r-- | src/notebook.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c index 0b53f1c..f646b1a 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -427,6 +427,10 @@ mq_notebook_remove_page(MqNotebook *notebook, MqTabPage *page) mq_tree_position(notebook->found_node) - 1); mq_tree_remove_allocated(MQ_TREE(notebook->found_node)); + + mq_tree_foreach_from(MQ_TREE(notebook->found_node), update_position, + NULL); + g_free(notebook->found_node); } |