Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- button.connect_button_press_event(|w,_| {
- if let Some(screen) = w.get_screen() {
- let display = screen.get_display();
- let cursor = gdk::Cursor::new_for_display(&display, gdk::CursorType::Watch);
- if let Some(window) = w.get_root_window() {
- window.set_cursor(&cursor);
- }
- }
- gtk::Inhibit(true)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement