summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjenglish <jenglish@noemail.net>2008-01-28 00:36:06 (GMT)
committerjenglish <jenglish@noemail.net>2008-01-28 00:36:06 (GMT)
commit2c739eadad2310e53548dd1b82704ed38dffc8f3 (patch)
tree0912a8dd31db8af66e8f34e3f99ddf77af05caf7
parent960b6fa035e82ce9ac0ffc5c5aaa4143fb56b1d9 (diff)
downloadtk-2c739eadad2310e53548dd1b82704ed38dffc8f3.zip
tk-2c739eadad2310e53548dd1b82704ed38dffc8f3.tar.gz
tk-2c739eadad2310e53548dd1b82704ed38dffc8f3.tar.bz2
Make sure to schedule a redisplay when adding and/or hiding tabs [Bug 1878298].
FossilOrigin-Name: f56bd352526bb38d68a1dba36c719830d0494a39
-rw-r--r--ChangeLog5
-rw-r--r--generic/ttk/ttkNotebook.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 775d4fc..a4bbc8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-01-27 Joe English <jenglish@users.sourceforge.net>
+ * generic/ttk/ttkNotebook.c: Make sure to schedule a
+ redisplay when adding and/or hiding tabs [Bug 1878298].
+
+2008-01-27 Joe English <jenglish@users.sourceforge.net>
+
* unix/tkUnixRFont.c: Merged common code from InitFont()
and TkpGetFontAttrsForChar(), factored into GetTkFontAttributes()
and GetTkFontMetrics(). Removed write-only struct UnixFtFont
diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c
index 996dff5..68fd665 100644
--- a/generic/ttk/ttkNotebook.c
+++ b/generic/ttk/ttkNotebook.c
@@ -1,4 +1,4 @@
-/* $Id: ttkNotebook.c,v 1.12 2007/12/13 15:26:26 dgp Exp $
+/* $Id: ttkNotebook.c,v 1.13 2008/01/28 00:36:08 jenglish Exp $
* Copyright (c) 2004, Joe English
*/
@@ -239,6 +239,7 @@ static int ConfigureTab(
Tk_FreeSavedOptions(&savedOptions);
Ttk_ManagerSizeChanged(nb->notebook.mgr);
+ TtkRedisplayWidget(&nb->core);
return TCL_OK;
error:
@@ -982,6 +983,7 @@ static int NotebookForgetCommand(
}
Ttk_ForgetSlave(nb->notebook.mgr, index);
+ TtkRedisplayWidget(&nb->core);
return TCL_OK;
}
@@ -1011,6 +1013,8 @@ static int NotebookHideCommand(
SelectNearestTab(nb);
}
+ TtkRedisplayWidget(&nb->core);
+
return TCL_OK;
}
@@ -1183,7 +1187,6 @@ static int NotebookTabCommand(
SelectNearestTab(nb);
}
- TtkResizeWidget(&nb->core);
return TCL_OK;
}