GNOME Bugzilla – Bug 121011
Click and hold does not preview in toolbox item selectors, selects instead.
Last modified: 2004-08-05 13:43:59 UTC
Choose e.g. Clone Tool, Open Tool settings dialog, Click on Button "Pattern" and try to preview an entry other than the one currently selected by click-and-hold. It won't work, instead it will immediately select the new (i.e. clicked) entry and close the selector! This applies to both grid and list view modes.
This is indeed annoying but it will probably be a nightmare if not impossible to change this behaviour of the GtkTreeView.
The popup closes upon selecting an item and the item is selected upon click. For consistency with popup menus there is no way this will change. However, adding the preview functionality to mouse button 2 (which can already be used to drag an item without selecting it) would be no problem. I'll look into this.
Fixed in CVS: 2004-08-05 Michael Natterer <mitch@gimp.org> Enabled previewing items without selecting them in all list and grid views using mouse button 2. Implicitly enables previewing of items in container popups and thus fixes bug #121011: * app/widgets/gimppreview.c (gimp_preview_button_press_event) * app/widgets/gimpcellrendererviewable.c (gimp_cell_renderer_viewable_clicked): show the preview also on mouse button 2 click. * app/widgets/gimpcontainertreeview.c (gimp_container_tree_view_button_press): dispatch mouse button 2 clicks to GimpCellRendererViewable, but don't select or change anything in the tree_view. Unrelated cleanup: * app/widgets/gimppreview.c (gimp_preview_button_press_event): don't offset bevent->x,y by widget->allocation.x,y before calling gimp_preview_popup_show() ... * app/widgets/gimppreview-popup.c (gimp_preview_popup_show): ... instead, do it here generically (check if the parent widget is GTK_WIDGET_NO_WINDOW()).