making g_object_connect() virtual



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 gobject wrapper use signals instead of callbacks it would be
very helpful being able to override g_object_connect(). So the gobject
wrapper would know which signals are expected by the user and can
create the required listeners in a transparent manner.
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?

What is your opinion? Copious API padding seems to be there.

[1] http://cvs.gnome.org/viewcvs/gtkmozedit/

Thanks,
- Rob



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