Commit 3da95025 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

don't draw anything if an idle update is pending.

2002-04-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppreview.c (gimp_preview_expose_event): don't draw
	anything if an idle update is pending.

	* libgimpwidgets/gimpcolorarea.c (gimp_color_area_expose): reordered
	conditions so that the one that is most expensive to check comes last.
parent bcca29b5
2002-04-16 Sven Neumann <sven@gimp.org>
* app/widgets/gimppreview.c (gimp_preview_expose_event): don't draw
anything if an idle update is pending.
* libgimpwidgets/gimpcolorarea.c (gimp_color_area_expose): reordered
conditions so that the one that is most expensive to check comes last.
2002-04-15 Sven Neumann <sven@gimp.org>
 
* app/config/gimpconfig-serialize.c: serialize doubles and floats
......
......@@ -293,7 +293,7 @@ gimp_preview_expose_event (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
if (! GTK_WIDGET_DRAWABLE (widget) || ! preview->buffer)
if (preview->idle_id || ! preview->buffer || ! GTK_WIDGET_DRAWABLE (widget))
return FALSE;
buf_rect.width = preview->width + 2 * preview->border_width;
......
......@@ -293,7 +293,7 @@ gimp_preview_expose_event (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
if (! GTK_WIDGET_DRAWABLE (widget) || ! preview->buffer)
if (preview->idle_id || ! preview->buffer || ! GTK_WIDGET_DRAWABLE (widget))
return FALSE;
buf_rect.width = preview->width + 2 * preview->border_width;
......
......@@ -293,7 +293,7 @@ gimp_preview_expose_event (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
if (! GTK_WIDGET_DRAWABLE (widget) || ! preview->buffer)
if (preview->idle_id || ! preview->buffer || ! GTK_WIDGET_DRAWABLE (widget))
return FALSE;
buf_rect.width = preview->width + 2 * preview->border_width;
......
......@@ -293,7 +293,7 @@ gimp_preview_expose_event (GtkWidget *widget,
preview = GIMP_PREVIEW (widget);
if (! GTK_WIDGET_DRAWABLE (widget) || ! preview->buffer)
if (preview->idle_id || ! preview->buffer || ! GTK_WIDGET_DRAWABLE (widget))
return FALSE;
buf_rect.width = preview->width + 2 * preview->border_width;
......
......@@ -219,7 +219,7 @@ gimp_color_area_expose (GtkWidget *widget,
gca = GIMP_COLOR_AREA (widget);
if (!GTK_WIDGET_DRAWABLE (widget) || !gca->buf || gca->idle_id)
if (gca->idle_id || ! gca->buf || ! GTK_WIDGET_DRAWABLE (widget))
return FALSE;
buf = gca->buf + event->area.y * gca->rowstride + event->area.x * 3;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment