[gimp] app: gimp_display_shell_expose_region(): return if the canvas is not realized
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: gimp_display_shell_expose_region(): return if the canvas is not realized
- Date: Sat, 13 Nov 2010 21:59:46 +0000 (UTC)
commit 5cea26b6e5f1eec498ba56f1d7bac993616b042a
Author: Michael Natterer <mitch gimp org>
Date: Sat Nov 13 22:58:43 2010 +0100
app: gimp_display_shell_expose_region(): return if the canvas is not realized
All GTK+ exposing functions do the same.
app/display/gimpdisplayshell-expose.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-expose.c b/app/display/gimpdisplayshell-expose.c
index 7c98525..8c79f54 100644
--- a/app/display/gimpdisplayshell-expose.c
+++ b/app/display/gimpdisplayshell-expose.c
@@ -51,6 +51,9 @@ gimp_display_shell_expose_region (GimpDisplayShell *shell,
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
g_return_if_fail (region != NULL);
+ if (! gtk_widget_get_realized (shell->canvas))
+ return;
+
#ifdef USE_CAIRO_REGION
{
GdkRegion *gdk_region = gdk_region_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]