diff options
author | hobbs <hobbs@noemail.net> | 2004-09-16 20:06:33 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2004-09-16 20:06:33 (GMT) |
commit | 95bbd51667e778fb000d94a9800199e327f95ddb (patch) | |
tree | aebabf7afcea07eb00d4ff2f9561fd54b910f723 /generic | |
parent | 70ed7cfcbcce400ee2eb2f618678c96606b62635 (diff) | |
download | tk-95bbd51667e778fb000d94a9800199e327f95ddb.zip tk-95bbd51667e778fb000d94a9800199e327f95ddb.tar.gz tk-95bbd51667e778fb000d94a9800199e327f95ddb.tar.bz2 |
* generic/tkMenu.c (MenuWorldChanged): ensure that we recompute
the menu geometry on WorldChanged to handle font size
changes. [Bug 607649]
FossilOrigin-Name: 576e4aa8a268ababe75bc999e48832edbe5c57bb
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkMenu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c index a87eaf3..e3859a9 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.25 2004/01/13 02:06:00 davygrvy Exp $ + * RCS: @(#) $Id: tkMenu.c,v 1.26 2004/09/16 20:06:33 hobbs Exp $ */ /* @@ -1384,7 +1384,7 @@ UnhookCascadeEntry(mePtr) * Singularly linked list deletion. The two special cases are * 1. one element; 2. The first element is the one we want. */ - + if (cascadeEntryPtr == mePtr) { if (cascadeEntryPtr->nextCascadePtr == NULL) { @@ -1393,7 +1393,7 @@ UnhookCascadeEntry(mePtr) * menu, so we need to clear out the list pointer in the * cascade itself. */ - + menuRefPtr->parentEntryPtr = NULL; /* * The original field is set to zero below, after it is @@ -1448,7 +1448,6 @@ DestroyMenuEntry(memPtr) TkMenu *menuPtr = mePtr->menuPtr; if (menuPtr->postedCascade == mePtr) { - /* * Ignore errors while unposting the menu, since it's possible * that the menu has already been deleted and the unpost will @@ -1537,20 +1536,21 @@ DestroyMenuEntry(memPtr) * *--------------------------------------------------------------------------- */ - + static void MenuWorldChanged(instanceData) ClientData instanceData; /* Information about widget. */ { TkMenu *menuPtr = (TkMenu *) instanceData; int i; - + TkMenuConfigureDrawOptions(menuPtr); for (i = 0; i < menuPtr->numEntries; i++) { TkMenuConfigureEntryDrawOptions(menuPtr->entries[i], menuPtr->entries[i]->index); - TkpConfigureMenuEntry(menuPtr->entries[i]); + TkpConfigureMenuEntry(menuPtr->entries[i]); } + TkEventuallyRecomputeMenu(menuPtr); } /* |