[ease] Fix enum naming style.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] Fix enum naming style.
- Date: Wed, 19 May 2010 04:40:12 +0000 (UTC)
commit 23f2dffe2620cedb5658e09e7a71944b3fe1e21c
Author: Nate Stedman <natesm gmail com>
Date: Wed May 19 00:31:56 2010 -0400
Fix enum naming style.
src/libease/Enums.vala | 22 +++++++++++-----------
src/libease/Handle.vala | 16 ++++++++--------
2 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/src/libease/Enums.vala b/src/libease/Enums.vala
index 3ea8d77..8c449ea 100644
--- a/src/libease/Enums.vala
+++ b/src/libease/Enums.vala
@@ -19,20 +19,20 @@ namespace Ease
{
public enum HandlePosition
{
- TopLeft = 0,
- TopRight = 1,
- Top = 2,
- Left = 3,
- Right = 4,
- BottomLeft = 5,
- BottomRight = 6,
- Bottom = 7
+ TOP_LEFT = 0,
+ TOP_RIGHT = 1,
+ TOP = 2,
+ LEFT = 3,
+ RIGHT = 4,
+ BOTTOM_LEFT = 5,
+ BOTTOM_RIGHT = 6,
+ BOTTOM = 7
}
public enum ActorContext
{
- Presentation,
- Editor,
- Sidebar
+ PRESENTATION,
+ EDITOR,
+ SIDEBAR
}
}
diff --git a/src/libease/Handle.vala b/src/libease/Handle.vala
index 67d6f47..452c4ce 100644
--- a/src/libease/Handle.vala
+++ b/src/libease/Handle.vala
@@ -62,42 +62,42 @@ namespace Ease
{
switch (position)
{
- case HandlePosition.TopLeft:
+ case HandlePosition.TOP_LEFT:
x = selection.x;
y = selection.y;
break;
- case HandlePosition.TopRight:
+ case HandlePosition.TOP_RIGHT:
x = selection.x + selection.width;
y = selection.y;
break;
- case HandlePosition.Top:
+ case HandlePosition.TOP:
x = selection.x + selection.width / 2;
y = selection.y;
break;
- case HandlePosition.Left:
+ case HandlePosition.LEFT:
x = selection.x;
y = selection.y + selection.height / 2;
break;
- case HandlePosition.Right:
+ case HandlePosition.RIGHT:
x = selection.x + selection.width;
y = selection.y + selection.height / 2;
break;
- case HandlePosition.BottomLeft:
+ case HandlePosition.BOTTOM_LEFT:
x = selection.x;
y = selection.y + selection.height;
break;
- case HandlePosition.BottomRight:
+ case HandlePosition.BOTTOM_RIGHT:
x = selection.x + selection.width;
y = selection.y + selection.height;
break;
- case HandlePosition.Bottom:
+ case HandlePosition.BOTTOM:
x = selection.x + selection.width / 2;
y = selection.y + selection.height;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]