From 8aef3fc772b5114dafd050e6d4021245454ec7cb Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 19 Feb 2011 22:08:08 +0100
Subject: Use "typedef struct" in ld-diagram-view.c.
---
liblogdiag/ld-diagram-view.c | 39 ++++++++++++++++++---------------------
1 file changed, 18 insertions(+), 21 deletions(-)
diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c
index 0e8c049..57978c8 100644
--- a/liblogdiag/ld-diagram-view.c
+++ b/liblogdiag/ld-diagram-view.c
@@ -67,32 +67,31 @@ enum
OPER_MOVE_SELECTION
};
-typedef struct _AddObjectData AddObjectData;
-typedef struct _ConnectData ConnectData;
-typedef struct _SelectData SelectData;
-typedef struct _MoveSelectionData MoveSelectionData;
-
-struct _AddObjectData
+typedef struct
{
LdDiagramObject *object;
gboolean visible;
-};
+}
+AddObjectData;
-struct _ConnectData
+typedef struct
{
LdDiagramConnection *connection;
LdPoint origin;
-};
+}
+ConnectData;
-struct _SelectData
+typedef struct
{
LdPoint drag_last_pos;
-};
+}
+SelectData;
-struct _MoveSelectionData
+typedef struct
{
LdPoint move_origin;
-};
+}
+MoveSelectionData;
enum
{
@@ -104,15 +103,14 @@ enum
COLOR_COUNT
};
-typedef struct _Color Color;
-
-struct _Color
+typedef struct
{
gdouble r;
gdouble g;
gdouble b;
gdouble a;
-};
+}
+Color;
/*
* LdDiagramViewPrivate:
@@ -174,15 +172,14 @@ struct _LdDiagramViewPrivate
* @exposed_rect: the area that is to be redrawn.
* @scale: computed size of one diagram unit in pixels.
*/
-typedef struct _DrawData DrawData;
-
-struct _DrawData
+typedef struct
{
LdDiagramView *self;
cairo_t *cr;
LdRectangle exposed_rect;
gdouble scale;
-};
+}
+DrawData;
enum
{
--
cgit v1.2.3-70-g09d2