Commit 1a0be71e authored by Jens Georg's avatar Jens Georg

Stop spinning the event loop when changing cursors

Tihs was added as part of 9dd0e31d with
no particular reason.

Spinning the event loop causes code to be run in non-expected order in
at least one place when cancelling the import, leading to use-after-free

Unfortunately I have no idea on the side-effects that removing this will
cause. Time will tell.

Fixes #58
parent 8b3a8a86
......@@ -367,7 +367,6 @@ public abstract class PageWindow : Gtk.ApplicationWindow {
var display = get_window ().get_display ();
var cursor = new Gdk.Cursor.for_display (display, Gdk.CursorType.WATCH);
get_window().set_cursor (cursor);
spin_event_loop();
}
public void set_normal_cursor() {
......@@ -381,7 +380,6 @@ public abstract class PageWindow : Gtk.ApplicationWindow {
var display = get_window ().get_display ();
var cursor = new Gdk.Cursor.for_display (display, Gdk.CursorType.LEFT_PTR);
get_window().set_cursor (cursor);
spin_event_loop();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment