summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenubutton.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-12-21 04:16:44 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-12-21 04:16:44 (GMT)
commitc72a9f168448e8f6b17aa805d5308b4934cfa4d1 (patch)
tree6c60946475aff05c9b7298b22ca4e995a5b563aa /macosx/tkMacOSXMenubutton.c
parent8faca188c488af10facd0c8470314303f1b02c5b (diff)
downloadtk-c72a9f168448e8f6b17aa805d5308b4934cfa4d1.zip
tk-c72a9f168448e8f6b17aa805d5308b4934cfa4d1.tar.gz
tk-c72a9f168448e8f6b17aa805d5308b4934cfa4d1.tar.bz2
Revert unintended commit of menubutton file
Diffstat (limited to 'macosx/tkMacOSXMenubutton.c')
-rw-r--r--macosx/tkMacOSXMenubutton.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/macosx/tkMacOSXMenubutton.c b/macosx/tkMacOSXMenubutton.c
index c79a9c1..df42763 100644
--- a/macosx/tkMacOSXMenubutton.c
+++ b/macosx/tkMacOSXMenubutton.c
@@ -60,23 +60,12 @@ static const BoundsFix boundsFixes[] = {
#endif
-
-
/*
* Forward declarations for procedures defined later in this file:
*/
static void MenuButtonEventProc(ClientData clientData, XEvent *eventPtr);
-/*
- * The structure below defines menubutton class behavior by means of functions
- * that can be invoked from generic window code.
- */
-
-Tk_ClassProcs tkpMenubuttonClass = {
- sizeof(Tk_ClassProcs), /* size */
- TkMenuButtonWorldChanged, /* worldChangedProc */
-};
/*
*----------------------------------------------------------------------
@@ -98,11 +87,9 @@ TkMenuButton *
TkpCreateMenuButton(
Tk_Window tkwin)
{
- MacMenuButton *macButtonPtr =
- (MacMenuButton *) ckalloc(sizeof(MacMenuButton));
+ MacMenuButton *macButtonPtr = ckalloc(sizeof(MacMenuButton));
macButtonPtr->button = nil;
-
Tk_CreateEventHandler(tkwin, ActivateMask,
MenuButtonEventProc, (ClientData) macButtonPtr);
return (TkMenuButton *) macButtonPtr;
@@ -173,7 +160,7 @@ TkpDisplayMenuButton(
if (!tkwin || !Tk_IsMapped(tkwin) || !view ||
!TkMacOSXSetupDrawingContext((Drawable) macWin, NULL, 1, &dc)) {
return;
- }
+ }
CGContextConcatCTM(dc.context, t);
Tk_Fill3DRectangle(tkwin, (Pixmap) macWin, mbPtr->normalBorder, 0, 0,
Tk_Width(tkwin), Tk_Height(tkwin), 0, TK_RELIEF_FLAT);