GTK+ app development: avahi service browsing and Gtk+ main loop problem

2014-07-14 Thread Andrei Macavei
Hey folks, I am creating an application in python and gtk+ 3 that uses avahi to broadcast itself on the network. The program should publish itself on the network but also discover other instances of it , like an avahi client/server. For the publishing and browsing of services on network i'm

GTK+ app development: avahi service browsing and Gtk+ main loop problem

2014-06-17 Thread Andrei Macavei
Hi, I am resending the code examples in plain text as the first message contained some html part which made the code un-copy-paste-able. The problem description can be summarized as : when using gtk's main loop ( Gtk.main() ) how to deal with gobject.MainLoop.().run() which is used by avahi

Re: GTK+ app development: avahi service browsing and Gtk+ main loop problem

2014-06-17 Thread Chris Vine
On Tue, 17 Jun 2014 10:51:21 +0300 Andrei Macavei andrei.macave...@gmail.com wrote: I am resending the code examples in plain text as the first message contained some html part which made the code un-copy-paste-able. The problem description can be summarized as : when using gtk's main loop

Re: GTK+ app development: avahi service browsing and Gtk+ main loop problem

2014-06-17 Thread Andrei Macavei
On 17.06.2014 12:43, Chris Vine wrote: I do not know python particularly well but you probably first need to explain why you are running two main loops. Can't your program just use one, so that you can use the default main loop for both? Chris Hi, I haven't shown the full code of the

Re: GTK+ app development: avahi service browsing and Gtk+ main loop problem

2014-06-17 Thread Chris Vine
On Wed, 18 Jun 2014 02:03:44 +0300 Andrei Macavei andrei.macave...@gmail.com wrote: On 17.06.2014 12:43, Chris Vine wrote: I do not know python particularly well but you probably first need to explain why you are running two main loops. Can't your program just use one, so that you can use