From 4d2997726e0d0c5a27e95cf674132c3f3a293d96 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sun, 7 Dec 2003 03:35:41 +0000 Subject: [PATCH] View box's object will track position in object editor. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@370 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/src/view-box.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glabels2/src/view-box.c b/glabels2/src/view-box.c index c9bfb8eb..92cac0b6 100644 --- a/glabels2/src/view-box.c +++ b/glabels2/src/view-box.c @@ -284,7 +284,7 @@ static void update_object_from_editor_cb (glObjectEditor *editor, glLabelObject *object) { - gdouble w, h; + gdouble x, y, w, h; guint line_color, fill_color; gdouble line_width; @@ -297,6 +297,9 @@ update_object_from_editor_cb (glObjectEditor *editor, update_editor_from_move_cb, editor); + gl_object_editor_get_position (editor, &x, &y); + gl_label_object_set_position (object, x, y); + gl_object_editor_get_size (editor, &w, &h); gl_label_object_set_size (object, w, h); -- 2.39.5