summaryrefslogtreecommitdiff
path: root/glabels2/src/view-box.c
diff options
context:
space:
mode:
authorJim Evins <evins@snaught.com>2002-10-14 01:57:46 +0000
committerJim Evins <evins@snaught.com>2002-10-14 01:57:46 +0000
commit814a682c9362f01d7a3847153b0a37e103d83b17 (patch)
tree597a75c1381c2c6a9718bcdaddff34e38581c2e6 /glabels2/src/view-box.c
parent72888ff037ca8e1c0fea29b8f908a4bb69966976 (diff)
Initial flipping support -- still has some problems.
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@163 f5e0f49d-192f-0410-a22d-a8d8700d0965
Diffstat (limited to 'glabels2/src/view-box.c')
-rw-r--r--glabels2/src/view-box.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/glabels2/src/view-box.c b/glabels2/src/view-box.c
index 3617fdf..d45729a 100644
--- a/glabels2/src/view-box.c
+++ b/glabels2/src/view-box.c
@@ -179,7 +179,6 @@ gl_view_box_new (glLabelBox *object,
glView *view)
{
glViewBox *view_box;
- GnomeCanvasItem *group;
gdouble line_width;
guint line_color, fill_color;
gdouble w, h;
@@ -203,18 +202,17 @@ gl_view_box_new (glLabelBox *object,
fill_color = gl_label_box_get_fill_color(object);
/* Create analogous canvas item. */
- group = gl_view_object_get_group (GL_VIEW_OBJECT(view_box));
view_box->private->item =
- gnome_canvas_item_new (GNOME_CANVAS_GROUP(group),
- gnome_canvas_rect_get_type (),
- "x1", 0.0,
- "y1", 0.0,
- "x2", w + DELTA,
- "y2", h + DELTA,
- "width_units", line_width,
- "outline_color_rgba", line_color,
- "fill_color_rgba", fill_color,
- NULL);
+ gl_view_object_item_new (GL_VIEW_OBJECT(view_box),
+ gnome_canvas_rect_get_type (),
+ "x1", 0.0,
+ "y1", 0.0,
+ "x2", w + DELTA,
+ "y2", h + DELTA,
+ "width_units", line_width,
+ "outline_color_rgba", line_color,
+ "fill_color_rgba", fill_color,
+ NULL);
g_signal_connect (G_OBJECT (object), "changed",
G_CALLBACK (update_view_box_cb), view_box);