Use gtk_widget_get_window() instead of widget->window

This commit is contained in:
Michael Natterer 2009-10-10 14:52:52 +02:00
parent e267783c22
commit 85274ea1f3
1 changed files with 1 additions and 1 deletions

View File

@ -1665,7 +1665,7 @@ iwarp_realize_callback (GtkWidget *widget)
GdkDisplay *display = gtk_widget_get_display (widget);
GdkCursor *cursor = gdk_cursor_new_for_display (display, GDK_CROSSHAIR);
gdk_window_set_cursor (widget->window, cursor);
gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
gdk_cursor_unref (cursor);
}