[gnome-maps] routeEntry: Check presence of icon window
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] routeEntry: Check presence of icon window
- Date: Thu, 9 Nov 2017 20:49:39 +0000 (UTC)
commit 4a80377838b6004dfb5666c7db3322aea8cef946
Author: Marcus Lundblad <ml update uu se>
Date: Mon Nov 6 23:02:12 2017 +0100
routeEntry: Check presence of icon window
https://bugzilla.gnome.org/show_bug.cgi?id=782861
src/routeEntry.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/routeEntry.js b/src/routeEntry.js
index 01fe1d3..812ef37 100644
--- a/src/routeEntry.js
+++ b/src/routeEntry.js
@@ -58,7 +58,7 @@ var RouteEntry = new Lang.Class({
// There is no GdkWindow on the widget until it is realized
this._icon.connect('realize', function(icon) {
- if (icon.window.get_cursor())
+ if (icon.window && icon.window.get_cursor())
return;
icon.window.set_cursor(Gdk.Cursor.new(Gdk.CursorType.HAND1));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]