# HG changeset patch # User belugas # Date 1213756708 0 # Node ID 48b2f39c5e1bcd09633e8d2bf99db70980ee5392 # Parent 2304148338a47d588c6154fe4d67729e2d0ccf50 (svn r13561) -Codechange: two more enumifications of widgets diff -r 2304148338a4 -r 48b2f39c5e1b src/toolbar_gui.cpp --- a/src/toolbar_gui.cpp Wed Jun 18 02:04:01 2008 +0000 +++ b/src/toolbar_gui.cpp Wed Jun 18 02:38:28 2008 +0000 @@ -95,7 +95,8 @@ TBSE_FASTFORWARD, TBSE_SAVESCENARIO = 3, TBSE_SPACERPANEL, - TBSE_DATEBACKWARD = 6, + TBSE_SEPARATOR, + TBSE_DATEBACKWARD, TBSE_DATEFORWARD, TBSE_ZOOMIN = 9, TBSE_ZOOMOUT, @@ -1154,7 +1155,7 @@ for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) { switch (i) { - case 4: + case TBSE_SPACERPANEL: this->widget[i].left = x; if (this->width < normal_min_width) { this->widget[i].right = x; @@ -1166,7 +1167,7 @@ this->widget[i].right = x - 1; break; - case 5: { + case TBSE_SEPARATOR: { int offset = x - this->widget[i].left; this->widget[i + 1].left += offset; this->widget[i + 1].right += offset;