action->get_proxies during connect-proxy emit



The program below gets some strange errors

    GLib-GObject-CRITICAL **: g_object_ref_sink: assertion `G_IS_OBJECT (object)' failed at 
/home/gg/bug/perl-proxies/foo.pl line 41.
    ...

It's supposed to be just reading out $action->get_proxies, at

    my @widgets = $action->get_proxies;

but something fishy happens.  I wondered if the wrapper for that func
shouldn't be doing a ref_sink on the widgets in the list.  Avoiding that
improves it, but is still not quite right if you're sitting on other
references to the uimanager's widgets.

(Of course perhaps there's some refcounting dodginess in gtk itself.  It
only seems to go wrong if you get_proxies during a connect-proxy signal
emission.)

Attachment: foo.pl
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]