[dia] Changed enum naming pattern
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [dia] Changed enum naming pattern
- Date: Sun, 31 May 2009 05:46:41 -0400 (EDT)
commit 41a55361bad06d0249f13bc3985c56ce72dce85e
Author: Hans Breuer <hans breuer org>
Date: Sun May 31 11:16:23 2009 +0200
Changed enum naming pattern
---
lib/text.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/text.c b/lib/text.c
index 2fa0896..b9bb8db 100644
--- a/lib/text.c
+++ b/lib/text.c
@@ -38,20 +38,20 @@ static int text_key_event(Focus *focus,
const gchar *str, int strlen,
ObjectChange **change);
-enum change_type {
+typedef enum {
TYPE_DELETE_BACKWARD,
TYPE_DELETE_FORWARD,
TYPE_INSERT_CHAR,
TYPE_JOIN_ROW,
TYPE_SPLIT_ROW,
TYPE_DELETE_ALL
-};
+} TextChangeType;
struct TextObjectChange {
ObjectChange obj_change;
Text *text;
- enum change_type type;
+ TextChangeType type;
gunichar ch;
int pos;
int row;
@@ -164,7 +164,7 @@ text_get_descent(Text *text)
return text->descent;
}
-static ObjectChange *text_create_change(Text *text, enum change_type type,
+static ObjectChange *text_create_change(Text *text, TextChangeType type,
gunichar ch, int pos, int row);
static void
@@ -1199,7 +1199,7 @@ text_change_free(struct TextObjectChange *change) {
}
static ObjectChange *
-text_create_change(Text *text, enum change_type type,
+text_create_change(Text *text, TextChangeType type,
gunichar ch, int pos, int row)
{
struct TextObjectChange *change;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]