don't add entry->scroll_offset to entry->drag_start_y. Fixes the entry

2007-01-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkentry.c (gtk_entry_button_press): don't add
	entry->scroll_offset to entry->drag_start_y. Fixes the entry
	starting drags after ridiculously small mouse movements.


svn path=/trunk/; revision=17134
This commit is contained in:
Michael Natterer 2007-01-12 11:56:57 +00:00 committed by Michael Natterer
parent 5bc2f68a5c
commit adcdfcd59f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-01-12 Michael Natterer <mitch@imendio.com>
* gtk/gtkentry.c (gtk_entry_button_press): don't add
entry->scroll_offset to entry->drag_start_y. Fixes the entry
starting drags after ridiculously small mouse movements.
2007-01-11 Richard Hult <richard@imendio.com>
* demos/gtk-demo/main.c: (load_file): Close the file after it's

View File

@ -1745,7 +1745,7 @@ gtk_entry_button_press (GtkWidget *widget,
*/
entry->in_drag = TRUE;
entry->drag_start_x = event->x + entry->scroll_offset;
entry->drag_start_y = event->y + entry->scroll_offset;
entry->drag_start_y = event->y;
}
else
gtk_editable_set_position (editable, tmp_pos);