mirror of https://github.com/GNOME/gimp.git
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:
parent
3dc2c50094
commit
5fef0b83a1
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue