summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorculler <culler>2018-12-20 14:24:15 (GMT)
committerculler <culler>2018-12-20 14:24:15 (GMT)
commita8e38d4f0a2001f03c453a3267e7785496f85359 (patch)
tree51eacb3dd005bb406b879b6ddadacb8cb74b2c37 /unix
parentf0ba2d7b3ec3c978c9433acfb4766978cbef6175 (diff)
parente26cd8eb2b04a4bd764e382cbcbfe4b1030796c6 (diff)
downloadtk-a8e38d4f0a2001f03c453a3267e7785496f85359.zip
tk-a8e38d4f0a2001f03c453a3267e7785496f85359.tar.gz
tk-a8e38d4f0a2001f03c453a3267e7785496f85359.tar.bz2
merge core-8-6-branch.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixMenubu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tkUnixMenubu.c b/unix/tkUnixMenubu.c
index ad71b7b..6cb80f4 100644
--- a/unix/tkUnixMenubu.c
+++ b/unix/tkUnixMenubu.c
@@ -92,10 +92,10 @@ TkpDisplayMenuButton(
border = mbPtr->normalBorder;
}
- if (mbPtr->image != None) {
+ if (mbPtr->image) {
Tk_SizeOfImage(mbPtr->image, &width, &height);
haveImage = 1;
- } else if (mbPtr->bitmap != None) {
+ } else if (mbPtr->bitmap) {
Tk_SizeOfBitmap(mbPtr->display, mbPtr->bitmap, &width, &height);
haveImage = 1;
}
@@ -183,7 +183,7 @@ TkpDisplayMenuButton(
if (mbPtr->image != NULL) {
Tk_RedrawImage(mbPtr->image, 0, 0, width, height, pixmap,
imageXOffset, imageYOffset);
- } else if (mbPtr->bitmap != None) {
+ } else if (mbPtr->bitmap) {
XSetClipOrigin(mbPtr->display, gc, imageXOffset, imageYOffset);
XCopyPlane(mbPtr->display, mbPtr->bitmap, pixmap,
gc, 0, 0, (unsigned) width, (unsigned) height,
@@ -203,7 +203,7 @@ TkpDisplayMenuButton(
if (mbPtr->image != NULL) {
Tk_RedrawImage(mbPtr->image, 0, 0, width, height, pixmap,
imageXOffset, imageYOffset);
- } else if (mbPtr->bitmap != None) {
+ } else if (mbPtr->bitmap) {
XSetClipOrigin(mbPtr->display, gc, x, y);
XCopyPlane(mbPtr->display, mbPtr->bitmap, pixmap,
gc, 0, 0, (unsigned) width, (unsigned) height,
@@ -358,10 +358,10 @@ TkpComputeMenuButtonGeometry(
txtHeight = 0;
avgWidth = 0;
- if (mbPtr->image != None) {
+ if (mbPtr->image) {
Tk_SizeOfImage(mbPtr->image, &width, &height);
haveImage = 1;
- } else if (mbPtr->bitmap != None) {
+ } else if (mbPtr->bitmap) {
Tk_SizeOfBitmap(mbPtr->display, mbPtr->bitmap, &width, &height);
haveImage = 1;
}