From: Jim Evins Date: Sat, 27 Apr 2002 03:45:54 +0000 (+0000) Subject: Use motion union member for MOTION events. X-Git-Tag: glabels-2_3_0~872 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9eb6a8a37fd94d5aba4831453a4c2c915dd86cb1;p=glabels Use motion union member for MOTION events. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@6 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels1/src/display.c b/glabels1/src/display.c index 55440093..9440820d 100644 --- a/glabels1/src/display.c +++ b/glabels1/src/display.c @@ -1023,8 +1023,8 @@ canvas_event_arrow_mode (GnomeCanvas * canvas, 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), diff --git a/glabels1/src/item_box.c b/glabels1/src/item_box.c index 2b110f7c..80200947 100644 --- a/glabels1/src/item_box.c +++ b/glabels1/src/item_box.c @@ -470,8 +470,8 @@ gl_item_box_create_event_handler (GnomeCanvas * canvas, 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); diff --git a/glabels1/src/item_ellipse.c b/glabels1/src/item_ellipse.c index 9b5aae2d..5a45b487 100644 --- a/glabels1/src/item_ellipse.c +++ b/glabels1/src/item_ellipse.c @@ -474,8 +474,8 @@ gl_item_ellipse_create_event_handler (GnomeCanvas * canvas, 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); diff --git a/glabels1/src/item_image.c b/glabels1/src/item_image.c index 0dcef76b..4eee6c65 100644 --- a/glabels1/src/item_image.c +++ b/glabels1/src/item_image.c @@ -593,8 +593,8 @@ gl_item_image_create_event_handler (GnomeCanvas * canvas, 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); diff --git a/glabels1/src/item_line.c b/glabels1/src/item_line.c index daf30ec8..9d14abe8 100644 --- a/glabels1/src/item_line.c +++ b/glabels1/src/item_line.c @@ -462,8 +462,8 @@ gl_item_line_create_event_handler (GnomeCanvas * canvas, 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);