diff --git a/IPython/lib/inputhookgtk3.py b/IPython/lib/inputhookgtk3.py index 531f5ca..d897e19 100644 --- a/IPython/lib/inputhookgtk3.py +++ b/IPython/lib/inputhookgtk3.py @@ -29,6 +29,6 @@ def _main_quit(*args, **kwargs): def inputhook_gtk3(): - GLib.io_add_watch(sys.stdin, GLib.IO_IN, _main_quit) + GLib.io_add_watch(sys.stdin, GLib.PRIORITY_DEFAULT, GLib.IO_IN, _main_quit) Gtk.main() return 0 diff --git a/IPython/terminal/pt_inputhooks/gtk3.py b/IPython/terminal/pt_inputhooks/gtk3.py index 5c6c545..ae82b4e 100644 --- a/IPython/terminal/pt_inputhooks/gtk3.py +++ b/IPython/terminal/pt_inputhooks/gtk3.py @@ -8,5 +8,5 @@ def _main_quit(*args, **kwargs): return False def inputhook(context): - GLib.io_add_watch(context.fileno(), GLib.IO_IN, _main_quit) + GLib.io_add_watch(context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, _main_quit) Gtk.main()