aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-19 22:08:08 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-19 22:49:20 +0100
commit8aef3fc772b5114dafd050e6d4021245454ec7cb (patch)
tree96594314ec906e7b2064aa25d39a0c4c327680b7
parentb5ff3b5bbb13e7ebb5791bb983975a14ec6f212c (diff)
downloadlogdiag-8aef3fc772b5114dafd050e6d4021245454ec7cb.tar.gz
logdiag-8aef3fc772b5114dafd050e6d4021245454ec7cb.tar.xz
logdiag-8aef3fc772b5114dafd050e6d4021245454ec7cb.zip
Use "typedef struct" in ld-diagram-view.c.
-rw-r--r--liblogdiag/ld-diagram-view.c39
1 files 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
{