diff options
author | fvogel <fvogelnew1@free.fr> | 2020-12-28 19:22:52 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-12-28 19:22:52 (GMT) |
commit | ab8581447860fd932b9cddaaad15482ec5b2a8ff (patch) | |
tree | 50bdd655b4ab69601f8e3e9bf2499c3ab23706c4 /generic | |
parent | 08e8b8259e502b560e6170dbc1ab6b88bcebaf45 (diff) | |
parent | 4c9bbf09763b8979ce09b90c8d9521685a1154a6 (diff) | |
download | tk-ab8581447860fd932b9cddaaad15482ec5b2a8ff.zip tk-ab8581447860fd932b9cddaaad15482ec5b2a8ff.tar.gz tk-ab8581447860fd932b9cddaaad15482ec5b2a8ff.tar.bz2 |
merge core-8-6-branch
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkMain.c | 8 | ||||
-rw-r--r-- | generic/ttk/ttkCache.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkElements.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkImage.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkInit.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkLayout.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkManager.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkNotebook.c | 3 | ||||
-rw-r--r-- | generic/ttk/ttkPanedwindow.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkProgress.c | 10 | ||||
-rw-r--r-- | generic/ttk/ttkScale.c | 2 | ||||
-rw-r--r-- | generic/ttk/ttkState.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkTagSet.c | 1 | ||||
-rw-r--r-- | generic/ttk/ttkTreeview.c | 2 | ||||
-rw-r--r-- | generic/ttk/ttkWidget.c | 1 |
15 files changed, 5 insertions, 30 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c index 32006b3..953a54f 100644 --- a/generic/tkMain.c +++ b/generic/tkMain.c @@ -15,14 +15,6 @@ */ #include "tkInt.h" -#include <ctype.h> -#include <stdio.h> -#include <string.h> -#ifdef NO_STDLIB_H -# include "../compat/stdlib.h" -#else -# include <stdlib.h> -#endif extern int TkCygwinMainEx(int, char **, Tcl_AppInitProc *, Tcl_Interp *); diff --git a/generic/ttk/ttkCache.c b/generic/ttk/ttkCache.c index e7f885f..c29007c 100644 --- a/generic/ttk/ttkCache.c +++ b/generic/ttk/ttkCache.c @@ -28,7 +28,6 @@ * but this will be a transient effect. */ -#include <stdio.h> /* for sprintf */ #include "tkInt.h" #include "ttkTheme.h" diff --git a/generic/ttk/ttkElements.c b/generic/ttk/ttkElements.c index c4469dc..4dd2adb 100644 --- a/generic/ttk/ttkElements.c +++ b/generic/ttk/ttkElements.c @@ -6,7 +6,6 @@ */ #include "tkInt.h" -#include <string.h> #include "ttkTheme.h" #include "ttkWidget.h" diff --git a/generic/ttk/ttkImage.c b/generic/ttk/ttkImage.c index 5c2a55f..2ef30e0 100644 --- a/generic/ttk/ttkImage.c +++ b/generic/ttk/ttkImage.c @@ -10,7 +10,6 @@ * [style map]. */ -#include <string.h> #include "tkInt.h" #include "ttkTheme.h" diff --git a/generic/ttk/ttkInit.c b/generic/ttk/ttkInit.c index f1b6e26..0bda18b 100644 --- a/generic/ttk/ttkInit.c +++ b/generic/ttk/ttkInit.c @@ -4,7 +4,6 @@ * Ttk package: initialization routine and miscellaneous utilities. */ -#include <string.h> #include "tkInt.h" #include "ttkTheme.h" #include "ttkWidget.h" diff --git a/generic/ttk/ttkLayout.c b/generic/ttk/ttkLayout.c index fdbeacf..ed61a1c 100644 --- a/generic/ttk/ttkLayout.c +++ b/generic/ttk/ttkLayout.c @@ -6,7 +6,6 @@ * Copyright (c) 2003 Joe English. Freely redistributable. */ -#include <string.h> #include "tkInt.h" #include "ttkThemeInt.h" diff --git a/generic/ttk/ttkManager.c b/generic/ttk/ttkManager.c index 8cad58c..a47d8dc 100644 --- a/generic/ttk/ttkManager.c +++ b/generic/ttk/ttkManager.c @@ -4,7 +4,6 @@ * Support routines for geometry managers. */ -#include <string.h> #include "tkInt.h" #include "ttkManager.h" diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c index 83075bc..ea82ef1 100644 --- a/generic/ttk/ttkNotebook.c +++ b/generic/ttk/ttkNotebook.c @@ -3,9 +3,6 @@ */ #include "tkInt.h" -#include <string.h> -#include <ctype.h> -#include <stdio.h> #include "ttkTheme.h" #include "ttkWidget.h" diff --git a/generic/ttk/ttkPanedwindow.c b/generic/ttk/ttkPanedwindow.c index fa0d5c8..4fbbf94 100644 --- a/generic/ttk/ttkPanedwindow.c +++ b/generic/ttk/ttkPanedwindow.c @@ -6,7 +6,6 @@ * TODO: track active/pressed sash. */ -#include <string.h> #include "tkInt.h" #include "ttkManager.h" #include "ttkTheme.h" diff --git a/generic/ttk/ttkProgress.c b/generic/ttk/ttkProgress.c index ae945ae..f65cb08 100644 --- a/generic/ttk/ttkProgress.c +++ b/generic/ttk/ttkProgress.c @@ -4,7 +4,6 @@ * ttk::progressbar widget. */ -#include <math.h> #include "tkInt.h" #include "ttkTheme.h" #include "ttkWidget.h" @@ -102,7 +101,6 @@ static void AnimateProgressProc(ClientData clientData) Progressbar *pb = (Progressbar *)clientData; pb->progress.timer = 0; - if (AnimationEnabled(pb)) { int phase = 0; Tcl_GetIntFromObj(NULL, pb->progress.phaseObj, &phase); @@ -110,9 +108,11 @@ static void AnimateProgressProc(ClientData clientData) /* * Update -phase: */ + ++phase; - if (pb->progress.maxPhase) - phase %= pb->progress.maxPhase; + if (phase > pb->progress.maxPhase) { + phase = 0; + } Tcl_DecrRefCount(pb->progress.phaseObj); pb->progress.phaseObj = Tcl_NewIntObj(phase); Tcl_IncrRefCount(pb->progress.phaseObj); @@ -120,9 +120,9 @@ static void AnimateProgressProc(ClientData clientData) /* * Reschedule: */ + pb->progress.timer = Tcl_CreateTimerHandler( pb->progress.period, AnimateProgressProc, clientData); - TtkRedisplayWidget(&pb->core); } } diff --git a/generic/ttk/ttkScale.c b/generic/ttk/ttkScale.c index 4d05f97..a4b2a4e 100644 --- a/generic/ttk/ttkScale.c +++ b/generic/ttk/ttkScale.c @@ -4,8 +4,6 @@ * ttk::scale widget. */ -#include <string.h> -#include <stdio.h> #include "tkInt.h" #include "ttkTheme.h" #include "ttkWidget.h" diff --git a/generic/ttk/ttkState.c b/generic/ttk/ttkState.c index d37f7f6..9e5cf4b 100644 --- a/generic/ttk/ttkState.c +++ b/generic/ttk/ttkState.c @@ -5,7 +5,6 @@ * */ -#include <string.h> #include "tkInt.h" #include "ttkTheme.h" diff --git a/generic/ttk/ttkTagSet.c b/generic/ttk/ttkTagSet.c index fc026cb..0ce5cea 100644 --- a/generic/ttk/ttkTagSet.c +++ b/generic/ttk/ttkTagSet.c @@ -4,7 +4,6 @@ * Copyright (C) 2005, Joe English. Freely redistributable. */ -#include <string.h> /* for memset() */ #include "tkInt.h" #include "ttkTheme.h" diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c index 0a156a5..41b05e5 100644 --- a/generic/ttk/ttkTreeview.c +++ b/generic/ttk/ttkTreeview.c @@ -4,8 +4,6 @@ * ttk::treeview widget implementation. */ -#include <string.h> -#include <stdio.h> #include "tkInt.h" #include "ttkTheme.h" #include "ttkWidget.h" diff --git a/generic/ttk/ttkWidget.c b/generic/ttk/ttkWidget.c index 9992d27..0cfc119 100644 --- a/generic/ttk/ttkWidget.c +++ b/generic/ttk/ttkWidget.c @@ -4,7 +4,6 @@ * Core widget utilities. */ -#include <string.h> #include "tkInt.h" #include "ttkTheme.h" #include "ttkWidget.h" |