CVSROOT:        /cvs/gnome
Module name:    sketch
Changes by:     bherzog 05/08/06 18:09:56

Modified files:
        Sketch/UI      : fillpanel.py 
        .              : ChangeLog 

Log message:
(InteractiveSample.__init__): Remove the
instance variable center and choose a better initial value for
current_pos.
(SetCenter): Removed.
(InteractiveSample._set_current_pos)
(InteractiveSample.button_press)
(InteractiveSample.motion_notify)
(InteractiveSample.button_release): : Factor setting
self.current_pos into a separate method (_set_current_pos) to
reduce code duplication.  Also, convert the coordinates to ints.
In PyGTK the x and y attributes of events are floats now.
(InteractiveSample.center_in_window_coordinates): New.  Return the
center of the current pattern in window coordinates.
(InteractiveSample.constrain_center): Add a doc-string
(InteractiveSample.draw_edit): Add doc-string.  There's no need to
convert the new center coordinates to int anymore.  Use
center_in_window_coordinates to get the center when drawing
directions.
(InteractiveSample.report_edit): Do not set self.center.  Use
center_in_window_coordinates to get the center when the direction
was changed.
(FillPanel.update_sample): No need anymore to set the center
explicitly.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=sketch&who=bherzog&date=explicit&mindate=2005-08-06%2018:08&maxdate=2005-08-06%2018:10

_______________________________________________
cvs-commits-list mailing list
cvs-commits-list@gnome.org
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to