summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkDefaultTheme.c
diff options
context:
space:
mode:
authordas <das>2006-11-03 03:06:21 (GMT)
committerdas <das>2006-11-03 03:06:21 (GMT)
commit6a21e72df71f06d61c44e3de34afe26973732214 (patch)
treeddde20bc872b7fac3e8a946a67418e60dcc23428 /generic/ttk/ttkDefaultTheme.c
parent576cbeb2f5ccec11ea4ebb71b788d4527ee1aae3 (diff)
downloadtk-6a21e72df71f06d61c44e3de34afe26973732214.zip
tk-6a21e72df71f06d61c44e3de34afe26973732214.tar.gz
tk-6a21e72df71f06d61c44e3de34afe26973732214.tar.bz2
* generic/ttk/ttkBlink.c, generic/ttk/ttkButton.c:
* generic/ttk/ttkClamTheme.c, generic/ttk/ttkClassicTheme.c: * generic/ttk/ttkDecls.h, generic/ttk/ttkDefaultTheme.c: * generic/ttk/ttkElements.c, generic/ttk/ttkEntry.c: * generic/ttk/ttkFrame.c, generic/ttk/ttkImage.c: * generic/ttk/ttkInit.c, generic/ttk/ttkLabel.c: * generic/ttk/ttkLayout.c, generic/ttk/ttkManager.h: * generic/ttk/ttkNotebook.c, generic/ttk/ttkPanedwindow.c: * generic/ttk/ttkProgress.c, generic/ttk/ttkScale.c: * generic/ttk/ttkScroll.c, generic/ttk/ttkScrollbar.c: * generic/ttk/ttkSeparator.c, generic/ttk/ttkSquare.c: * generic/ttk/ttkStubInit.c, generic/ttk/ttkStubLib.c: * generic/ttk/ttkTheme.c, generic/ttk/ttkTheme.h: * generic/ttk/ttkThemeInt.h, generic/ttk/ttkTrack.c: * generic/ttk/ttkTreeview.c, generic/ttk/ttkWidget.c: * generic/ttk/ttkWidget.h, macosx/ttkMacOSXTheme.c: * win/ttkWinMonitor.c, win/ttkWinTheme.c, win/ttkWinXPTheme.c: ensure all global Ttk symbols have Ttk or ttk prefix; declare all externally visible Ttk symbols not contained in stubs table as MODULE_SCOPE (or as static when possible); so that 'make check{exports,stubs}' once again complete without errors.
Diffstat (limited to 'generic/ttk/ttkDefaultTheme.c')
-rw-r--r--generic/ttk/ttkDefaultTheme.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/generic/ttk/ttkDefaultTheme.c b/generic/ttk/ttkDefaultTheme.c
index dd7ad67..6971b3e 100644
--- a/generic/ttk/ttkDefaultTheme.c
+++ b/generic/ttk/ttkDefaultTheme.c
@@ -1,4 +1,4 @@
-/* $Id: ttkDefaultTheme.c,v 1.2 2006/10/31 13:56:58 das Exp $
+/* $Id: ttkDefaultTheme.c,v 1.3 2006/11/03 03:06:22 das Exp $
*
* Copyright (c) 2003, Joe English
*
@@ -54,7 +54,7 @@ static int shadowColors[6][4] =
};
/* top-left, bottom-right */
-int thinShadowColors[6][4] =
+static int thinShadowColors[6][4] =
{
{ FLAT, FLAT }, /* TK_RELIEF_FLAT = 0*/
{ DARK, LITE }, /* TK_RELIEF_GROOVE = 1*/
@@ -194,7 +194,7 @@ static void ArrowPoints(Ttk_Box b, ArrowDirection dir, XPoint points[4])
}
/*public*/
-void ArrowSize(int h, ArrowDirection dir, int *widthPtr, int *heightPtr)
+void TtkArrowSize(int h, ArrowDirection dir, int *widthPtr, int *heightPtr)
{
switch (dir) {
case ARROW_UP:
@@ -205,11 +205,11 @@ void ArrowSize(int h, ArrowDirection dir, int *widthPtr, int *heightPtr)
}
/*
- * DrawArrow, FillArrow --
+ * TtkDrawArrow, TtkFillArrow --
* Draw an arrow in the indicated direction inside the specified box.
*/
/*public*/
-void FillArrow(
+void TtkFillArrow(
Display *display, Drawable d, GC gc, Ttk_Box b, ArrowDirection dir)
{
XPoint points[4];
@@ -219,7 +219,7 @@ void FillArrow(
}
/*public*/
-void DrawArrow(
+void TtkDrawArrow(
Display *display, Drawable d, GC gc, Ttk_Box b, ArrowDirection dir)
{
XPoint points[4];
@@ -405,7 +405,7 @@ static char *button_images[] = {
};
#endif
-Ttk_StateTable checkbutton_states[] =
+static Ttk_StateTable checkbutton_states[] =
{
{ 0, 0, TTK_STATE_SELECTED|TTK_STATE_DISABLED },
{ 1, TTK_STATE_SELECTED, TTK_STATE_DISABLED },
@@ -429,14 +429,14 @@ static char *checkbutton_pixels[] = {
"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
};
-IndicatorSpec checkbutton_spec =
+static IndicatorSpec checkbutton_spec =
{
13, 13, 4, /* width, height, nimages */
checkbutton_pixels,
checkbutton_states
};
-Ttk_StateTable radiobutton_states[] =
+static Ttk_StateTable radiobutton_states[] =
{
{ 0, 0, TTK_STATE_SELECTED|TTK_STATE_DISABLED },
{ 1, TTK_STATE_SELECTED, TTK_STATE_DISABLED },
@@ -461,7 +461,7 @@ static char *radiobutton_pixels[] = {
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
};
-IndicatorSpec radiobutton_spec =
+static IndicatorSpec radiobutton_spec =
{
13, 13, 4, /* width, height, nimages */
radiobutton_pixels,
@@ -653,7 +653,7 @@ static void ArrowElementSize(
Tk_GetPixelsFromObj(NULL, tkwin, arrow->sizeObj, &width);
width -= Ttk_PaddingWidth(ArrowPadding);
- ArrowSize(width/2, direction, widthPtr, heightPtr);
+ TtkArrowSize(width/2, direction, widthPtr, heightPtr);
*paddingPtr = ArrowPadding;
}
@@ -675,7 +675,7 @@ static void ArrowElementDraw(
tkwin, d, border, b.x, b.y, b.width, b.height, 0, TK_RELIEF_FLAT);
DrawBorder(tkwin,d,border,borderColor,b,borderWidth,relief);
- FillArrow(Tk_Display(tkwin), d, Tk_GCForColor(arrowColor, d),
+ TtkFillArrow(Tk_Display(tkwin), d, Tk_GCForColor(arrowColor, d),
Ttk_PadBox(b, ArrowPadding), direction);
}
@@ -755,10 +755,10 @@ static void MenubuttonArrowElementDraw(
case POST_FLUSH: arrowDirection = ARROW_DOWN; break;
}
- ArrowSize(size, arrowDirection, &width, &height);
+ TtkArrowSize(size, arrowDirection, &width, &height);
b = Ttk_PadBox(b, MenubuttonArrowPadding);
b = Ttk_AnchorBox(b, width, height, TK_ANCHOR_CENTER);
- FillArrow(Tk_Display(tkwin), d, gc, b, arrowDirection);
+ TtkFillArrow(Tk_Display(tkwin), d, gc, b, arrowDirection);
}
static Ttk_ElementSpec MenubuttonArrowElementSpec =
@@ -1113,10 +1113,10 @@ static Ttk_ElementSpec TreeitemIndicatorElementSpec =
/*------------------------------------------------------------------------
- * AltTheme_Init --
+ * TtkAltTheme_Init --
* Install alternate theme.
*/
-int AltTheme_Init(Tcl_Interp *interp)
+MODULE_SCOPE int TtkAltTheme_Init(Tcl_Interp *interp)
{
Ttk_Theme theme = Ttk_CreateTheme(interp, "alt", NULL);