Skip to content

Commit bc7953b

Browse files
committed
Rename all XBM format files to be called *.xbm instead of *.bmp [Bug 733835]
1 parent 033a34d commit bc7953b

27 files changed

+63
-52
lines changed

ChangeLog

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2004-10-19 Donal K. Fellows <[email protected]>
2+
3+
* tests/canvPsImg.tcl, tests/canvPsBmap.tcl:
4+
* generic/tkBitmap.c, bitmaps/*.bmp:
5+
* library/demos/icon.tcl, library/demos/items.tcl:
6+
* library/demos/label.tcl, library/demos/menu.tcl:
7+
* library/demos/ruler.tcl, library/demos/twind.tcl:
8+
* library/demos/images/*.bmp: Renamed all X bitmap files files to
9+
have an .xbm extension so Windows users won't get confused when
10+
wandering around the Tcl source tree. [Bug 733835]
11+
112
2004-10-11 Miguel Ba�on <[email protected]>
213

314
* library/msgs/sv.msg: Swedish message catalog from Mats Bengtsson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

bitmaps/info.bmp bitmaps/info.xbm

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

generic/tkBitmap.c

+13-13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* See the file "license.terms" for information on usage and redistribution
1212
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1313
*
14-
* RCS: @(#) $Id: tkBitmap.c,v 1.11 2004/01/13 02:06:00 davygrvy Exp $
14+
* RCS: @(#) $Id: tkBitmap.c,v 1.12 2004/10/19 15:25:05 dkf Exp $
1515
*/
1616

1717
#include "tkPort.h"
@@ -30,16 +30,16 @@
3030
#pragma warning (disable : 4305)
3131
#endif
3232

33-
#include "error.bmp"
34-
#include "gray12.bmp"
35-
#include "gray25.bmp"
36-
#include "gray50.bmp"
37-
#include "gray75.bmp"
38-
#include "hourglass.bmp"
39-
#include "info.bmp"
40-
#include "questhead.bmp"
41-
#include "question.bmp"
42-
#include "warning.bmp"
33+
#include "error.xbm"
34+
#include "gray12.xbm"
35+
#include "gray25.xbm"
36+
#include "gray50.xbm"
37+
#include "gray75.xbm"
38+
#include "hourglass.xbm"
39+
#include "info.xbm"
40+
#include "questhead.xbm"
41+
#include "question.xbm"
42+
#include "warning.xbm"
4343

4444
#if defined(__WIN32__) || defined(_WIN32)
4545
#pragma warning (default : 4305)
@@ -1109,7 +1109,7 @@ TkReadBitmapFile(display, d, filename, width_return, height_return,
11091109

11101110
ckfree(data);
11111111
return BitmapSuccess;
1112-
}
1112+
}
11131113

