[gnome-builder] theatrics: check for valid GdkWindow before invalidation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] theatrics: check for valid GdkWindow before invalidation
- Date: Fri, 29 May 2015 20:10:10 +0000 (UTC)
commit 5baf066a4951f5fa2256d89535d62b6d60e5f0bf
Author: Christian Hergert <christian hergert me>
Date: Fri May 29 13:10:03 2015 -0700
theatrics: check for valid GdkWindow before invalidation
libide/theatrics/ide-box-theatric.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libide/theatrics/ide-box-theatric.c b/libide/theatrics/ide-box-theatric.c
index b673d9a..bc18cb0 100644
--- a/libide/theatrics/ide-box-theatric.c
+++ b/libide/theatrics/ide-box-theatric.c
@@ -112,8 +112,11 @@ ide_box_theatric_notify (GObject *object,
window = gtk_widget_get_window (self->toplevel);
- gdk_window_invalidate_rect (window, &self->last_area, TRUE);
- gdk_window_invalidate_rect (window, &area, TRUE);
+ if (window != NULL)
+ {
+ gdk_window_invalidate_rect (window, &self->last_area, TRUE);
+ gdk_window_invalidate_rect (window, &area, TRUE);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]