~ubuntu-branches/ubuntu/gutsy/tk8.4/gutsy-updates

« back to all changes in this revision

Viewing changes to macosx/tkMacOSXMenubutton.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-05 15:56:45 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070105155645-8srmlwqo7m1q86qi
Tags: 8.4.14-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * See the file "license.terms" for information on usage and redistribution
11
11
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12
12
 *
13
 
 * RCS: @(#) $Id: tkMacOSXMenubutton.c,v 1.2.2.6 2005/11/27 06:47:33 das Exp $
 
13
 * RCS: @(#) $Id: tkMacOSXMenubutton.c,v 1.2.2.9 2006/07/20 06:27:34 das Exp $
14
14
 */
15
15
 
16
 
#include <Carbon/Carbon.h>
 
16
#include "tkMacOSXInt.h"
17
17
#include "tkMenu.h"
18
18
#include "tkMenubutton.h"
19
 
#include "tkMacOSXInt.h"
 
19
#include "tkMacOSXFont.h"
20
20
#include "tkMacOSXDebug.h"
21
21
 
22
 
#if !defined(MAC_OS_X_VERSION_10_3) || \
23
 
        (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
 
22
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1030
24
23
    /* Define constants only available on Mac OS X 10.3 or later */
25
24
    #define kMenuAttrDoNotUseUserCommandKeys (1 << 7)
26
25
#endif
32
31
 
33
32
#define TK_POPUP_OFFSET 32      /* size of popup marker */
34
33
 
35
 
int TkMacOSXGetNewMenuID _ANSI_ARGS_((Tcl_Interp *interp, TkMenu *menuInstPtr, int cascade, short *menuIDPtr));
36
 
void TkMacOSXFreeMenuID _ANSI_ARGS_((short menuID));
 
34
MODULE_SCOPE int TkMacOSXGetNewMenuID _ANSI_ARGS_((Tcl_Interp *interp, TkMenu *menuInstPtr, int cascade, short *menuIDPtr));
 
35
MODULE_SCOPE void TkMacOSXFreeMenuID _ANSI_ARGS_((short menuID));
37
36
 
38
37
typedef struct {
39
38
    SInt16 initialValue;
90
89
    int * styleChanged
91
90
);
92
91
 
93
 
extern int TkFontGetFirstTextLayout(Tk_TextLayout layout, Tk_Font * font, char * dst); 
94
 
extern void TkMacOSXInitControlFontStyle(Tk_Font tkfont,ControlFontStylePtr fsPtr);
95
 
 
96
92
/*
97
93
 * The structure below defines menubutton class behavior by means of
98
94
 * procedures that can be invoked from generic window code.