From df294fc609bf295816a05e1907d028000f8b7922 Mon Sep 17 00:00:00 2001 From: dkf Date: Tue, 30 Oct 2007 15:34:56 +0000 Subject: Rename enumermation for somewhat simpler-to-read code. [Bug 1677613] --- ChangeLog | 5 +++++ generic/tkImgPhoto.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 44275a6..fcc5d53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Donal K. Fellows + + * generic/tkImgPhoto.c (ImgPhotoCmd): Rename enumermation for + somewhat simpler-to-read code. [Bug 1677613] + 2007-10-30 Joe English * generic/ttk/ttkWidget.c: Split up RedisplayWidget() diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index 7917c50..88d3603 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -17,7 +17,7 @@ * Department of Computer Science, * Australian National University. * - * RCS: @(#) $Id: tkImgPhoto.c,v 1.73 2007/09/07 00:34:52 dgp Exp $ + * RCS: @(#) $Id: tkImgPhoto.c,v 1.74 2007/10/30 15:34:57 dkf Exp $ */ #include "tkInt.h" @@ -646,7 +646,7 @@ ImgPhotoCmd( "blank", "cget", "configure", "copy", "data", "get", "put", "read", "redither", "transparency", "write", NULL }; - enum options { + enum PhotoOptions { PHOTO_BLANK, PHOTO_CGET, PHOTO_CONFIGURE, PHOTO_COPY, PHOTO_DATA, PHOTO_GET, PHOTO_PUT, PHOTO_READ, PHOTO_REDITHER, PHOTO_TRANS, PHOTO_WRITE @@ -681,7 +681,7 @@ ImgPhotoCmd( return proc(clientData, interp, objc, objv); } - switch ((enum options) index) { + switch ((enum PhotoOptions) index) { case PHOTO_BLANK: /* * photo blank command - just call Tk_PhotoBlank. -- cgit v0.12