about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorjacekm <jacekm>2010-06-15 21:35:02 +0000
committerjacekm <jacekm>2010-06-15 21:35:02 +0000
commitcda986230aac44454a9470a1da715ec984f57d90 (patch)
tree2c34283cac1fc9c962b2ffd87491a83a2ee89b2c
parent574827bb3e203280256fa4be6e7fe937bd6dbaee (diff)
downloadxombrero-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.c3
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
mit/INSTALL?h=v1.5.2&id=94c5d83e6752cf6506c78c9454c08b9f3df9371c'>94c5d83e ^
f51bd48a ^
















7582555b ^







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45