gimp r22016 - in trunk: . app/tools



Author: mitch
Date: 2007-02-27 21:11:35 +0000 (Tue, 27 Feb 2007)
New Revision: 22016
ViewCVS link: http://svn.gnome.org/viewcvs/gimp?rev=22016&view=rev

Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpcroptool.c
   trunk/app/tools/gimprectangleselecttool.c
   trunk/app/tools/gimprectangletool.c
   trunk/app/tools/gimprectangletool.h
   trunk/app/tools/gimptool.c
   trunk/app/tools/gimptool.h
   trunk/app/tools/gimptoolcontrol.c
   trunk/app/tools/gimptoolcontrol.h
Log:
2007-02-27  Michael Natterer  <mitch gimp org>

	* app/tools/gimptoolcontrol.[ch]: added "gboolean wants_click"
	member and getters/setters.

	* app/tools/gimptool.[ch] (struct GimpTool): added members
	in_click_distance, press_coords and press_time.

	(gimp_tool_button_press): if the tool wants click events, record
	press_coords and press_time.

	(gimp_tool_motion): check if we are still in click distance.

	(gimp_tool_button_release): ditto. If we are still in click
	distance, synthesize a motion event back to the recorded
	press_coords and send the tool release_type = CLICK.

	(gimp_tool_check_click_distance): utility function which checks
	the current coords and time against the recorded ones, using
	gtk-double-click-time and gtk-double-click-distance as thresholds.

	* app/tools/gimpcroptool.c
	* app/tools/gimprectangleselecttool.c: request click events
	and handle them.

	* app/tools/gimprectangletool.[ch]: handle click events. Removed
	gimp_rectangle_tool_no_movement().






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]