making g_object_connect() virtual

2005-11-02 Thread Robert Staudinger
Hi, in the process of wrapping parts of the c++ mozilla API into gobjects [1] i came across the limitation of g_object_connect() being not virtual. Mozilla heavily uses listener classes that have to be derived from and handed over to the event source for receiving callbacks. In order to have the g

Re: making g_object_connect() virtual

2005-11-02 Thread J. Ali Harlow
On 02/11/05 17:20:49, Robert Staudinger wrote: Or am i missing something and it's already possible to get some kind of notification when a signal is connected on a GObject subclass? g_signal_has_handler_pending() may help. Cheers, Ali. ___ gtk-d

Re: making g_object_connect() virtual

2005-11-02 Thread Robert Staudinger
On 11/2/05, J. Ali Harlow <[EMAIL PROTECTED]> wrote: > > On 02/11/05 17:20:49, Robert Staudinger wrote: > > > Or am i missing something and it's already possible to get some kind > > of notification when a signal is connected on a GObject subclass? > > g_signal_has_handler_pending() may help. Hmm,

Re: making g_object_connect() virtual

2005-11-07 Thread Tim Janik
On Wed, 2 Nov 2005, Robert Staudinger wrote: Hi, in the process of wrapping parts of the c++ mozilla API into gobjects [1] i came across the limitation of g_object_connect() being not virtual. Mozilla heavily uses listener classes that have to be derived from and handed over to the event source

Re: making g_object_connect() virtual

2005-11-07 Thread Robert Staudinger
On 11/8/05, Tim Janik <[EMAIL PROTECTED]> wrote: > On Wed, 2 Nov 2005, Robert Staudinger wrote: > > > Hi, > > > > in the process of wrapping parts of the c++ mozilla API into gobjects > > [1] i came across the limitation of g_object_connect() being not > > virtual. > > Mozilla heavily uses listener