Re: [gtk-list] adding new signal in new class



Yasushi Shoji wrote:
> 
> hi all,
> 
> Is there any Object Oriented Programming Language binding for Gtk+
> that allows programmer to add new signal in newly created class?
> 
> e.g. create new subclass of HBox and add new signal called "new_sig".
> 
> if not, is it possible to do so?  Just a quick search in gtk-list
> archive gave me an idea that gtk_object_class_add_signals() is the
> one. but that function needs GtkObjectClass* as first argument...

Have a look at a program called "gob". You can find it at
www.freshmeat.net.

It helps create new GTK+ objects easily by writing a .gob file and
running gob on it to produce the .c and .h files.

Cheers, Matt.

-- 
Matt Goodall             |  Isotek Electronics Ltd
email: mgg@isotek.co.uk  |  Claro House, Servia Road
Tel: +44 113 2343202     |  Leeds, LS7 1NL
Fax: +44 113 2342918     |  England



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