summaryrefslogtreecommitdiffstats
path: root/win/tkWinSysTray.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-11-21 17:30:44 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-11-21 17:30:44 (GMT)
commit1d034924841fd8e918b37ed3212515e36321fc08 (patch)
treeeab97696056a2498b1784e675add375d0eb7d465 /win/tkWinSysTray.c
parent65eda041b5581597f931de677910683bf800883b (diff)
downloadtk-1d034924841fd8e918b37ed3212515e36321fc08.zip
tk-1d034924841fd8e918b37ed3212515e36321fc08.tar.gz
tk-1d034924841fd8e918b37ed3212515e36321fc08.tar.bz2
More cosmetic changes
Diffstat (limited to 'win/tkWinSysTray.c')
-rw-r--r--win/tkWinSysTray.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/win/tkWinSysTray.c b/win/tkWinSysTray.c
index 71b9547..01455e0 100644
--- a/win/tkWinSysTray.c
+++ b/win/tkWinSysTray.c
@@ -1,4 +1,6 @@
/*
+ * tkWinSysTray.c --
+ *
* tkWinSysTray.c implements a "systray" Tcl command which permits to
* change the system tray/taskbar icon of a Tk toplevel window and
* a "sysnotify" command to post system notifications.
@@ -11,7 +13,7 @@
*
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
-*/
+ */
#include "tkInt.h"
#include <windows.h>
@@ -480,9 +482,9 @@ TaskbarExpandPercents(
char* dst;
dst = after;
while (*before) {
- const char *ptr=before;
- int len=1;
- if(*before=='%') {
+ const char *ptr = before;
+ int len = 1;
+ if(*before == '%') {
switch(before[1]){
case 'M':
case 'm': {
@@ -493,8 +495,8 @@ TaskbarExpandPercents(
}
/* case 'W': {
before++;
- len=(int)strlen(winstring);
- ptr=winstring;
+ len = (int)strlen(winstring);
+ ptr = winstring;
break;
}
*/
@@ -541,7 +543,7 @@ TaskbarExpandPercents(
}
case 'X': {
DWORD dw;
- dw=GetMessagePos();
+ dw = GetMessagePos();
before++;
len = GetIntDec((long)LOWORD(dw),buffer, sizeof(buffer));
ptr = buffer;
@@ -962,7 +964,7 @@ WinSystrayCmd(
return TCL_ERROR;
}
}
- for (i=optStart; i<objc; i+=2) {
+ for (i = optStart; i < objc; i += 2) {
if (Tcl_GetIndexFromObj(interp, objv[i], optStrings, "option",
0, &opt) == TCL_ERROR) {
return TCL_ERROR;