diff options
Diffstat (limited to 'e-util/e-cursor.c')
-rw-r--r-- | e-util/e-cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e-util/e-cursor.c b/e-util/e-cursor.c index 97e3989f9b..7d547e38ac 100644 --- a/e-util/e-cursor.c +++ b/e-util/e-cursor.c @@ -47,7 +47,7 @@ void e_cursor_set (GtkWidget *widget, ECursorType cursor) GdkCursor *window_cursor; toplevel = gtk_widget_get_toplevel (widget); - if (GTK_WIDGET_TOPLEVEL (toplevel) && toplevel->window) { + if (GTK_WIDGET_TOPLEVEL (toplevel) && gtk_widget_get_window (GTK_WIDGET (toplevel))) { switch (cursor) { case E_CURSOR_NORMAL : @@ -61,7 +61,7 @@ void e_cursor_set (GtkWidget *widget, ECursorType cursor) window_cursor = gdk_cursor_new (GDK_LEFT_PTR); } - gdk_window_set_cursor (toplevel->window, window_cursor); + gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (toplevel)), window_cursor); gdk_cursor_unref (window_cursor); } |