(svn r13561) -Codechange: two more enumifications of widgets
authorbelugas
Wed, 18 Jun 2008 02:38:28 +0000
changeset 11005 48b2f39c5e1b
parent 11004 2304148338a4
child 11006 a369d65b9f59
(svn r13561) -Codechange: two more enumifications of widgets
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;