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