diff options
author | das <das@noemail.net> | 2006-10-31 13:56:57 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2006-10-31 13:56:57 (GMT) |
commit | 0074491897431fb9025956e6cb435b227a954c27 (patch) | |
tree | a42b42ce61d35763dbcc140b6d85c1cbe8d8e7d1 /generic/ttk/ttkDefaultTheme.c | |
parent | cf5703adf730ad2f3f9f7346d072298304bdcae0 (diff) | |
download | tk-0074491897431fb9025956e6cb435b227a954c27.zip tk-0074491897431fb9025956e6cb435b227a954c27.tar.gz tk-0074491897431fb9025956e6cb435b227a954c27.tar.bz2 |
* macosx/Wish.xcodeproj/project.pbxproj: add new Ttk files.
* macosx/ttkMacOSXTheme.c: standardize header #includes.
* unix/Makefile (checkstubs, checkexports): check ttk.decls, allow
export of Ttk prefixed symbols.
* generic/ttk/tkDefaultTheme.c: fix warnings.
FossilOrigin-Name: 0c8d1e77007bc6d1a10000f55c8c725edf857e3e
Diffstat (limited to 'generic/ttk/ttkDefaultTheme.c')
-rw-r--r-- | generic/ttk/ttkDefaultTheme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/ttk/ttkDefaultTheme.c b/generic/ttk/ttkDefaultTheme.c index 86f169a..dd7ad67 100644 --- a/generic/ttk/ttkDefaultTheme.c +++ b/generic/ttk/ttkDefaultTheme.c @@ -1,4 +1,4 @@ -/* $Id: ttkDefaultTheme.c,v 1.1 2006/10/31 01:42:26 hobbs Exp $ +/* $Id: ttkDefaultTheme.c,v 1.2 2006/10/31 13:56:58 das Exp $ * * Copyright (c) 2003, Joe English * @@ -19,7 +19,9 @@ static const int WIN32_XDRAWLINE_HACK = 1; static const int WIN32_XDRAWLINE_HACK = 0; #endif +#ifndef MIN #define MIN(a,b) (a < b ? a : b) +#endif #define BORDERWIDTH 2 #define SCROLLBAR_WIDTH 14 @@ -738,7 +740,7 @@ static void MenubuttonArrowElementDraw( int size = MENUBUTTON_ARROW_SIZE; int postDirection = POST_BELOW; ArrowDirection arrowDirection = ARROW_DOWN; - int width, height; + int width = 0, height = 0; Tk_GetPixelsFromObj(NULL, tkwin, arrow->sizeObj, &size); Tcl_GetIndexFromObj(NULL, arrow->directionObj, directionStrings, |