case GDK_MOTION_NOTIFY:
if (dragging && (event->motion.state & GDK_BUTTON1_MASK)) {
gnome_canvas_window_to_world (canvas,
- event->button.x,
- event->button.y, &x, &y);
+ event->motion.x,
+ event->motion.y, &x, &y);
gnome_canvas_item_set (item,
"x1", MIN (x, x0),
case GDK_MOTION_NOTIFY:
if (dragging && (event->motion.state & GDK_BUTTON1_MASK)) {
gnome_canvas_window_to_world (canvas,
- event->button.x,
- event->button.y, &x, &y);
+ event->motion.x,
+ event->motion.y, &x, &y);
object->x = MIN (x, x0);
object->y = MIN (y, y0);
object->arg.box.w = MAX (x, x0) - MIN (x, x0);
case GDK_MOTION_NOTIFY:
if (dragging && (event->motion.state & GDK_BUTTON1_MASK)) {
gnome_canvas_window_to_world (canvas,
- event->button.x,
- event->button.y, &x, &y);
+ event->motion.x,
+ event->motion.y, &x, &y);
object->x = MIN (x, x0);
object->y = MIN (y, y0);
object->arg.ellipse.w = MAX (x, x0) - MIN (x, x0);
case GDK_MOTION_NOTIFY:
if (dragging && (event->motion.state & GDK_BUTTON1_MASK)) {
gnome_canvas_window_to_world (canvas,
- event->button.x,
- event->button.y, &x, &y);
+ event->motion.x,
+ event->motion.y, &x, &y);
object->x = MIN (x, x0);
object->y = MIN (y, y0);
object->arg.image.w = MAX (x, x0) - MIN (x, x0);
case GDK_MOTION_NOTIFY:
if (dragging && (event->motion.state & GDK_BUTTON1_MASK)) {
gnome_canvas_window_to_world (canvas,
- event->button.x,
- event->button.y, &x, &y);
+ event->motion.x,
+ event->motion.y, &x, &y);
object->x = x0;
object->y = y0;
object->arg.line.dx = (x - x0);