summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--generic/tkBind.c7
2 files changed, 3 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 7ea5951..0464211 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
* generic/tkIntPlatDecls.h
* generic/tkIntXlibDecls.h
* generic/tkPlatDecls.h
+ * generic/tkBind.c Little simplification
2010-01-19 Jan Nijtmans <nijtmans@users.sf.net>
diff --git a/generic/tkBind.c b/generic/tkBind.c
index 4821513..5c10a58 100644
--- a/generic/tkBind.c
+++ b/generic/tkBind.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: tkBind.c,v 1.60 2010/01/06 14:58:30 dkf Exp $
+ * RCS: @(#) $Id: tkBind.c,v 1.61 2010/01/29 23:29:06 nijtmans Exp $
*/
#include "tkInt.h"
@@ -2425,14 +2425,11 @@ ExpandPercents(
} else if (flags & PROP) {
string = TkFindStateString(propNotify,
eventPtr->xproperty.state);
- goto doString;
} else if (flags & VISIBILITY) {
string = TkFindStateString(visNotify,
eventPtr->xvisibility.state);
- goto doString;
- } else {
- goto doString;
}
+ goto doString;
case 't':
if (flags & KEY_BUTTON_MOTION_VIRTUAL) {
number = (int) eventPtr->xkey.time;