From 5fef0b83a1683d8d3dd525826b5d31dd750c7532 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 28 May 2004 14:51:48 +0000 Subject: [PATCH] don't invoke the popup preview if there is no viewable. 2004-05-28 Michael Natterer * app/widgets/gimppreview.c (gimp_preview_button_press_event): don't invoke the popup preview if there is no viewable. --- ChangeLog | 5 +++++ app/widgets/gimppreview.c | 2 +- app/widgets/gimpview.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4c5b4eea6..b71bc479bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-28 Michael Natterer + + * 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 * app/widgets/gimppropwidgets.c: same workaround for tooltips on diff --git a/app/widgets/gimppreview.c b/app/widgets/gimppreview.c index 2ccc0b63ef..32cee2b556 100644 --- a/app/widgets/gimppreview.c +++ b/app/widgets/gimppreview.c @@ -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; diff --git a/app/widgets/gimpview.c b/app/widgets/gimpview.c index 2ccc0b63ef..32cee2b556 100644 --- a/app/widgets/gimpview.c +++ b/app/widgets/gimpview.c @@ -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;