[gnome-settings-daemon] wacom: Fix potential warning on startup
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Fix potential warning on startup
- Date: Fri, 4 Oct 2013 07:46:16 +0000 (UTC)
commit 1b095209a80b032622a60a889c0ca85f75b2d3bf
Author: Bastien Nocera <hadess hadess net>
Date: Fri Oct 4 09:12:10 2013 +0200
wacom: Fix potential warning on startup
When the window isn't setup yet, no need to try and invalidate
the whole drawing area.
plugins/wacom/gsd-wacom-osd-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-osd-window.c b/plugins/wacom/gsd-wacom-osd-window.c
index 03e7f13..ef313a1 100644
--- a/plugins/wacom/gsd-wacom-osd-window.c
+++ b/plugins/wacom/gsd-wacom-osd-window.c
@@ -1242,7 +1242,8 @@ redraw_window (GsdWacomOSDWindow *self)
GdkWindow *window;
window = gtk_widget_get_window (GTK_WIDGET (self));
- gdk_window_invalidate_rect (window, NULL, FALSE);
+ if (window)
+ gdk_window_invalidate_rect (window, NULL, FALSE);
}
static GsdWacomOSDButton *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]