summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-11-12 00:05:12 (GMT)
committerhobbs <hobbs>2003-11-12 00:05:12 (GMT)
commit62397c286ba9f643a43b403afee53647389b4429 (patch)
tree7c356234e548f6e289d1f962cf4f223db8f8e677
parent945271515ead5b592c10eb661258f8c61b351b9a (diff)
downloadtk-62397c286ba9f643a43b403afee53647389b4429.zip
tk-62397c286ba9f643a43b403afee53647389b4429.tar.gz
tk-62397c286ba9f643a43b403afee53647389b4429.tar.bz2
* generic/tkButton.c (ConfigureButton): abort option processing if
the button was deleted. [Bug #824479]
-rw-r--r--ChangeLog9
-rw-r--r--generic/tkButton.c9
2 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 22c9ab9..5efa0ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,19 @@
2003-11-11 Jeff Hobbs <jeffh@ActiveState.com>
+ * generic/tkButton.c (ConfigureButton): abort option processing if
+ the button was deleted. [Bug #824479]
+
+ * generic/tkMenuDraw.c (TkPostSubmenu): add {} around menu name in
+ case it has spaces when calling Tcl_VarEval. This is a hack until
+ this is rewritten for proper Tcl_Obj handling. [Bug #723856]
+
* library/tkfbox.tcl (::tk::dialog::file::Update): optimize the
dir/files list separation by using the -tails, -directory and
-type option of 'glob'. Also passes the glob the -filetypes
filters instead of calling string match over each file.
[Patch #833819]
+ (::tk::dialog::file::ActivateEnt): allow typing filename into
+ entry when tk_getOpenFile -multiple 1 is specified. [Bug #788069]
* generic/tkListbox.c (ListboxDeleteSubCmd, ListboxListVarProc):
free itemconfig data when removing it from table. [Bug #836483]
diff --git a/generic/tkButton.c b/generic/tkButton.c
index 7e629cb..a26249d 100644
--- a/generic/tkButton.c
+++ b/generic/tkButton.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkButton.c,v 1.20.2.1 2003/04/26 02:53:46 hobbs Exp $
+ * RCS: @(#) $Id: tkButton.c,v 1.20.2.2 2003/11/12 00:05:13 hobbs Exp $
*/
#include "tkButton.h"
@@ -1080,6 +1080,13 @@ ConfigureButton(interp, butPtr, objc, objv)
Tk_RestoreSavedOptions(&savedOptions);
}
+ if ((butPtr->flags & BUTTON_DELETED)) {
+ /*
+ * Somehow button was deleted - just abort now. [Bug #824479]
+ */
+ return TCL_ERROR;
+ }
+
/*
* A few options need special processing, such as setting the
* background from a 3-D border, or filling in complicated