11141114
/*
11151115
*----------------------------------------------------------------------
@@ -1159,7 +1159,6 @@ TkDebugBitmap(tkwin, name)
11591159
}
11601160
return resultPtr;
11611161
}
1162-
11631162

11641163
/*
11651164
*----------------------------------------------------------------------
@@ -1180,6 +1179,7 @@ TkDebugBitmap(tkwin, name)
11801179
*
11811180
*----------------------------------------------------------------------
11821181
*/
1182+
11831183
Tcl_HashTable *
11841184
TkGetBitmapPredefTable()
11851185
{

library/demos/icon.tcl

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This demonstration script creates a toplevel window containing
44
# buttons that display bitmaps instead of text.
55
#
6-
# RCS: @(#) $Id: icon.tcl,v 1.4 2003/11/03 15:31:18 dkf Exp $
6+
# RCS: @(#) $Id: icon.tcl,v 1.5 2004/10/19 15:25:06 dkf Exp $
77

88
if {![info exists widgetDemo]} {
99
error "This script should be run from the \"widget\" demo."
@@ -25,27 +25,27 @@ pack $btns -side bottom -fill x
2525

2626
# Main widget program sets variable tk_demoDirectory
2727
image create bitmap flagup \
28-
-file [file join $tk_demoDirectory images flagup.bmp] \
29-
-maskfile [file join $tk_demoDirectory images flagup.bmp]
28+
-file [file join $tk_demoDirectory images flagup.xbm] \
29+
-maskfile [file join $tk_demoDirectory images flagup.xbm]
3030
image create bitmap flagdown \
31-
-file [file join $tk_demoDirectory images flagdown.bmp] \
32-
-maskfile [file join $tk_demoDirectory images flagdown.bmp]
31+
-file [file join $tk_demoDirectory images flagdown.xbm] \
32+
-maskfile [file join $tk_demoDirectory images flagdown.xbm]
3333
frame $w.frame -borderwidth 10
3434
pack $w.frame -side top
3535

3636
checkbutton $w.frame.b1 -image flagdown -selectimage flagup \
3737
-indicatoron 0
3838
$w.frame.b1 configure -selectcolor [$w.frame.b1 cget -background]
3939
checkbutton $w.frame.b2 \
40-
-bitmap @[file join $tk_demoDirectory images letters.bmp] \
40+
-bitmap @[file join $tk_demoDirectory images letters.xbm] \
4141
-indicatoron 0 -selectcolor SeaGreen1
4242
frame $w.frame.left
4343
pack $w.frame.left $w.frame.b1 $w.frame.b2 -side left -expand yes -padx 5m
4444

4545
radiobutton $w.frame.left.b3 \
46-
-bitmap @[file join $tk_demoDirectory images letters.bmp] \
46+
-bitmap @[file join $tk_demoDirectory images letters.xbm] \
4747
-variable letters -value full
4848
radiobutton $w.frame.left.b4 \
49-
-bitmap @[file join $tk_demoDirectory images noletter.bmp] \
49+
-bitmap @[file join $tk_demoDirectory images noletter.xbm] \
5050
-variable letters -value empty
5151
pack $w.frame.left.b3 $w.frame.left.b4 -side top -expand yes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

library/demos/items.tcl

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This demonstration script creates a canvas that displays the
44
# canvas item types.
55
#
6-
# RCS: @(#) $Id: items.tcl,v 1.5 2003/11/03 15:31:18 dkf Exp $
6+
# RCS: @(#) $Id: items.tcl,v 1.6 2004/10/19 15:25:06 dkf Exp $
77

88
if {![info exists widgetDemo]} {
99
error "This script should be run from the \"widget\" demo."
@@ -77,7 +77,7 @@ $c create line 5c 6c 9c 6c 9c 1c 8c 1c 8c 4.8c 8.8c 4.8c 8.8c 1.2c \
7777
-width 3 -fill $red -tags item
7878
# Main widget program sets variable tk_demoDirectory
7979
$c create line 1c 5c 7c 5c 7c 7c 9c 7c -width .5c \
80-
-stipple @[file join $tk_demoDirectory images gray25.bmp] \
80+
-stipple @[file join $tk_demoDirectory images gray25.xbm] \
8181
-arrow both -arrowshape {15 15 7} -tags item
8282
$c create line 1c 7c 1.75c 5.8c 2.5c 7c 3.25c 5.8c 4c 7c -width .5c \
8383
-cap round -join round -tags item
@@ -89,7 +89,7 @@ $c create line 15.5c 1c 19.5c 1.5c 15.5c 4.5c 19.5c 4c -smooth on \
8989
-arrow both -width 3 -tags item
9090
$c create line 12c 6c 13.5c 4.5c 16.5c 7.5c 18c 6c \
9191
16.5c 4.5c 13.5c 7.5c 12c 6c -smooth on -width 3m -cap round \
92-
-stipple @[file join $tk_demoDirectory images gray25.bmp] \
92+
-stipple @[file join $tk_demoDirectory images gray25.xbm] \
9393
-fill $red -tags item
9494

9595
$c create text 25c .2c -text Polygons -anchor n
@@ -100,21 +100,21 @@ $c create polygon 25c 4c 25c 4c 25c 1c 26c 1c 27c 4c 28c 1c \
100100
29c 1c 29c 4c 29c 4c -fill $red -smooth on -tags item
101101
$c create polygon 22c 4.5c 25c 4.5c 25c 6.75c 28c 6.75c \
102102
28c 5.25c 24c 5.25c 24c 6.0c 26c 6c 26c 7.5c 22c 7.5c \
103-
-stipple @[file join $tk_demoDirectory images gray25.bmp] \
103+
-stipple @[file join $tk_demoDirectory images gray25.xbm] \
104104
-outline black -tags item
105105

106106
$c create text 5c 8.2c -text Rectangles -anchor n
107107
$c create rectangle 1c 9.5c 4c 12.5c -outline $red -width 3m -tags item
108108
$c create rectangle 0.5c 13.5c 4.5c 15.5c -fill $green -tags item
109109
$c create rectangle 6c 10c 9c 15c -outline {} \
110-
-stipple @[file join $tk_demoDirectory images gray25.bmp] \
110+
-stipple @[file join $tk_demoDirectory images gray25.xbm] \
111111
-fill $blue -tags item
112112

113113
$c create text 15c 8.2c -text Ovals -anchor n
114114
$c create oval 11c 9.5c 14c 12.5c -outline $red -width 3m -tags item
115115
$c create oval 10.5c 13.5c 14.5c 15.5c -fill $green -tags item
116116
$c create oval 16c 10c 19c 15c -outline {} \
117-
-stipple @[file join $tk_demoDirectory images gray25.bmp] \
117+
-stipple @[file join $tk_demoDirectory images gray25.xbm] \
118118
-fill $blue -tags item
119119

120120
$c create text 25c 8.2c -text Text -anchor n
@@ -134,19 +134,19 @@ $c create arc 0.5c 17c 7c 20c -fill $green -outline black \
134134
-start 45 -extent 270 -style pieslice -tags item
135135
$c create arc 6.5c 17c 9.5c 20c -width 4m -style arc \
136136
-outline $blue -start -135 -extent 270 -tags item \
137-
-outlinestipple @[file join $tk_demoDirectory images gray25.bmp]
137+
-outlinestipple @[file join $tk_demoDirectory images gray25.xbm]
138138
$c create arc 0.5c 20c 9.5c 24c -width 4m -style pieslice \
139139
-fill {} -outline $red -start 225 -extent -90 -tags item
140140
$c create arc 5.5c 20.5c 9.5c 23.5c -width 4m -style chord \
141141
-fill $blue -outline {} -start 45 -extent 270 -tags item
142142

143143
$c create text 15c 16.2c -text Bitmaps -anchor n
144144
$c create bitmap 13c 20c -tags item \
145-
-bitmap @[file join $tk_demoDirectory images face.bmp]
145+
-bitmap @[file join $tk_demoDirectory images face.xbm]
146146
$c create bitmap 17c 18.5c -tags item \
147-
-bitmap @[file join $tk_demoDirectory images noletter.bmp]
147+
-bitmap @[file join $tk_demoDirectory images noletter.xbm]
148148
$c create bitmap 17c 21.5c -tags item \
149-
-bitmap @[file join $tk_demoDirectory images letters.bmp]
149+
-bitmap @[file join $tk_demoDirectory images letters.xbm]
150150

151151
$c create text 25c 16.2c -text Windows -anchor n
152152
button $c.button -text "Press Me" -command "butPress $c $red"

library/demos/label.tcl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This demonstration script creates a toplevel window containing
44
# several label widgets.
55
#
6-
# RCS: @(#) $Id: label.tcl,v 1.4 2003/11/03 15:31:18 dkf Exp $
6+
# RCS: @(#) $Id: label.tcl,v 1.5 2004/10/19 15:25:06 dkf Exp $
77

88
if {![info exists widgetDemo]} {
99
error "This script should be run from the \"widget\" demo."
@@ -34,6 +34,6 @@ pack $w.left.l1 $w.left.l2 $w.left.l3 -side top -expand yes -pady 2 -anchor w
3434

3535
# Main widget program sets variable tk_demoDirectory
3636
label $w.right.bitmap -borderwidth 2 -relief sunken \
37-
-bitmap @[file join $tk_demoDirectory images face.bmp]
37+
-bitmap @[file join $tk_demoDirectory images face.xbm]
3838
label $w.right.caption -text "Tcl/Tk Proprietor"
3939
pack $w.right.bitmap $w.right.caption -side top

library/demos/menu.tcl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This demonstration script creates a window with a bunch of menus
44
# and cascaded menus using menubars.
55
#
6-
# RCS: @(#) $Id: menu.tcl,v 1.6 2003/11/03 15:31:18 dkf Exp $
6+
# RCS: @(#) $Id: menu.tcl,v 1.7 2004/10/19 15:25:07 dkf Exp $
77

88
if {![info exists widgetDemo]} {
99
error "This script should be run from the \"widget\" demo."
@@ -116,7 +116,7 @@ $w.menu add cascade -label "Icons" -menu $m -underline 0
116116
menu $m -tearoff 0
117117
# Main widget program sets variable tk_demoDirectory
118118
$m add command \
119-
-bitmap @[file join $tk_demoDirectory images pattern.bmp] \
119+
-bitmap @[file join $tk_demoDirectory images pattern.xbm] \
120120
-hidemargin 1 \
121121
-command {
122122
tk_dialog .pattern {Bitmap Menu Entry} {The menu entry you invoked displays a bitmap rather than a text string. Other than this, it is just like any other menu entry.} {} 0 OK

library/demos/ruler.tcl

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This demonstration script creates a canvas widget that displays a ruler
44
# with tab stops that can be set, moved, and deleted.
55
#
6-
# RCS: @(#) $Id: ruler.tcl,v 1.5 2003/11/03 15:31:18 dkf Exp $
6+
# RCS: @(#) $Id: ruler.tcl,v 1.6 2004/10/19 15:25:07 dkf Exp $
77

88
if {![info exists widgetDemo]} {
99
error "This script should be run from the \"widget\" demo."
@@ -52,11 +52,11 @@ set demo_rulerInfo(normalStyle) "-fill black"
5252
if {[winfo depth $c] > 1} {
5353
set demo_rulerInfo(activeStyle) "-fill red -stipple {}"
5454
set demo_rulerInfo(deleteStyle) [list -fill red \
55-
-stipple @[file join $tk_demoDirectory images gray25.bmp]]
55+
-stipple @[file join $tk_demoDirectory images gray25.xbm]]
5656
} else {
5757
set demo_rulerInfo(activeStyle) "-fill black -stipple {}"
5858
set demo_rulerInfo(deleteStyle) [list -fill black \
59-
-stipple @[file join $tk_demoDirectory images gray25.bmp]]
59+
-stipple @[file join $tk_demoDirectory images gray25.xbm]]
6060
}
6161

6262
$c create line 1c 0.5c 1c 1c 13c 1c 13c 0.5c -width 1

library/demos/twind.tcl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This demonstration script creates a text widget with a bunch of
44
# embedded windows.
55
#
6-
# RCS: @(#) $Id: twind.tcl,v 1.6 2004/09/10 12:13:43 vincentdarley Exp $
6+
# RCS: @(#) $Id: twind.tcl,v 1.7 2004/10/19 15:25:07 dkf Exp $
77

88
if {![info exists widgetDemo]} {
99
error "This script should be run from the \"widget\" demo."
@@ -158,7 +158,7 @@ $t window create end -window $t.smallP
158158
$t insert end "\n\nFinally, images fit comfortably in text widgets too:"
159159

160160
$t image create end -image \
161-
[image create bitmap -file [file join $tk_demoDirectory images face.bmp]]
161+
[image create bitmap -file [file join $tk_demoDirectory images face.xbm]]
162162

163163

164164
proc textWindBigB w {

tests/canvPsBmap.tcl

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# for bitmaps in canvases. It is part of the Tk visual test suite,
33
# which is invoked via the "visual" script.
44
#
5-
# RCS: @(#) $Id: canvPsBmap.tcl,v 1.3 1999/04/16 01:51:35 stanton Exp $
5+
# RCS: @(#) $Id: canvPsBmap.tcl,v 1.4 2004/10/19 15:25:08 dkf Exp $
66

77
catch {destroy .t}
88
toplevel .t
@@ -26,47 +26,47 @@ canvas $c -width 6i -height 6i -bd 2 -relief sunken
2626
pack $c -expand yes -fill both -padx 2m -pady 2m
2727

2828
$c create bitmap 0.5i 0.5i \
29-
-bitmap @[file join $tk_library demos/images/flagdown.bmp] \
29+
-bitmap @[file join $tk_library demos/images/flagdown.xbm] \
3030
-background {} -foreground black -anchor nw
3131
$c create rect 0.47i 0.47i 0.53i 0.53i -fill {} -outline black
3232

3333
$c create bitmap 3.0i 0.5i \
34-
-bitmap @[file join $tk_library demos/images/flagdown.bmp] \
34+
-bitmap @[file join $tk_library demos/images/flagdown.xbm] \
3535
-background {} -foreground black -anchor n
3636
$c create rect 2.97i 0.47i 3.03i 0.53i -fill {} -outline black
3737

3838
$c create bitmap 5.5i 0.5i \
39-
-bitmap @[file join $tk_library demos/images/flagdown.bmp] \
39+
-bitmap @[file join $tk_library demos/images/flagdown.xbm] \
4040
-background black -foreground white -anchor ne
4141
$c create rect 5.47i 0.47i 5.53i 0.53i -fill {} -outline black
4242

4343
$c create bitmap 0.5i 3.0i \
44-
-bitmap @[file join $tk_library demos/images/face.bmp] \
44+
-bitmap @[file join $tk_library demos/images/face.xbm] \
4545
-background {} -foreground black -anchor w
4646
$c create rect 0.47i 2.97i 0.53i 3.03i -fill {} -outline black
4747

4848
$c create bitmap 3.0i 3.0i \
49-
-bitmap @[file join $tk_library demos/images/face.bmp] \
49+
-bitmap @[file join $tk_library demos/images/face.xbm] \
5050
-background {} -foreground black -anchor center
5151
$c create rect 2.97i 2.97i 3.03i 3.03i -fill {} -outline black
5252

5353
$c create bitmap 5.5i 3.0i \
54-
-bitmap @[file join $tk_library demos/images/face.bmp] \
54+
-bitmap @[file join $tk_library demos/images/face.xbm] \
5555
-background blue -foreground black -anchor e
5656
$c create rect 5.47i 2.97i 5.53i 3.03i -fill {} -outline black
5757

5858
$c create bitmap 0.5i 5.5i \
59-
-bitmap @[file join $tk_library demos/images/flagup.bmp] \
59+
-bitmap @[file join $tk_library demos/images/flagup.xbm] \
6060
-background black -foreground white -anchor sw
6161
$c create rect 0.47i 5.47i 0.53i 5.53i -fill {} -outline black
6262

6363
$c create bitmap 3.0i 5.5i \
64-
-bitmap @[file join $tk_library demos/images/flagup.bmp] \
64+
-bitmap @[file join $tk_library demos/images/flagup.xbm] \
6565
-background green -foreground white -anchor s
6666
$c create rect 2.97i 5.47i 3.03i 5.53i -fill {} -outline black
6767

6868
$c create bitmap 5.5i 5.5i \
69-
-bitmap @[file join $tk_library demos/images/flagup.bmp] \
69+
-bitmap @[file join $tk_library demos/images/flagup.xbm] \
7070
-background {} -foreground black -anchor se
7171
$c create rect 5.47i 5.47i 5.53i 5.53i -fill {} -outline black
7272

tests/canvPsImg.tcl

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# for images in canvases. It is part of the Tk visual test suite,
33
# which is invoked via the "visual" script.
44
#
5-
# RCS: @(#) $Id: canvPsImg.tcl,v 1.2 2002/07/12 13:40:59 dgp Exp $
5+
# RCS: @(#) $Id: canvPsImg.tcl,v 1.3 2004/10/19 15:25:08 dkf Exp $
66

77
# Build a test image in a canvas
88
proc BuildTestImage {} {
@@ -69,7 +69,7 @@ foreach l { monochrome gray color } {
6969
pack .t.$l -in .t.top.r -anchor w
7070
}
7171

72-
set BitmapImage [image create bitmap -file $tk_library/demos/images/face.bmp \
72+
set BitmapImage [image create bitmap -file $tk_library/demos/images/face.xbm \
7373
-background white -foreground black]
7474
set PhotoImage [image create photo -file $tk_library/demos/images/teapot.ppm]
7575

0 commit comments

Comments
 (0)