mirror of https://github.com/GNOME/gimp.git
Use gtk_widget_get_window() instead of widget->window
This commit is contained in:
parent
e267783c22
commit
85274ea1f3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue