Author: Carlos Lopez <genet...@gmail.com> Date: Sat Feb 11 10:26:20 2012 +0100
When adding a guide, update the info panel too. --- synfig-studio/src/gui/workarea.cpp | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/synfig-studio/src/gui/workarea.cpp b/synfig-studio/src/gui/workarea.cpp index f21b2a3..4f3e87b 100644 --- a/synfig-studio/src/gui/workarea.cpp +++ b/synfig-studio/src/gui/workarea.cpp @@ -1998,9 +1998,17 @@ WorkArea::on_hruler_event(GdkEvent *event) // coordinate system from the canvas. y -= 2*hruler->property_max_size(); - *curr_guide=synfig::Point(screen_to_comp_coords(synfig::Point(x,y)))[1]; - - queue_draw(); + // place the recalculated y coordinate back on the event + if(event->button.axes) + { + event->button.axes[1]=y; + } + else + { + event->button.y=y; + } + // call the on drawing area event to refresh eveything. + on_drawing_area_event(event); } return true; break; @@ -2058,9 +2066,17 @@ WorkArea::on_vruler_event(GdkEvent *event) // coordinate system from the canvas. x -= 2*vruler->property_max_size(); - *curr_guide=synfig::Point(screen_to_comp_coords(synfig::Point(x,y)))[0]; - - queue_draw(); + // place the recalculated x coordinate back on the event + if(event->button.axes) + { + event->button.axes[0]=x; + } + else + { + event->button.x=x; + } + // call the on drawing area event to refresh everything. + on_drawing_area_event(event); } return true; break; ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl