libwnck r1510 - in trunk: . libwnck



Author: vuntz
Date: 2007-11-11 22:14:15 +0000 (Sun, 11 Nov 2007)
New Revision: 1510
ViewCVS link: http://svn.gnome.org/viewcvs/libwnck?rev=1510&view=rev

Modified:
   trunk/ChangeLog
   trunk/libwnck/tasklist.c
Log:
2007-11-11  Vincent Untz  <vuntz gnome org>

	Activate the window when the user drags and drops it quickly on
	itself. "Quickly" is defined by gtk-double-click-time.
	Based on patch by Jan Niklas Hasse <jhasse gmail com>
	Fix bug #460403.

	* libwnck/tasklist.c: add a new drag_start_time field per tasklist
	(wnck_tasklist_init): initialize the new field
	(wnck_task_popup_menu): connect to drag_end
	(wnck_task_drag_begin): set drag_start_time too
	(wnck_task_drag_end): (new) reset drag_start_time to 0
	(wnck_task_drag_data_received): if the found window is the same as the
	dragged one, then check if it was dropped quickly. If yes, then
	activate it and make the drag and drop a success
	(wnck_task_create_widgets): connect to drag end





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