diff options
author | jacekm <jacekm> | 2010-06-15 21:35:02 +0000 |
---|---|---|
committer | jacekm <jacekm> | 2010-06-15 21:35:02 +0000 |
commit | cda986230aac44454a9470a1da715ec984f57d90 (patch) | |
tree | 2c34283cac1fc9c962b2ffd87491a83a2ee89b2c | |
parent | 574827bb3e203280256fa4be6e7fe937bd6dbaee (diff) | |
download | xombrero-cda986230aac44454a9470a1da715ec984f57d90.tar.gz |
Must recalculate tab_id for all tabs after closing any tab but the
last one, because it's assumed to reflect tab position in couple of places, eg. in keyboard tab switching code; ok marco
-rw-r--r-- | xxxterm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c index 1b8fa83..95257f3 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -1793,6 +1793,9 @@ delete_tab(struct tab *t) free(t->user_agent); g_free(t); + + TAILQ_FOREACH(t, &tabs, entry) + t->tab_id = gtk_notebook_page_num(notebook, t->vbox); } void |