Fix resolver test code

This commit is contained in:
Linus Heckemann 2016-10-02 14:15:15 +01:00
parent 17c482205e
commit 1b4360a94e
1 changed files with 1 additions and 2 deletions

View File

@ -147,6 +147,7 @@ if __name__ == '__main__':
resolver.resolve(host, on_result) resolver.resolve(host, on_result)
win = Gtk.Window() win = Gtk.Window()
win.set_border_width(6) win.set_border_width(6)
win.connect('remove', Gtk.main_quit)
text_view = Gtk.Entry() text_view = Gtk.Entry()
text_view.set_text('_xmpp-client._tcp.jabber.org') text_view.set_text('_xmpp-client._tcp.jabber.org')
hbox = Gtk.HBox() hbox = Gtk.HBox()
@ -158,6 +159,4 @@ if __name__ == '__main__':
win.add(hbox) win.add(hbox)
win.show_all() win.show_all()
GLib.timeout_add(200, idlequeue.process) GLib.timeout_add(200, idlequeue.process)
if USE_LIBASYNCNS:
GLib.timeout_add(200, resolver.process)
Gtk.main() Gtk.main()