Don't activate on double click of any modifiers are used.

2003-03-18  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-icon-container.c (handle_icon_button_press):
	Don't activate on double click of any modifiers are used.
This commit is contained in:
Alexander Larsson 2003-03-18 12:09:52 +00:00 committed by Alexander Larsson
parent 5305f2c666
commit fdea078b1e
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2003-03-18 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c (handle_icon_button_press):
Don't activate on double click of any modifiers are used.
2003-03-18 Frederic Crozat <fcrozat@mandrakesoft.com>
* libnautilus-private/nautilus-icon-factory.c:

View file

@ -3723,11 +3723,12 @@ handle_icon_button_press (NautilusIconContainer *container,
}
if (event->type == GDK_2BUTTON_PRESS &&
event->button == DRAG_BUTTON) {
if (icon == details->double_click_icon[1]) {
/* Double clicking does not trigger a D&D action. */
details->drag_button = 0;
details->drag_icon = NULL;
/* Double clicking does not trigger a D&D action. */
details->drag_button = 0;
details->drag_icon = NULL;
if (icon == details->double_click_icon[1] &&
!button_event_modifies_selection (event)) {
activate_selected_items (container);
}
return TRUE;