Re: Finding out signals for an interface



On Sat, Apr 09, 2005 at 07:06:14PM -0700, Andrei Zmievski wrote:
> How can I find out the list of signals a certain interface type has 
> given its GType? I tried using g_signal_list_ids(), but it just returns 
> an empty array. I also tried using g_type_class_ref() to make sure that 
> GTypeClass for the interface exists, but I get an error saying "cannot 
> retrieve class for invalid (unclassed) type `GtkCellEditable''.

Interfaces are not classes in GObject, you have to use
g_type_default_interface_ref() instead of g_type_class_ref()
to force initialization of the interface.

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



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