diff options
author | das <das> | 2009-04-10 16:16:02 (GMT) |
---|---|---|
committer | das <das> | 2009-04-10 16:16:02 (GMT) |
commit | ce62db0666f529e5c4bbcb7ae3d0cdf5df3d461b (patch) | |
tree | 706b94572ea5280f5cfb985792cc4b61358508d6 /generic/tkMenu.c | |
parent | 33b665bf5d5d86365b8758d5001c15cbd6ceb23c (diff) | |
download | tk-ce62db0666f529e5c4bbcb7ae3d0cdf5df3d461b.zip tk-ce62db0666f529e5c4bbcb7ae3d0cdf5df3d461b.tar.gz tk-ce62db0666f529e5c4bbcb7ae3d0cdf5df3d461b.tar.bz2 |
* generic/tkMenu.c (PostProcessEntry): delay call to
TkpConfigureMenuEntry() until all menu entry attributes are setup.
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r-- | generic/tkMenu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c index fa2959f..ac90f0a 100644 --- a/generic/tkMenu.c +++ b/generic/tkMenu.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMenu.c,v 1.50 2009/02/06 08:12:07 das Exp $ + * RCS: @(#) $Id: tkMenu.c,v 1.51 2009/04/10 16:16:02 das Exp $ */ /* @@ -1784,10 +1784,6 @@ PostProcessEntry( return TCL_ERROR; } - if (TkpConfigureMenuEntry(mePtr) != TCL_OK) { - return TCL_ERROR; - } - /* * Get the images for the entry, if there are any. Allocate the new images * before freeing the old ones, so that the reference counts don't go to @@ -1884,6 +1880,10 @@ PostProcessEntry( } } + if (TkpConfigureMenuEntry(mePtr) != TCL_OK) { + return TCL_ERROR; + } + return TCL_OK; } |