バグ #1207 » 1207-1.patch
core/mui/cairo_miracle_painter.rb | ||
---|---|---|
219 | 219 |
# [name] カーソルの名前(String) |
220 | 220 |
private def set_cursor(name) |
221 | 221 |
window = @tree.get_ancestor Gtk::Window |
222 |
display = window.screen.display |
|
223 |
window.window.cursor = Gdk::Cursor.new(display, name) |
|
222 |
# display = window.screen.display |
|
223 |
cursor = begin |
|
224 |
Gdk::Cursor.new(@tree.display, name) |
|
225 |
rescue RuntimeError |
|
226 |
nil |
|
227 |
end |
|
228 |
window.window.cursor = cursor |
|
224 | 229 |
self |
225 | 230 |
end |
226 | 231 |