summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkProgress.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/ttkProgress.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/ttkProgress.c')
-rw-r--r--generic/ttk/ttkProgress.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/generic/ttk/ttkProgress.c b/generic/ttk/ttkProgress.c
index bb1bc0c..45b4415 100644
--- a/generic/ttk/ttkProgress.c
+++ b/generic/ttk/ttkProgress.c
@@ -1,4 +1,4 @@
-/* $Id: ttkProgress.c,v 1.1 2006/10/31 01:42:26 hobbs Exp $
+/* $Id: ttkProgress.c,v 1.2 2006/11/03 03:06:22 das Exp $
*
* Copyright (c) Joe English, Pat Thoyts, Michael Kirkham
*
@@ -49,7 +49,7 @@ static Tk_OptionSpec ProgressbarOptionSpecs[] =
{
{TK_OPTION_STRING_TABLE, "-orient", "orient", "Orient",
"horizontal", Tk_Offset(Progressbar,progress.orientObj), -1,
- 0, (ClientData)TTKOrientStrings, STYLE_CHANGED },
+ 0, (ClientData)ttkOrientStrings, STYLE_CHANGED },
{TK_OPTION_PIXELS, "-length", "length", "Length",
DEF_PROGRESSBAR_LENGTH, Tk_Offset(Progressbar,progress.lengthObj), -1,
0, 0, GEOMETRY_CHANGED },
@@ -69,7 +69,7 @@ static Tk_OptionSpec ProgressbarOptionSpecs[] =
{TK_OPTION_INT, "-phase", "phase", "Phase",
"0", Tk_Offset(Progressbar,progress.phaseObj), -1,
0, 0, 0 },
- WIDGET_INHERIT_OPTIONS(CoreOptionSpecs)
+ WIDGET_INHERIT_OPTIONS(ttkCoreOptionSpecs)
};
/*------------------------------------------------------------------------
@@ -162,18 +162,18 @@ static void VariableChanged(void *recordPtr, const char *value)
if (!value) {
/* Linked variable is unset -- disable widget */
- WidgetChangeState(&pb->core, TTK_STATE_DISABLED, 0);
+ TtkWidgetChangeState(&pb->core, TTK_STATE_DISABLED, 0);
return;
}
- WidgetChangeState(&pb->core, 0, TTK_STATE_DISABLED);
+ TtkWidgetChangeState(&pb->core, 0, TTK_STATE_DISABLED);
newValue = Tcl_NewStringObj(value, -1);
Tcl_IncrRefCount(newValue);
if (Tcl_GetDoubleFromObj(NULL, newValue, &scratch) != TCL_OK) {
- WidgetChangeState(&pb->core, TTK_STATE_INVALID, 0);
+ TtkWidgetChangeState(&pb->core, TTK_STATE_INVALID, 0);
return;
}
- WidgetChangeState(&pb->core, 0, TTK_STATE_INVALID);
+ TtkWidgetChangeState(&pb->core, 0, TTK_STATE_INVALID);
Tcl_DecrRefCount(pb->progress.valueObj);
pb->progress.valueObj = newValue;
@@ -218,7 +218,7 @@ static int ProgressbarConfigure(Tcl_Interp *interp, void *recordPtr, int mask)
if (!vt) return TCL_ERROR;
}
- if (CoreConfigure(interp, recordPtr, mask) != TCL_OK) {
+ if (TtkCoreConfigure(interp, recordPtr, mask) != TCL_OK) {
if (vt) Ttk_UntraceVariable(vt);
return TCL_ERROR;
}
@@ -269,7 +269,7 @@ static int ProgressbarSize(void *recordPtr, int *widthPtr, int *heightPtr)
Progressbar *pb = recordPtr;
int length = 100, orient = TTK_ORIENT_HORIZONTAL;
- WidgetSize(recordPtr, widthPtr, heightPtr);
+ TtkWidgetSize(recordPtr, widthPtr, heightPtr);
/* Override requested width (height) based on -length and -orient
*/
@@ -372,7 +372,7 @@ static Ttk_Layout ProgressbarGetLayout(
Tcl_Interp *interp, Ttk_Theme theme, void *recordPtr)
{
Progressbar *pb = recordPtr;
- Ttk_Layout layout = WidgetGetOrientedLayout(
+ Ttk_Layout layout = TtkWidgetGetOrientedLayout(
interp, theme, recordPtr, pb->progress.orientObj);
/*
@@ -488,12 +488,12 @@ static int ProgressbarStopCommand(
static WidgetCommandSpec ProgressbarCommands[] =
{
- { "configure", WidgetConfigureCommand },
- { "cget", WidgetCgetCommand },
- { "identify", WidgetIdentifyCommand },
- { "instate", WidgetInstateCommand },
+ { "configure", TtkWidgetConfigureCommand },
+ { "cget", TtkWidgetCgetCommand },
+ { "identify", TtkWidgetIdentifyCommand },
+ { "instate", TtkWidgetInstateCommand },
{ "start", ProgressbarStartCommand },
- { "state", WidgetStateCommand },
+ { "state", TtkWidgetStateCommand },
{ "step", ProgressbarStepCommand },
{ "stop", ProgressbarStopCommand },
{ NULL, NULL }
@@ -515,7 +515,7 @@ static WidgetSpec ProgressbarWidgetSpec =
ProgressbarGetLayout, /* getLayoutProc */
ProgressbarSize, /* sizeProc */
ProgressbarDoLayout, /* layoutProc */
- WidgetDisplay /* displayProc */
+ TtkWidgetDisplay /* displayProc */
};
/*
@@ -534,7 +534,7 @@ TTK_END_LAYOUT
/*
* Initialization:
*/
-int Progressbar_Init(Tcl_Interp *interp)
+MODULE_SCOPE int TtkProgressbar_Init(Tcl_Interp *interp)
{
Ttk_Theme themePtr = Ttk_GetDefaultTheme(interp);