Re: gupnp-igd python bindings
- From: Olivier Crête <olivier crete collabora co uk>
- To: Yann Leboulanger <asterix lagaule org>
- Cc: gupnp-list gnome org
- Subject: Re: gupnp-igd python bindings
- Date: Tue, 23 Aug 2011 10:12:37 -0400
On Tue, 2011-08-23 at 13:21 +0200, Yann Leboulanger wrote:
> On 08/22/2011 11:36 PM, Zeeshan Ali (Khattak) wrote:
> > On Tue, Aug 23, 2011 at 12:23 AM, Yann Leboulanger<asterix lagaule org> wrote:
> >> Hi all,
> >>
> >> I have a question about python binding for gupnp.igd.Simple:
> >>
> >> in the C function, the constructor get a glib main context. This is nice in
> >> case we run a GTK program, we can give it the current main context.
> >
> > Don't know about igd or its pythong bindings but two things you must
> > know about main_context stuff (in case you don't already):
> >
> > 1. This is only needed when you have multiple threads running.
> > 2. In new gupnp main_context params are deprecated as they are not
> > needed anymore (See g_main_context_push_thread_default and
> > g_main_context_pop_thread_default).
> >
>
> I also have a last question, specific to python bindings: the 'error'
> argument in callback for error-mapping-port signal is a
> gobject.GPointer, which is not usable, and should not be used in PyGTK
> according to the documentation ([0]). Is there a way to get the error
> that is raised?
Good point, I should add some custom code to work around the problem.
--
Olivier Crête
olivier crete collabora com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]