don't invoke the popup preview if there is no viewable.

2004-05-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppreview.c (gimp_preview_button_press_event):
	don't invoke the popup preview if there is no viewable.
This commit is contained in:
Michael Natterer 2004-05-28 14:51:48 +00:00 committed by Michael Natterer
parent 3dc2c50094
commit 5fef0b83a1
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-05-28 Michael Natterer <mitch@gimp.org>
* app/widgets/gimppreview.c (gimp_preview_button_press_event):
don't invoke the popup preview if there is no viewable.
2004-05-28 Sven Neumann <sven@gimp.org>
* app/widgets/gimppropwidgets.c: same workaround for tooltips on

View File

@ -460,7 +460,7 @@ gimp_preview_button_press_event (GtkWidget *widget,
preview->has_grab = TRUE;
preview->press_state = bevent->state;
if (preview->show_popup)
if (preview->show_popup && preview->viewable)
{
bevent->x += widget->allocation.x;
bevent->y += widget->allocation.y;

View File

@ -460,7 +460,7 @@ gimp_preview_button_press_event (GtkWidget *widget,
preview->has_grab = TRUE;
preview->press_state = bevent->state;
if (preview->show_popup)
if (preview->show_popup && preview->viewable)
{
bevent->x += widget->allocation.x;
bevent->y += widget->allocation.y;