app: Don't activate container tree view items while modkey pressed

Only activate container tree view items when no modifier keys are
pressed so that for example the layer properties dialog is not shown
when quickly toggling a layer mask with Ctrl + Click.
This commit is contained in:
Martin Nordholts 2009-05-22 22:45:08 +02:00
parent d80549496a
commit 2f9e2662c4
1 changed files with 4 additions and 1 deletions

View File

@ -1077,8 +1077,11 @@ gimp_container_tree_view_button_press (GtkWidget *widget,
gtk_tree_view_set_cursor_on_cell (tree_view->view, path,
column, edit_cell, TRUE);
}
else if (! toggled_cell) /* ignore double click on toggles */
else if (! toggled_cell && bevent->state == 0)
{
/* Only activate if we're not in a toggled cell
* and no modifier keys are pressed
*/
gimp_container_view_item_activated (container_view,
renderer->viewable);
}